cli: address review feedback from freben

Fix whitespace alignment in CLI command summary, improve export command
description to clarify it operates from an app context, and update the
corresponding docs section.

Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Patrik Oldsberg
2026-02-23 01:05:15 +01:00
parent 90f19f6164
commit 1dfc3436d9
2 changed files with 4 additions and 4 deletions
+3 -3
View File
@@ -24,7 +24,7 @@ repo [command] Command that run across an entire
package [command] Lifecycle scripts for individual packages
migrate [command] Migration utilities
versions:bump [options] Bump Backstage packages to the latest versions
translations [command] Translation message management
translations [command] Translation message management
clean Delete cache directories [DEPRECATED]
build-workspace <workspace-dir> [packages...] Builds a temporary dist workspace from the provided
packages
@@ -431,8 +431,8 @@ Usage: backstage-cli create-github-app <github-org>
## translations export
Export translation messages from all frontend plugin dependencies of the current
package. This command must be run from within a package directory (e.g.
Export translation messages from an app and all of its frontend plugins to JSON
files. This command must be run from within a package directory (e.g.
`packages/app`), not from the repository root.
The command discovers all `TranslationRef` definitions in the dependency tree,
@@ -24,7 +24,7 @@ export default createCliPlugin({
reg.addCommand({
path: ['translations', 'export'],
description:
'Export translation messages from all frontend plugins to JSON files',
'Export translation messages from an app and all of its frontend plugins to JSON files',
execute: async ({ args }) => {
const argv = await yargs()
.options({