@backstage/cli-node 0.3.5-next.1 → 0.3.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +27 -0
- package/package.json +7 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,32 @@
|
|
|
1
1
|
# @backstage/cli-node
|
|
2
2
|
|
|
3
|
+
## 0.3.5
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 3d6721d: Add intent-based CLI modules for catalog, scaffolder, and search.
|
|
8
|
+
|
|
9
|
+
New modules provide domain-oriented subcommands that talk directly to the corresponding plugins' REST APIs:
|
|
10
|
+
|
|
11
|
+
- `@backstage/cli-module-catalog`: `catalog list`, `catalog get`, `catalog validate`, `catalog register`, `catalog unregister`
|
|
12
|
+
- `@backstage/cli-module-scaffolder`: `template list`, `template execute`, `template dry-run`
|
|
13
|
+
- `@backstage/cli-module-search`: `search`, `docs search`
|
|
14
|
+
|
|
15
|
+
The commands take their main input as a positional argument: an entity or template reference, a file path (or `-` for standard input) for `catalog validate` and `template dry-run`, a URL for `catalog register`, and the search terms for `search` and `docs search`. Repeatable `key=value` flags are used for filters, template values, and secrets, and comma-separated lists for `--fields`. Unknown flags are rejected.
|
|
16
|
+
|
|
17
|
+
The commands that list results, `catalog list`, `template list`, `search`, and `docs search`, support `--output human` (the default) or `--output json`, along with `--limit` and `--cursor` for paging. Each command prints a single page. Human output shows how many results were shown and, when more are available, prints the `--cursor` value to continue from. All other commands always print JSON. `catalog validate` checks every entity in a multi-document YAML file and prints a JSON array with one result per entity. `catalog validate` and `template dry-run` exit with a non-zero code when the input is invalid, while connection and authentication problems are reported as errors.
|
|
18
|
+
|
|
19
|
+
`@backstage/cli-node` now provides shared parsers for repeatable `key=value` inputs and comma-separated lists.
|
|
20
|
+
|
|
21
|
+
- 7c6ab3d: Commands run through `runCli` now wait for `stdout` and `stderr` to be flushed before exiting, so large command output is no longer truncated on platforms where writes to `stdout` and `stderr` are asynchronous.
|
|
22
|
+
- 6dc6bc6: Fixed CLIs created with `runCli` silently exiting when the root or a command group is invoked without a subcommand. They now display help for that level and complete successfully.
|
|
23
|
+
|
|
24
|
+
Help output now lists groups and commands in separate, alphabetically sorted sections. Group previews adapt to the terminal width, using 80 columns when unavailable. Nested groups expand breadth-first when space permits; unexpanded groups retain a trailing slash and truncated previews end in an ellipsis.
|
|
25
|
+
|
|
26
|
+
- Updated dependencies
|
|
27
|
+
- @backstage/errors@1.3.2
|
|
28
|
+
- @backstage/cli-common@0.3.2
|
|
29
|
+
|
|
3
30
|
## 0.3.5-next.1
|
|
4
31
|
|
|
5
32
|
### Patch Changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@backstage/cli-node",
|
|
3
|
-
"version": "0.3.5
|
|
3
|
+
"version": "0.3.5",
|
|
4
4
|
"description": "Node.js library for Backstage CLIs",
|
|
5
5
|
"backstage": {
|
|
6
6
|
"role": "node-library"
|
|
@@ -32,9 +32,9 @@
|
|
|
32
32
|
"test": "backstage-cli package test"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@backstage/cli-common": "0.3.2
|
|
36
|
-
"@backstage/errors": "1.3.2
|
|
37
|
-
"@backstage/types": "1.2.2",
|
|
35
|
+
"@backstage/cli-common": "^0.3.2",
|
|
36
|
+
"@backstage/errors": "^1.3.2",
|
|
37
|
+
"@backstage/types": "^1.2.2",
|
|
38
38
|
"@manypkg/get-packages": "^1.1.3",
|
|
39
39
|
"@yarnpkg/lockfile": "^1.1.0",
|
|
40
40
|
"@yarnpkg/parsers": "^3.0.0",
|
|
@@ -48,9 +48,9 @@
|
|
|
48
48
|
"zod": "^3.25.76 || ^4.0.0"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
|
-
"@backstage/backend-test-utils": "1.11.8
|
|
52
|
-
"@backstage/cli": "0.36.7
|
|
53
|
-
"@backstage/test-utils": "1.7.23
|
|
51
|
+
"@backstage/backend-test-utils": "^1.11.8",
|
|
52
|
+
"@backstage/cli": "^0.36.7",
|
|
53
|
+
"@backstage/test-utils": "^1.7.23",
|
|
54
54
|
"@types/proper-lockfile": "^4",
|
|
55
55
|
"@types/yarnpkg__lockfile": "^1.1.4"
|
|
56
56
|
},
|