diff --git a/docs/cli/commands.md b/docs/cli/commands.md index 46cca46f78..ca89a43a6a 100644 --- a/docs/cli/commands.md +++ b/docs/cli/commands.md @@ -501,9 +501,9 @@ Usage: backstage-cli config:schema [options] Print configuration schema Options: - --package <name> Only output config schema that applies to the given package - -h, --help display help for command - + --package <name> Only output config schema that applies to the given package + --format <format> Format to print the schema in, either json or yaml [yaml] + -h, --help display help for command ``` ## versions:bump diff --git a/packages/cli/src/commands/index.ts b/packages/cli/src/commands/index.ts index 3a8ef36a97..46b6deeb21 100644 --- a/packages/cli/src/commands/index.ts +++ b/packages/cli/src/commands/index.ts @@ -176,6 +176,10 @@ export function registerCommands(program: CommanderStatic) { '--package ', 'Only output config schema that applies to the given package', ) + .option( + '--format ', + 'Format to print the schema in, either json or yaml [yaml]', + ) .description('Print configuration schema') .action(lazy(() => import('./config/schema').then(m => m.default)));