Merge pull request #4559 from kaos/kaos/cli-config-schema

backstage-cli: add config:schema command.
This commit is contained in:
Patrik Oldsberg
2021-02-26 15:28:11 +01:00
committed by GitHub
10 changed files with 125 additions and 31 deletions
+22
View File
@@ -46,6 +46,7 @@ remove-plugin Removes plugin in the current repository
config:print Print the app configuration for the current package
config:check Validate that the given configuration loads and matches schema
config:schema Dump the app configuration schema
versions:bump Bump Backstage packages to the latest versions
versions:check Check Backstage package versioning
@@ -484,6 +485,27 @@ Options:
-h, --help display help for command
```
## config:schema
Scope: `root`
Dump the configuration schema that was collected from all local packages in the
repo.
Note: when run by `yarn`, supply the yarn option `--silent` if you are using the
output in a command line pipe to avoid non schema output in the pipeline.
```text
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
```
## versions:bump
Scope: `root`