@swell/cli
Version:
Swell's command line interface/utility
19 lines (18 loc) • 972 B
JavaScript
import { Command } from '@oclif/core';
export default class Inspect extends Command {
static summary = 'Inspect deployed artifacts in your store.';
static description = `Subcommands list globally and group by app. Pass --app=<slug> or --app=. (current swell.json) to scope. Pass an identifier to print the full record as JSON, followed by a "Next steps" footer of related commands. Use --json to omit the footer for piping.
`;
static examples = [
'swell inspect models /products',
'swell inspect content app.honest_reviews.reviews',
'swell inspect webhooks --app=my-app',
'swell inspect functions app.my-app.payment-sync',
'swell inspect workflow-runs --workflow app.my-app.run-import --status active',
'swell inspect notifications com.orders.receipt.v2',
'swell inspect settings app.my-app',
];
async run() {
this.log('Run "swell inspect --help" to see available subcommands.');
}
}