@spira-lab/cli 0.0.5 → 0.0.7

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.
Files changed (3) hide show
  1. package/README.md +27 -22
  2. package/dist/index.cjs +724 -142
  3. package/package.json +2 -25
package/README.md CHANGED
@@ -1,22 +1,27 @@
1
- # Spira CLI
2
-
3
- Command line client for Spira.
4
-
5
- ## Install
6
-
7
- ```bash
8
- npm install -g @spira-lab/cli
9
- ```
10
-
11
- ## Usage
12
-
13
- ```bash
14
- spira --help
15
- spira auth login
16
- spira ai models list
17
- spira workflows node-catalog --json
18
- spira workflows create --name "Product launch workflow"
19
- spira workflows update <workflowId> --workflow-definition-json '{"nodes":[],"edges":[]}'
20
- ```
21
-
22
- Use `spira --json` when you need machine-readable output.
1
+ # Spira CLI
2
+
3
+ Command line client for Spira.
4
+
5
+ ## Install
6
+
7
+ ```bash
8
+ npm install -g @spira-lab/cli
9
+ ```
10
+
11
+ ## Usage
12
+
13
+ ```bash
14
+ spira --help
15
+ spira auth login
16
+ spira ai models list
17
+ spira ai models list --media-type audio
18
+ spira ai jobs create --model-id nano-banana-2 --inputs-json '{"prompt":"A product photo"}' --wait
19
+ spira ai jobs create --model-id elevenlabs-music-generation --inputs-json '{"prompt":"A short ambient cue","duration":"10"}' --wait
20
+ spira workflows node-catalog --json
21
+ spira workflows create --name "Product launch workflow"
22
+ spira workflows update <workflowId> --workflow-definition-json '{"nodes":[],"edges":[]}'
23
+ ```
24
+
25
+ Use `spira --json` when you need machine-readable output.
26
+
27
+ `ai jobs create --wait` prints the job ID and status changes to stderr while it waits. Its final stdout is a compact result containing the job ID, model, status, result type, and result URLs. Use `spira --json ai jobs status <jobId>` when you need the full job and provider execution details.