@backstage/cli
Version:
CLI for developing Backstage plugins and apps
36 lines (32 loc) • 1.42 kB
JavaScript
var lazy = require('../../lib/lazy.cjs.js');
var removed = require('../../lib/removed.cjs.js');
function registerCommands(program) {
program.command("new").storeOptionsAsProperties(false).description(
"Open up an interactive guide to creating new things in your app"
).option(
"--select <name>",
"Select the thing you want to be creating upfront"
).option(
"--option <name>=<value>",
"Pre-fill options for the creation process",
(opt, arr) => [...arr, opt],
[]
).option(
"--skip-install",
`Skips running 'yarn install' and 'yarn lint --fix'`
).option("--scope <scope>", "The scope to use for new packages").option(
"--npm-registry <URL>",
"The package registry to use for new packages"
).option(
"--baseVersion <version>",
"The version to use for any new packages (default: 0.1.0)"
).option(
"--license <license>",
"The license to use for any new packages (default: Apache-2.0)"
).option("--no-private", "Do not mark new packages as private").action(lazy.lazy(() => import('./commands/new.cjs.js'), "default"));
program.command("create").allowUnknownOption(true).action(removed.removed("use 'backstage-cli new' instead"));
program.command("create-plugin").allowUnknownOption(true).action(removed.removed("use 'backstage-cli new' instead"));
}
exports.registerCommands = registerCommands;
//# sourceMappingURL=index.cjs.js.map
;