@wavespeed/cli 0.2.0 → 0.2.2
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/README.md +10 -9
- package/dist/cli.js +2 -2
- package/dist/commands/auth.js +1 -1
- package/dist/commands/schema.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -35,8 +35,9 @@
|
|
|
35
35
|
# npm
|
|
36
36
|
npm install -g @wavespeed/cli
|
|
37
37
|
|
|
38
|
-
# or curl
|
|
39
|
-
|
|
38
|
+
# or curl (script lives on GitHub; wraps `npm install -g` with a
|
|
39
|
+
# friendlier error path)
|
|
40
|
+
curl -fsSL https://raw.githubusercontent.com/WaveSpeedAI/wavespeed-cli/main/install.sh | bash
|
|
40
41
|
|
|
41
42
|
# sign in (opens the access-key page, paste to confirm)
|
|
42
43
|
wavespeed login
|
|
@@ -47,16 +48,16 @@ wavespeed login
|
|
|
47
48
|
```bash
|
|
48
49
|
# 1. Browse the catalog
|
|
49
50
|
wavespeed models # browse the full live catalog, grouped by type
|
|
50
|
-
wavespeed models "
|
|
51
|
+
wavespeed models "z-image" # search
|
|
51
52
|
wavespeed models --type text-to-video # filter by modality
|
|
52
53
|
|
|
53
54
|
# 2. Inspect a model's inputs (dynamic — fetched live)
|
|
54
|
-
wavespeed run
|
|
55
|
+
wavespeed run wavespeed-ai/z-image/turbo -h
|
|
55
56
|
|
|
56
|
-
# 3. Run it (URLs print to stdout; no files unless you ask)
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
-
|
|
57
|
+
# 3. Run it (URLs print to stdout; no files unless you ask).
|
|
58
|
+
# z-image/turbo returns in ~5s, a good default for trying the CLI.
|
|
59
|
+
wavespeed run wavespeed-ai/z-image/turbo \
|
|
60
|
+
-p "a cyberpunk skyline at golden hour"
|
|
60
61
|
|
|
61
62
|
# Save outputs locally
|
|
62
63
|
wavespeed run ... -p "..." --download # → ./wavespeed-output/
|
|
@@ -161,7 +162,7 @@ Get a key at [wavespeed.ai/accesskey](https://wavespeed.ai/accesskey).
|
|
|
161
162
|
git clone https://github.com/WaveSpeedAI/wavespeed-cli.git
|
|
162
163
|
cd cli
|
|
163
164
|
npm install
|
|
164
|
-
npm run dev -- run
|
|
165
|
+
npm run dev -- run wavespeed-ai/z-image/turbo -p "a serene mountain lake"
|
|
165
166
|
npm run build && npm link
|
|
166
167
|
```
|
|
167
168
|
|
package/dist/cli.js
CHANGED
|
@@ -40,8 +40,8 @@ program
|
|
|
40
40
|
${chalk.bold('Quick start:')}
|
|
41
41
|
${chalk.cyan('$ wavespeed login')}
|
|
42
42
|
${chalk.cyan('$ wavespeed models # browse the catalog')}
|
|
43
|
-
${chalk.cyan('$ wavespeed run
|
|
44
|
-
${chalk.cyan('$ wavespeed run
|
|
43
|
+
${chalk.cyan('$ wavespeed run wavespeed-ai/z-image/turbo -h # see the model\'s flags')}
|
|
44
|
+
${chalk.cyan('$ wavespeed run wavespeed-ai/z-image/turbo -p "a cyberpunk skyline" # ~5s')}
|
|
45
45
|
${chalk.cyan('$ wavespeed run bytedance/seedance-2.0/text-to-video -p "drone shot over snowy peaks"')}
|
|
46
46
|
|
|
47
47
|
${chalk.bold('Use from any coding agent (Claude Code, Cursor, Codex):')}
|
package/dist/commands/auth.js
CHANGED
|
@@ -103,7 +103,7 @@ async function loginFlow(opts) {
|
|
|
103
103
|
console.log();
|
|
104
104
|
console.log(chalk.bold('Try it:'));
|
|
105
105
|
console.log(' ' + chalk.cyan('wavespeed models # browse the catalog'));
|
|
106
|
-
console.log(' ' + chalk.cyan('wavespeed run
|
|
106
|
+
console.log(' ' + chalk.cyan('wavespeed run wavespeed-ai/z-image/turbo -p "a cyberpunk skyline at golden hour"'));
|
|
107
107
|
console.log(' ' + chalk.cyan('wavespeed run bytedance/seedance-2.0/text-to-video -p "drone shot over snowy peaks"'));
|
|
108
108
|
console.log();
|
|
109
109
|
}
|
package/dist/commands/schema.js
CHANGED
|
@@ -68,7 +68,7 @@ export function registerSchema(program) {
|
|
|
68
68
|
program
|
|
69
69
|
.command('schema')
|
|
70
70
|
.description('Show the input schema for a model — what params it accepts and which are required')
|
|
71
|
-
.argument('<model>', 'Model ID (e.g.
|
|
71
|
+
.argument('<model>', 'Model ID (e.g. wavespeed-ai/z-image/turbo). Run `wavespeed models` to find them.')
|
|
72
72
|
.option('--json', 'Emit the raw JSON schema on stdout')
|
|
73
73
|
.option('--refresh', 'Force a live fetch (bypass the 1h cache)')
|
|
74
74
|
.action(async (modelId, opts) => {
|