fix: address review feedback for actions CLI module

Fix argument parsing bugs in the execute command where actionId at index 0
was incorrectly skipped when --instance was absent, and flag values matching
the actionId string were erroneously removed. Add --help support to the
execute command for CLI report generation. Add missing bin script and
cli-report.md for cli-module-actions. Add resolveAuth tests. Bump
backend-defaults changeset to minor for the security-relevant auth change.
Replace cross-fetch with native fetch in cli-module-auth to avoid punycode
deprecation warnings during CLI report generation.

Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
Made-with: Cursor
This commit is contained in:
Patrik Oldsberg
2026-03-17 10:54:11 +01:00
parent 42960f1db7
commit abc12cd8e1
11 changed files with 375 additions and 12 deletions
+78
View File
@@ -12,6 +12,7 @@ Options:
-h, --help
Commands:
actions [command]
auth [command]
build-workspace
config [command]
@@ -31,6 +32,83 @@ Commands:
versions:migrate
```
### `backstage-cli actions`
```
Usage: backstage-cli actions [options] [command] [command]
Options:
-h, --help
Commands:
execute
help [command]
list
sources [command]
```
### `backstage-cli actions execute`
```
Usage: backstage-cli actions execute
Options:
--instance <string>
-h, --help
```
### `backstage-cli actions list`
```
Usage: backstage-cli actions list
Options:
--instance <string>
-h, --help
```
### `backstage-cli actions sources`
```
Usage: backstage-cli actions sources [options] [command] [command]
Options:
-h, --help
Commands:
add
help [command]
list
remove
```
### `backstage-cli actions sources add`
```
Usage: backstage-cli actions sources add
Options:
-h, --help
```
### `backstage-cli actions sources list`
```
Usage: backstage-cli actions sources list
Options:
-h, --help
```
### `backstage-cli actions sources remove`
```
Usage: backstage-cli actions sources remove
Options:
-h, --help
```
### `backstage-cli auth`
```