bailian-cli 1.0.3 → 1.1.1
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/LICENSE +12 -11
- package/README.md +53 -20
- package/README_CN.md +41 -10
- package/dist/bailian.mjs +285 -141
- package/package.json +27 -9
- package/scripts/postinstall.js +0 -151
- package/skill/SKILL.md +0 -196
- package/skill/reference/app.md +0 -99
- package/skill/reference/auth.md +0 -96
- package/skill/reference/config.md +0 -91
- package/skill/reference/console.md +0 -40
- package/skill/reference/file.md +0 -48
- package/skill/reference/image.md +0 -116
- package/skill/reference/index.md +0 -95
- package/skill/reference/knowledge.md +0 -45
- package/skill/reference/memory.md +0 -195
- package/skill/reference/model.md +0 -51
- package/skill/reference/omni.md +0 -74
- package/skill/reference/search.md +0 -48
- package/skill/reference/speech.md +0 -141
- package/skill/reference/text.md +0 -65
- package/skill/reference/update.md +0 -32
- package/skill/reference/usage.md +0 -43
- package/skill/reference/video.md +0 -207
- package/skill/reference/vision.md +0 -53
package/skill/reference/omni.md
DELETED
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
# `bl omni` commands
|
|
2
|
-
|
|
3
|
-
> Auto-generated from `packages/cli/src/commands/catalog.ts`. Do not edit by hand.
|
|
4
|
-
> Regenerate: `pnpm --filter bailian-cli run generate:reference` (runs automatically on `build`).
|
|
5
|
-
|
|
6
|
-
Index: [index.md](index.md)
|
|
7
|
-
|
|
8
|
-
## Commands in this group
|
|
9
|
-
|
|
10
|
-
| Command | Description |
|
|
11
|
-
| --- | --- |
|
|
12
|
-
| `bl omni` | Multimodal chat with text + audio output (Qwen-Omni) |
|
|
13
|
-
|
|
14
|
-
## Command details
|
|
15
|
-
|
|
16
|
-
### `bl omni`
|
|
17
|
-
|
|
18
|
-
| Field | Value |
|
|
19
|
-
| --- | --- |
|
|
20
|
-
| **Name** | `omni` |
|
|
21
|
-
| **Description** | Multimodal chat with text + audio output (Qwen-Omni) |
|
|
22
|
-
| **Usage** | `bl omni --message <text> [flags]` |
|
|
23
|
-
| **API docs** | [/model-studio/qwen-omni](https://help.aliyun.com/zh/model-studio/model-studio/qwen-omni) |
|
|
24
|
-
|
|
25
|
-
#### Options
|
|
26
|
-
|
|
27
|
-
| Flag | Type | Required | Description |
|
|
28
|
-
| --- | --- | --- | --- |
|
|
29
|
-
| `--message <text>` | array | yes | Message text (repeatable, prefix role: to set role) |
|
|
30
|
-
| `--model <model>` | string | no | Model ID (default: qwen3.5-omni-plus) |
|
|
31
|
-
| `--system <text>` | string | no | System prompt |
|
|
32
|
-
| `--image <url>` | array | no | Image URL or local file (repeatable) |
|
|
33
|
-
| `--audio <url>` | array | no | Audio URL or local file (repeatable) |
|
|
34
|
-
| `--video <url>` | array | no | Video file URL / local path, or comma-separated frame URLs |
|
|
35
|
-
| `--voice <voice>` | string | no | Output voice (default: Cherry). Options: Chelsie, Cherry, Ethan, Serena, Tina |
|
|
36
|
-
| `--audio-format <fmt>` | string | no | Audio output format (default: wav) |
|
|
37
|
-
| `--audio-out <path>` | string | no | Save audio to file (default: auto-generate) |
|
|
38
|
-
| `--text-only` | boolean | no | Output text only, no audio generation |
|
|
39
|
-
| `--max-tokens <n>` | number | no | Maximum tokens to generate |
|
|
40
|
-
| `--temperature <n>` | number | no | Sampling temperature (0.0, 2.0] |
|
|
41
|
-
|
|
42
|
-
#### Examples
|
|
43
|
-
|
|
44
|
-
```bash
|
|
45
|
-
bl omni --message "你好,你是谁?"
|
|
46
|
-
```
|
|
47
|
-
|
|
48
|
-
```bash
|
|
49
|
-
bl omni --message "描述这张图片" --image ./photo.jpg
|
|
50
|
-
```
|
|
51
|
-
|
|
52
|
-
```bash
|
|
53
|
-
bl omni --message "这段音频在说什么?" --audio https://example.com/audio.wav
|
|
54
|
-
```
|
|
55
|
-
|
|
56
|
-
```bash
|
|
57
|
-
bl omni --message "总结这个视频" --video https://example.com/video.mp4
|
|
58
|
-
```
|
|
59
|
-
|
|
60
|
-
```bash
|
|
61
|
-
bl omni --message "这个视频讲了什么" --video ./local-video.mp4 --text-only
|
|
62
|
-
```
|
|
63
|
-
|
|
64
|
-
```bash
|
|
65
|
-
bl omni --message "用四川话回答:今天天气怎么样" --voice Serena
|
|
66
|
-
```
|
|
67
|
-
|
|
68
|
-
```bash
|
|
69
|
-
bl omni --message "Hello" --text-only --output json
|
|
70
|
-
```
|
|
71
|
-
|
|
72
|
-
```bash
|
|
73
|
-
bl omni --message "朗读这段话" --audio-out greeting.wav
|
|
74
|
-
```
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
# `bl search` commands
|
|
2
|
-
|
|
3
|
-
> Auto-generated from `packages/cli/src/commands/catalog.ts`. Do not edit by hand.
|
|
4
|
-
> Regenerate: `pnpm --filter bailian-cli run generate:reference` (runs automatically on `build`).
|
|
5
|
-
|
|
6
|
-
Index: [index.md](index.md)
|
|
7
|
-
|
|
8
|
-
## Commands in this group
|
|
9
|
-
|
|
10
|
-
| Command | Description |
|
|
11
|
-
| --- | --- |
|
|
12
|
-
| `bl search web` | Search the web using DashScope MCP WebSearch service |
|
|
13
|
-
|
|
14
|
-
## Command details
|
|
15
|
-
|
|
16
|
-
### `bl search web`
|
|
17
|
-
|
|
18
|
-
| Field | Value |
|
|
19
|
-
| --- | --- |
|
|
20
|
-
| **Name** | `search web` |
|
|
21
|
-
| **Description** | Search the web using DashScope MCP WebSearch service |
|
|
22
|
-
| **Usage** | `bl search web --query <text> [flags]` |
|
|
23
|
-
|
|
24
|
-
#### Options
|
|
25
|
-
|
|
26
|
-
| Flag | Type | Required | Description |
|
|
27
|
-
| --- | --- | --- | --- |
|
|
28
|
-
| `--query <text>` | string | yes | Search query text |
|
|
29
|
-
| `--count <n>` | number | no | Number of search results (default: 10) |
|
|
30
|
-
| `--list-tools` | boolean | no | List available MCP tools and exit |
|
|
31
|
-
|
|
32
|
-
#### Examples
|
|
33
|
-
|
|
34
|
-
```bash
|
|
35
|
-
bl search web --query "阿里云百炼最新功能"
|
|
36
|
-
```
|
|
37
|
-
|
|
38
|
-
```bash
|
|
39
|
-
bl search web --query "TypeScript 5.9 new features" --count 5
|
|
40
|
-
```
|
|
41
|
-
|
|
42
|
-
```bash
|
|
43
|
-
bl search web --query "今日新闻"
|
|
44
|
-
```
|
|
45
|
-
|
|
46
|
-
```bash
|
|
47
|
-
bl search web --list-tools
|
|
48
|
-
```
|
|
@@ -1,141 +0,0 @@
|
|
|
1
|
-
# `bl speech` commands
|
|
2
|
-
|
|
3
|
-
> Auto-generated from `packages/cli/src/commands/catalog.ts`. Do not edit by hand.
|
|
4
|
-
> Regenerate: `pnpm --filter bailian-cli run generate:reference` (runs automatically on `build`).
|
|
5
|
-
|
|
6
|
-
Index: [index.md](index.md)
|
|
7
|
-
|
|
8
|
-
## Commands in this group
|
|
9
|
-
|
|
10
|
-
| Command | Description |
|
|
11
|
-
| --- | --- |
|
|
12
|
-
| `bl speech recognize` | Recognize speech from audio files (FunAudio-ASR) |
|
|
13
|
-
| `bl speech synthesize` | Synthesize speech from text (CosyVoice TTS) |
|
|
14
|
-
|
|
15
|
-
## Command details
|
|
16
|
-
|
|
17
|
-
### `bl speech recognize`
|
|
18
|
-
|
|
19
|
-
| Field | Value |
|
|
20
|
-
| --- | --- |
|
|
21
|
-
| **Name** | `speech recognize` |
|
|
22
|
-
| **Description** | Recognize speech from audio files (FunAudio-ASR) |
|
|
23
|
-
| **Usage** | `bl speech recognize --url <audio-url> [flags]` |
|
|
24
|
-
| **API docs** | [/developer-reference/recording-file-recognition](https://help.aliyun.com/zh/model-studio/developer-reference/recording-file-recognition) |
|
|
25
|
-
|
|
26
|
-
#### Options
|
|
27
|
-
|
|
28
|
-
| Flag | Type | Required | Description |
|
|
29
|
-
| --- | --- | --- | --- |
|
|
30
|
-
| `--url <url>` | array | yes | Audio file URL or local file path (repeatable, max 100) |
|
|
31
|
-
| `--model <model>` | string | no | Model ID (default: fun-asr) |
|
|
32
|
-
| `--language <lang>` | string | no | Language hint (e.g. zh, en, ja) |
|
|
33
|
-
| `--diarization` | boolean | no | Enable automatic speaker diarization |
|
|
34
|
-
| `--speaker-count <n>` | number | no | Expected number of speakers (requires --diarization) |
|
|
35
|
-
| `--vocabulary-id <id>` | string | no | Hot-word vocabulary ID for improved accuracy |
|
|
36
|
-
| `--channel-id <n>` | number | no | Audio channel ID (default: 0) |
|
|
37
|
-
| `--out <path>` | string | no | Save full transcription result to JSON file |
|
|
38
|
-
| `--no-wait` | boolean | no | Return task ID immediately without polling |
|
|
39
|
-
| `--poll-interval <seconds>` | number | no | Polling interval in seconds (default: 2) |
|
|
40
|
-
|
|
41
|
-
#### Examples
|
|
42
|
-
|
|
43
|
-
```bash
|
|
44
|
-
bl speech recognize --url https://example.com/audio.mp3
|
|
45
|
-
```
|
|
46
|
-
|
|
47
|
-
```bash
|
|
48
|
-
bl speech recognize --url https://example.com/a.mp3 --url https://example.com/b.mp3
|
|
49
|
-
```
|
|
50
|
-
|
|
51
|
-
```bash
|
|
52
|
-
bl speech recognize --url https://example.com/meeting.wav --diarization --speaker-count 3
|
|
53
|
-
```
|
|
54
|
-
|
|
55
|
-
```bash
|
|
56
|
-
bl speech recognize --url https://example.com/audio.mp3 --language zh
|
|
57
|
-
```
|
|
58
|
-
|
|
59
|
-
```bash
|
|
60
|
-
bl speech recognize --url https://example.com/audio.mp3 --vocabulary-id vocab-abc123
|
|
61
|
-
```
|
|
62
|
-
|
|
63
|
-
```bash
|
|
64
|
-
bl speech recognize --url https://example.com/audio.mp3 --out result.json
|
|
65
|
-
```
|
|
66
|
-
|
|
67
|
-
```bash
|
|
68
|
-
bl speech recognize --url https://example.com/audio.mp3 --no-wait --quiet
|
|
69
|
-
```
|
|
70
|
-
|
|
71
|
-
### `bl speech synthesize`
|
|
72
|
-
|
|
73
|
-
| Field | Value |
|
|
74
|
-
| --- | --- |
|
|
75
|
-
| **Name** | `speech synthesize` |
|
|
76
|
-
| **Description** | Synthesize speech from text (CosyVoice TTS) |
|
|
77
|
-
| **Usage** | `bl speech synthesize --text <text> [flags]` |
|
|
78
|
-
| **API docs** | [/developer-reference/cosyvoice](https://help.aliyun.com/zh/model-studio/developer-reference/cosyvoice) |
|
|
79
|
-
|
|
80
|
-
#### Options
|
|
81
|
-
|
|
82
|
-
| Flag | Type | Required | Description |
|
|
83
|
-
| --- | --- | --- | --- |
|
|
84
|
-
| `--text <text>` | string | yes | Text to synthesize into speech |
|
|
85
|
-
| `--text-file <path>` | string | no | Read text from a file instead of --text |
|
|
86
|
-
| `--model <model>` | string | no | Model ID (default: cosyvoice-v3-flash). System voices available for cosyvoice-v3-flash |
|
|
87
|
-
| `--voice <voice>` | string | no | Voice ID. Use --list-voices to see system voices for cosyvoice-v3-flash; for v3.5-flash provide a clone/design voice ID |
|
|
88
|
-
| `--list-voices` | boolean | no | List available system voices for the selected model and exit |
|
|
89
|
-
| `--format <format>` | string | no | Audio format: mp3, pcm, wav, opus (default: mp3) |
|
|
90
|
-
| `--sample-rate <rate>` | string | no | Audio sample rate in Hz (e.g. 24000) |
|
|
91
|
-
| `--volume <volume>` | string | no | Volume 0-100 (default: 50) |
|
|
92
|
-
| `--rate <rate>` | string | no | Speech rate 0.5-2.0 (default: 1.0) |
|
|
93
|
-
| `--pitch <pitch>` | string | no | Pitch multiplier 0.5-2.0 (default: 1.0) |
|
|
94
|
-
| `--seed <seed>` | string | no | Random seed 0-65535 for reproducible synthesis |
|
|
95
|
-
| `--language <lang>` | string | no | Language hint (e.g. zh, en, ja, ko, fr, de) |
|
|
96
|
-
| `--instruction <text>` | string | no | Natural language instruction to control speech style (e.g. "请用温柔的语调") |
|
|
97
|
-
| `--enable-ssml` | boolean | no | Enable SSML markup parsing in input text |
|
|
98
|
-
| `--out <path>` | string | no | Save audio to file (default: auto-generate in temp dir) |
|
|
99
|
-
| `--stream` | boolean | no | Stream raw PCM audio to stdout (pipe to player) |
|
|
100
|
-
|
|
101
|
-
#### Examples
|
|
102
|
-
|
|
103
|
-
```bash
|
|
104
|
-
bl speech synthesize --list-voices --model cosyvoice-v3-flash
|
|
105
|
-
```
|
|
106
|
-
|
|
107
|
-
```bash
|
|
108
|
-
bl speech synthesize --text "你好,我是千问" --voice <voice_id>
|
|
109
|
-
```
|
|
110
|
-
|
|
111
|
-
```bash
|
|
112
|
-
bl speech synthesize --text "Hello world" --voice <voice_id> --language en
|
|
113
|
-
```
|
|
114
|
-
|
|
115
|
-
```bash
|
|
116
|
-
bl speech synthesize --text-file script.txt --out speech.wav --voice <voice_id>
|
|
117
|
-
```
|
|
118
|
-
|
|
119
|
-
```bash
|
|
120
|
-
bl speech synthesize --text "今天天气真好" --voice <voice_id> --instruction "请用温柔的语调说话"
|
|
121
|
-
```
|
|
122
|
-
|
|
123
|
-
```bash
|
|
124
|
-
bl speech synthesize --text "Hello" --voice <voice_id> --format wav --sample-rate 24000
|
|
125
|
-
```
|
|
126
|
-
|
|
127
|
-
```bash
|
|
128
|
-
# Stream to audio player (macOS)
|
|
129
|
-
```
|
|
130
|
-
|
|
131
|
-
```bash
|
|
132
|
-
bl speech synthesize --text "你好" --voice <voice_id> --stream | afplay -
|
|
133
|
-
```
|
|
134
|
-
|
|
135
|
-
```bash
|
|
136
|
-
# Pipe to ffplay
|
|
137
|
-
```
|
|
138
|
-
|
|
139
|
-
```bash
|
|
140
|
-
bl speech synthesize --text "Hello" --voice <voice_id> --stream | ffplay -nodisp -autoexit -f s16le -ar 24000 -ac 1 -
|
|
141
|
-
```
|
package/skill/reference/text.md
DELETED
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
# `bl text` commands
|
|
2
|
-
|
|
3
|
-
> Auto-generated from `packages/cli/src/commands/catalog.ts`. Do not edit by hand.
|
|
4
|
-
> Regenerate: `pnpm --filter bailian-cli run generate:reference` (runs automatically on `build`).
|
|
5
|
-
|
|
6
|
-
Index: [index.md](index.md)
|
|
7
|
-
|
|
8
|
-
## Commands in this group
|
|
9
|
-
|
|
10
|
-
| Command | Description |
|
|
11
|
-
| --- | --- |
|
|
12
|
-
| `bl text chat` | Send a chat completion (OpenAI compatible, DashScope) |
|
|
13
|
-
|
|
14
|
-
## Command details
|
|
15
|
-
|
|
16
|
-
### `bl text chat`
|
|
17
|
-
|
|
18
|
-
| Field | Value |
|
|
19
|
-
| --- | --- |
|
|
20
|
-
| **Name** | `text chat` |
|
|
21
|
-
| **Description** | Send a chat completion (OpenAI compatible, DashScope) |
|
|
22
|
-
| **Usage** | `bl text chat --message <text> [flags]` |
|
|
23
|
-
| **API docs** | [/compatibility-of-openai-with-dashscope](https://help.aliyun.com/zh/model-studio/compatibility-of-openai-with-dashscope) |
|
|
24
|
-
|
|
25
|
-
#### Options
|
|
26
|
-
|
|
27
|
-
| Flag | Type | Required | Description |
|
|
28
|
-
| --- | --- | --- | --- |
|
|
29
|
-
| `--model <model>` | string | no | Model ID (default: qwen3.6-plus) |
|
|
30
|
-
| `--message <text>` | array | yes | Message text (repeatable, prefix role: to set role) |
|
|
31
|
-
| `--messages-file <path>` | string | no | JSON file with messages array (use - for stdin) |
|
|
32
|
-
| `--system <text>` | string | no | System prompt |
|
|
33
|
-
| `--max-tokens <n>` | number | no | Maximum tokens to generate (default: 4096) |
|
|
34
|
-
| `--temperature <n>` | number | no | Sampling temperature (0.0, 2.0] |
|
|
35
|
-
| `--top-p <n>` | number | no | Nucleus sampling threshold |
|
|
36
|
-
| `--stream` | boolean | no | Stream response tokens (default: on in TTY) |
|
|
37
|
-
| `--tool <json-or-path>` | array | no | Tool definition as JSON or file path (repeatable) |
|
|
38
|
-
| `--enable-thinking` | boolean | no | Enable thinking/reasoning mode (for qwen3/qwq models) |
|
|
39
|
-
| `--thinking-budget <n>` | number | no | Max tokens for thinking (default: 4096) |
|
|
40
|
-
|
|
41
|
-
#### Examples
|
|
42
|
-
|
|
43
|
-
```bash
|
|
44
|
-
bl text chat --message "What is Qwen?"
|
|
45
|
-
```
|
|
46
|
-
|
|
47
|
-
```bash
|
|
48
|
-
bl text chat --model qwen-max --system "You are a coding assistant." --message "Write fizzbuzz in Python"
|
|
49
|
-
```
|
|
50
|
-
|
|
51
|
-
```bash
|
|
52
|
-
bl text chat --message "Hello" --message "assistant:Hi!" --message "How are you?"
|
|
53
|
-
```
|
|
54
|
-
|
|
55
|
-
```bash
|
|
56
|
-
cat conversation.json | bl text chat --messages-file - --stream
|
|
57
|
-
```
|
|
58
|
-
|
|
59
|
-
```bash
|
|
60
|
-
bl text chat --message "Hello" --output json
|
|
61
|
-
```
|
|
62
|
-
|
|
63
|
-
```bash
|
|
64
|
-
bl text chat --model qwq-plus --message "Solve 1+1" --enable-thinking
|
|
65
|
-
```
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
# `bl update` commands
|
|
2
|
-
|
|
3
|
-
> Auto-generated from `packages/cli/src/commands/catalog.ts`. Do not edit by hand.
|
|
4
|
-
> Regenerate: `pnpm --filter bailian-cli run generate:reference` (runs automatically on `build`).
|
|
5
|
-
|
|
6
|
-
Index: [index.md](index.md)
|
|
7
|
-
|
|
8
|
-
## Commands in this group
|
|
9
|
-
|
|
10
|
-
| Command | Description |
|
|
11
|
-
| --- | --- |
|
|
12
|
-
| `bl update` | Update bl to the latest version |
|
|
13
|
-
|
|
14
|
-
## Command details
|
|
15
|
-
|
|
16
|
-
### `bl update`
|
|
17
|
-
|
|
18
|
-
| Field | Value |
|
|
19
|
-
| --- | --- |
|
|
20
|
-
| **Name** | `update` |
|
|
21
|
-
| **Description** | Update bl to the latest version |
|
|
22
|
-
| **Usage** | `bl update` |
|
|
23
|
-
|
|
24
|
-
#### Options
|
|
25
|
-
|
|
26
|
-
_No command-specific options._
|
|
27
|
-
|
|
28
|
-
#### Examples
|
|
29
|
-
|
|
30
|
-
```bash
|
|
31
|
-
bl update
|
|
32
|
-
```
|
package/skill/reference/usage.md
DELETED
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
# `bl usage` commands
|
|
2
|
-
|
|
3
|
-
> Auto-generated from `packages/cli/src/commands/catalog.ts`. Do not edit by hand.
|
|
4
|
-
> Regenerate: `pnpm --filter bailian-cli run generate:reference` (runs automatically on `build`).
|
|
5
|
-
|
|
6
|
-
Index: [index.md](index.md)
|
|
7
|
-
|
|
8
|
-
## Commands in this group
|
|
9
|
-
|
|
10
|
-
| Command | Description |
|
|
11
|
-
| --- | --- |
|
|
12
|
-
| `bl usage free` | Query free-tier quota for a model |
|
|
13
|
-
|
|
14
|
-
## Command details
|
|
15
|
-
|
|
16
|
-
### `bl usage free`
|
|
17
|
-
|
|
18
|
-
| Field | Value |
|
|
19
|
-
| --- | --- |
|
|
20
|
-
| **Name** | `usage free` |
|
|
21
|
-
| **Description** | Query free-tier quota for a model |
|
|
22
|
-
| **Usage** | `bl usage free --model <model> [flags]` |
|
|
23
|
-
|
|
24
|
-
#### Options
|
|
25
|
-
|
|
26
|
-
| Flag | Type | Required | Description |
|
|
27
|
-
| --- | --- | --- | --- |
|
|
28
|
-
| `--model <model>` | string | yes | Model name to query (e.g. qwen3-max, qwen-turbo) |
|
|
29
|
-
| `--region <region>` | string | no | API region (default: cn-beijing) |
|
|
30
|
-
|
|
31
|
-
#### Examples
|
|
32
|
-
|
|
33
|
-
```bash
|
|
34
|
-
bl usage free --model qwen3-max
|
|
35
|
-
```
|
|
36
|
-
|
|
37
|
-
```bash
|
|
38
|
-
bl usage free --model qwen-turbo --output json
|
|
39
|
-
```
|
|
40
|
-
|
|
41
|
-
```bash
|
|
42
|
-
bl usage free --model qwen3-max --region cn-beijing
|
|
43
|
-
```
|
package/skill/reference/video.md
DELETED
|
@@ -1,207 +0,0 @@
|
|
|
1
|
-
# `bl video` commands
|
|
2
|
-
|
|
3
|
-
> Auto-generated from `packages/cli/src/commands/catalog.ts`. Do not edit by hand.
|
|
4
|
-
> Regenerate: `pnpm --filter bailian-cli run generate:reference` (runs automatically on `build`).
|
|
5
|
-
|
|
6
|
-
Index: [index.md](index.md)
|
|
7
|
-
|
|
8
|
-
## Commands in this group
|
|
9
|
-
|
|
10
|
-
| Command | Description |
|
|
11
|
-
| --- | --- |
|
|
12
|
-
| `bl video download` | Download a completed video by task ID |
|
|
13
|
-
| `bl video edit` | Edit a video with happyhorse-1.0-video-edit (style transfer, object replacement, etc.) |
|
|
14
|
-
| `bl video generate` | Generate a video from text or image (happyhorse-1.0-t2v / happyhorse-1.0-i2v / wan2.6-t2v) |
|
|
15
|
-
| `bl video ref` | Reference-to-video generation (happyhorse-1.0-r2v / wan2.6-r2v): multi-subject, multi-shot with voice |
|
|
16
|
-
| `bl video task get` | Query async task status |
|
|
17
|
-
|
|
18
|
-
## Command details
|
|
19
|
-
|
|
20
|
-
### `bl video download`
|
|
21
|
-
|
|
22
|
-
| Field | Value |
|
|
23
|
-
| --- | --- |
|
|
24
|
-
| **Name** | `video download` |
|
|
25
|
-
| **Description** | Download a completed video by task ID |
|
|
26
|
-
| **Usage** | `bl video download --task-id <id> --out <path>` |
|
|
27
|
-
|
|
28
|
-
#### Options
|
|
29
|
-
|
|
30
|
-
| Flag | Type | Required | Description |
|
|
31
|
-
| --- | --- | --- | --- |
|
|
32
|
-
| `--task-id <id>` | string | no | Task ID to download from |
|
|
33
|
-
| `--out <path>` | string | no | Output file path |
|
|
34
|
-
|
|
35
|
-
#### Examples
|
|
36
|
-
|
|
37
|
-
```bash
|
|
38
|
-
bl video download --task-id 3b256896-xxxx --out video.mp4
|
|
39
|
-
```
|
|
40
|
-
|
|
41
|
-
```bash
|
|
42
|
-
bl video download --task-id 3b256896-xxxx --out video.mp4 --quiet
|
|
43
|
-
```
|
|
44
|
-
|
|
45
|
-
### `bl video edit`
|
|
46
|
-
|
|
47
|
-
| Field | Value |
|
|
48
|
-
| --- | --- |
|
|
49
|
-
| **Name** | `video edit` |
|
|
50
|
-
| **Description** | Edit a video with happyhorse-1.0-video-edit (style transfer, object replacement, etc.) |
|
|
51
|
-
| **Usage** | `bl video edit --video <url> --prompt <text> [flags]` |
|
|
52
|
-
| **API docs** | [/best-practice/wanx/video-edit](https://help.aliyun.com/zh/model-studio/best-practice/wanx/video-edit) |
|
|
53
|
-
|
|
54
|
-
#### Options
|
|
55
|
-
|
|
56
|
-
| Flag | Type | Required | Description |
|
|
57
|
-
| --- | --- | --- | --- |
|
|
58
|
-
| `--model <model>` | string | no | Model ID (default: happyhorse-1.0-video-edit) |
|
|
59
|
-
| `--video <url>` | string | yes | Input video URL or local file (mp4/mov, 2-10s) |
|
|
60
|
-
| `--prompt <text>` | string | no | Edit instruction (e.g. "将画面转换为黏土风格") |
|
|
61
|
-
| `--ref-image <url>` | string | no | Reference image URL (up to 4, comma-separated) |
|
|
62
|
-
| `--negative-prompt <text>` | string | no | Negative prompt to exclude unwanted content |
|
|
63
|
-
| `--resolution <res>` | string | no | Resolution: 720P or 1080P (default: 1080P) |
|
|
64
|
-
| `--ratio <ratio>` | string | no | Aspect ratio (16:9, 9:16, 1:1, 4:3, 3:4) |
|
|
65
|
-
| `--duration <seconds>` | number | no | Output video duration in seconds (2-10) |
|
|
66
|
-
| `--audio-setting <mode>` | string | no | Audio: auto (default) or origin (keep original) |
|
|
67
|
-
| `--prompt-extend` | boolean | no | Enable prompt intelligent rewriting (default: true) |
|
|
68
|
-
| `--no-prompt-extend` | boolean | no | Disable prompt intelligent rewriting |
|
|
69
|
-
| `--watermark` | boolean | no | Add "AI生成" watermark |
|
|
70
|
-
| `--seed <n>` | number | no | Random seed for reproducible generation |
|
|
71
|
-
| `--download <path>` | string | no | Save video to file on completion |
|
|
72
|
-
| `--no-wait` | boolean | no | Return task ID immediately without waiting |
|
|
73
|
-
| `--async` | boolean | no | Return task ID immediately (agent/CI mode, same as --no-wait) |
|
|
74
|
-
| `--poll-interval <seconds>` | number | no | Polling interval when waiting (default: 15) |
|
|
75
|
-
|
|
76
|
-
#### Examples
|
|
77
|
-
|
|
78
|
-
```bash
|
|
79
|
-
bl video edit --video https://example.com/input.mp4 --prompt "将整个画面转换为黏土风格"
|
|
80
|
-
```
|
|
81
|
-
|
|
82
|
-
```bash
|
|
83
|
-
bl video edit --video https://example.com/input.mp4 --prompt "替换衣服为图片中的款式" --ref-image https://example.com/clothes.png
|
|
84
|
-
```
|
|
85
|
-
|
|
86
|
-
```bash
|
|
87
|
-
bl video edit --video https://example.com/input.mp4 --prompt "Convert to anime style" --resolution 720P --download output.mp4
|
|
88
|
-
```
|
|
89
|
-
|
|
90
|
-
### `bl video generate`
|
|
91
|
-
|
|
92
|
-
| Field | Value |
|
|
93
|
-
| --- | --- |
|
|
94
|
-
| **Name** | `video generate` |
|
|
95
|
-
| **Description** | Generate a video from text or image (happyhorse-1.0-t2v / happyhorse-1.0-i2v / wan2.6-t2v) |
|
|
96
|
-
| **Usage** | `bl video generate --prompt <text> [--image <url>] [flags]` |
|
|
97
|
-
| **API docs** | [/best-practice/wanx/text-to-video](https://help.aliyun.com/zh/model-studio/best-practice/wanx/text-to-video) |
|
|
98
|
-
|
|
99
|
-
#### Options
|
|
100
|
-
|
|
101
|
-
| Flag | Type | Required | Description |
|
|
102
|
-
| --- | --- | --- | --- |
|
|
103
|
-
| `--model <model>` | string | no | Model ID (default: happyhorse-1.0-t2v, or happyhorse-1.0-i2v with --image) |
|
|
104
|
-
| `--prompt <text>` | string | yes | Video description |
|
|
105
|
-
| `--image <url>` | string | no | Input image URL for image-to-video generation |
|
|
106
|
-
| `--negative-prompt <text>` | string | no | Negative prompt to exclude unwanted content |
|
|
107
|
-
| `--resolution <res>` | string | no | Resolution (e.g. 1280*720, 960*960) |
|
|
108
|
-
| `--ratio <ratio>` | string | no | Aspect ratio (e.g. 16:9, 1:1) |
|
|
109
|
-
| `--duration <seconds>` | number | no | Video duration in seconds (default: 5) |
|
|
110
|
-
| `--prompt-extend` | boolean | no | Automatically extend prompt for better results |
|
|
111
|
-
| `--watermark` | boolean | no | Add watermark to generated video |
|
|
112
|
-
| `--seed <n>` | number | no | Random seed for reproducible generation |
|
|
113
|
-
| `--download <path>` | string | no | Save video to file on completion |
|
|
114
|
-
| `--no-wait` | boolean | no | Return task ID immediately without waiting |
|
|
115
|
-
| `--async` | boolean | no | Return task ID immediately (agent/CI mode, same as --no-wait) |
|
|
116
|
-
| `--poll-interval <seconds>` | number | no | Polling interval when waiting (default: 5) |
|
|
117
|
-
|
|
118
|
-
#### Examples
|
|
119
|
-
|
|
120
|
-
```bash
|
|
121
|
-
bl video generate --prompt "一个人在读书,静态镜头"
|
|
122
|
-
```
|
|
123
|
-
|
|
124
|
-
```bash
|
|
125
|
-
bl video generate --prompt "Ocean waves at sunset." --download sunset.mp4
|
|
126
|
-
```
|
|
127
|
-
|
|
128
|
-
```bash
|
|
129
|
-
bl video generate --image https://example.com/cat.png --prompt "让画面中的猫动起来"
|
|
130
|
-
```
|
|
131
|
-
|
|
132
|
-
```bash
|
|
133
|
-
bl video generate --prompt "Mountain landscape" --resolution 1280*720 --duration 5
|
|
134
|
-
```
|
|
135
|
-
|
|
136
|
-
### `bl video ref`
|
|
137
|
-
|
|
138
|
-
| Field | Value |
|
|
139
|
-
| --- | --- |
|
|
140
|
-
| **Name** | `video ref` |
|
|
141
|
-
| **Description** | Reference-to-video generation (happyhorse-1.0-r2v / wan2.6-r2v): multi-subject, multi-shot with voice |
|
|
142
|
-
| **Usage** | `bl video ref --prompt <text> --image <url>... [--ref-video <url>...] [flags]` |
|
|
143
|
-
| **API docs** | [/best-practice/wanx/video-reference](https://help.aliyun.com/zh/model-studio/best-practice/wanx/video-reference) |
|
|
144
|
-
|
|
145
|
-
#### Options
|
|
146
|
-
|
|
147
|
-
| Flag | Type | Required | Description |
|
|
148
|
-
| --- | --- | --- | --- |
|
|
149
|
-
| `--model <model>` | string | no | Model ID (default: happyhorse-1.0-r2v) |
|
|
150
|
-
| `--prompt <text>` | string | yes | Video description with reference markers (图1, 视频1, etc.) |
|
|
151
|
-
| `--image <url>` | array | no | Reference image URL or local file (repeatable for multiple subjects) |
|
|
152
|
-
| `--ref-video <url>` | array | no | Reference video URL or local file (repeatable) |
|
|
153
|
-
| `--image-voice <url>` | array | no | Voice URL for corresponding image (pairs by position) |
|
|
154
|
-
| `--video-voice <url>` | array | no | Voice URL for corresponding ref-video (pairs by position) |
|
|
155
|
-
| `--resolution <res>` | string | no | Resolution: 720P or 1080P (default: 720P) |
|
|
156
|
-
| `--ratio <ratio>` | string | no | Aspect ratio (16:9, 9:16, 1:1) |
|
|
157
|
-
| `--duration <seconds>` | number | no | Video duration in seconds (2-10, default: 5) |
|
|
158
|
-
| `--prompt-extend` | boolean | no | Enable prompt intelligent rewriting |
|
|
159
|
-
| `--no-prompt-extend` | boolean | no | Disable prompt intelligent rewriting |
|
|
160
|
-
| `--watermark` | boolean | no | Add watermark to generated video |
|
|
161
|
-
| `--seed <n>` | number | no | Random seed for reproducible generation |
|
|
162
|
-
| `--download <path>` | string | no | Save video to file on completion |
|
|
163
|
-
| `--no-wait` | boolean | no | Return task ID immediately without waiting |
|
|
164
|
-
| `--async` | boolean | no | Return task ID immediately (agent/CI mode, same as --no-wait) |
|
|
165
|
-
| `--poll-interval <seconds>` | number | no | Polling interval when waiting (default: 15) |
|
|
166
|
-
|
|
167
|
-
#### Examples
|
|
168
|
-
|
|
169
|
-
```bash
|
|
170
|
-
bl video ref --prompt "图1在草地上奔跑" --image person.jpg
|
|
171
|
-
```
|
|
172
|
-
|
|
173
|
-
```bash
|
|
174
|
-
bl video ref --prompt "视频1在弹吉他,图1走过来" --ref-video scene.mp4 --image person.jpg
|
|
175
|
-
```
|
|
176
|
-
|
|
177
|
-
```bash
|
|
178
|
-
bl video ref --prompt "图1说话" --image person.jpg --image-voice voice.mp3 --resolution 1080P
|
|
179
|
-
```
|
|
180
|
-
|
|
181
|
-
```bash
|
|
182
|
-
bl video ref --prompt "图1和图2在对话" --image a.jpg --image b.jpg --image-voice va.mp3 --image-voice vb.mp3
|
|
183
|
-
```
|
|
184
|
-
|
|
185
|
-
### `bl video task get`
|
|
186
|
-
|
|
187
|
-
| Field | Value |
|
|
188
|
-
| --- | --- |
|
|
189
|
-
| **Name** | `video task get` |
|
|
190
|
-
| **Description** | Query async task status |
|
|
191
|
-
| **Usage** | `bl video task get --task-id <id>` |
|
|
192
|
-
|
|
193
|
-
#### Options
|
|
194
|
-
|
|
195
|
-
| Flag | Type | Required | Description |
|
|
196
|
-
| --- | --- | --- | --- |
|
|
197
|
-
| `--task-id <id>` | string | no | Async task ID |
|
|
198
|
-
|
|
199
|
-
#### Examples
|
|
200
|
-
|
|
201
|
-
```bash
|
|
202
|
-
bl video task get --task-id 3b256896-3e70-xxxx-xxxx-xxxxxxxxxxxx
|
|
203
|
-
```
|
|
204
|
-
|
|
205
|
-
```bash
|
|
206
|
-
bl video task get --task-id 3b256896-3e70-xxxx --output json
|
|
207
|
-
```
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
# `bl vision` commands
|
|
2
|
-
|
|
3
|
-
> Auto-generated from `packages/cli/src/commands/catalog.ts`. Do not edit by hand.
|
|
4
|
-
> Regenerate: `pnpm --filter bailian-cli run generate:reference` (runs automatically on `build`).
|
|
5
|
-
|
|
6
|
-
Index: [index.md](index.md)
|
|
7
|
-
|
|
8
|
-
## Commands in this group
|
|
9
|
-
|
|
10
|
-
| Command | Description |
|
|
11
|
-
| --- | --- |
|
|
12
|
-
| `bl vision describe` | Describe an image or video using Qwen-VL |
|
|
13
|
-
|
|
14
|
-
## Command details
|
|
15
|
-
|
|
16
|
-
### `bl vision describe`
|
|
17
|
-
|
|
18
|
-
| Field | Value |
|
|
19
|
-
| --- | --- |
|
|
20
|
-
| **Name** | `vision describe` |
|
|
21
|
-
| **Description** | Describe an image or video using Qwen-VL |
|
|
22
|
-
| **Usage** | `bl vision describe --image <path-or-url> [--video <url>] [--prompt <text>]` |
|
|
23
|
-
|
|
24
|
-
#### Options
|
|
25
|
-
|
|
26
|
-
| Flag | Type | Required | Description |
|
|
27
|
-
| --- | --- | --- | --- |
|
|
28
|
-
| `--image <path-or-url>` | string | no | Local image path or URL |
|
|
29
|
-
| `--video <url>` | array | no | Video file URL or local path (mp4/mov/avi/mkv/webm) |
|
|
30
|
-
| `--prompt <text>` | string | no | Question about the content (default: auto-detected) |
|
|
31
|
-
| `--model <model>` | string | no | Vision model (default: qwen-vl-max) |
|
|
32
|
-
|
|
33
|
-
#### Examples
|
|
34
|
-
|
|
35
|
-
```bash
|
|
36
|
-
bl vision describe --image photo.jpg
|
|
37
|
-
```
|
|
38
|
-
|
|
39
|
-
```bash
|
|
40
|
-
bl vision describe --image https://example.com/photo.jpg --prompt "这只狗是什么品种?"
|
|
41
|
-
```
|
|
42
|
-
|
|
43
|
-
```bash
|
|
44
|
-
bl vision describe --video https://example.com/video.mp4 --prompt "总结视频内容"
|
|
45
|
-
```
|
|
46
|
-
|
|
47
|
-
```bash
|
|
48
|
-
bl vision describe --video ./local-video.mp4
|
|
49
|
-
```
|
|
50
|
-
|
|
51
|
-
```bash
|
|
52
|
-
bl vision describe --image photo.png --prompt "Extract the text" --model qwen-vl-plus
|
|
53
|
-
```
|