diff --git a/.changeset/rare-pens-exist.md b/.changeset/rare-pens-exist.md index dd48d1ab50..7363f5033a 100644 --- a/.changeset/rare-pens-exist.md +++ b/.changeset/rare-pens-exist.md @@ -2,4 +2,4 @@ '@backstage/cli': patch --- -Enable to print the config schema non merged with the `--no-merged` flag +Enable to print the config schema not merged with the `--no-merge` flag diff --git a/packages/cli/cli-report.md b/packages/cli/cli-report.md index 1ce2963491..e20634df4e 100644 --- a/packages/cli/cli-report.md +++ b/packages/cli/cli-report.md @@ -97,8 +97,8 @@ Usage: backstage-cli config:schema [options] Options: --package --format - --merged - --no-merged + --merge + --no-merge -h, --help ``` diff --git a/packages/cli/src/commands/config/schema.ts b/packages/cli/src/commands/config/schema.ts index 28c7c9327a..08bc46d1cc 100644 --- a/packages/cli/src/commands/config/schema.ts +++ b/packages/cli/src/commands/config/schema.ts @@ -29,7 +29,7 @@ export default async (opts: OptionValues) => { }); let configSchema: JsonObject | JSONSchema; - if (opts.merged) { + if (opts.merge) { configSchema = mergeConfigSchemas( (schema.serialize().schemas as JsonObject[]).map( _ => _.value as JSONSchema, diff --git a/packages/cli/src/commands/index.ts b/packages/cli/src/commands/index.ts index 1839dea8a5..a7f65588a5 100644 --- a/packages/cli/src/commands/index.ts +++ b/packages/cli/src/commands/index.ts @@ -365,8 +365,8 @@ export function registerCommands(program: Command) { '--format ', 'Format to print the schema in, either json or yaml [yaml]', ) - .option('--merged', 'Print the config schemas merged', true) - .option('--no-merged', 'Print the config schemas not merged') + .option('--merge', 'Print the config schemas merged', true) + .option('--no-merge', 'Print the config schemas not merged') .description('Print configuration schema') .action(lazy(() => import('./config/schema').then(m => m.default)));