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/LICENSE
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
|
|
1
2
|
Apache License
|
|
2
3
|
Version 2.0, January 2004
|
|
3
4
|
http://www.apache.org/licenses/
|
|
@@ -137,8 +138,8 @@
|
|
|
137
138
|
|
|
138
139
|
6. Trademarks. This License does not grant permission to use the trade
|
|
139
140
|
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
-
except as required for
|
|
141
|
-
reproducing the content of the NOTICE file.
|
|
141
|
+
except as required for reasonable and customary use in describing the
|
|
142
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
143
|
|
|
143
144
|
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
145
|
agreed to in writing, Licensor provides the Work (and each
|
|
@@ -163,15 +164,15 @@
|
|
|
163
164
|
has been advised of the possibility of such damages.
|
|
164
165
|
|
|
165
166
|
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
-
the Work or Derivative Works thereof, You may
|
|
167
|
-
fee for, acceptance of support, warranty, indemnity,
|
|
168
|
-
liability obligations and/or rights consistent with this
|
|
169
|
-
However, in accepting such obligations, You may act only
|
|
170
|
-
own behalf and on
|
|
171
|
-
and only if You agree to indemnify,
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
additional liability.
|
|
167
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
168
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
169
|
+
or other liability obligations and/or rights consistent with this
|
|
170
|
+
License. However, in accepting such obligations, You may act only
|
|
171
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
172
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
173
|
+
defend, and hold each Contributor harmless for any liability
|
|
174
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
175
|
+
of your accepting any such warranty or additional liability.
|
|
175
176
|
|
|
176
177
|
END OF TERMS AND CONDITIONS
|
|
177
178
|
|
package/README.md
CHANGED
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
<div align="center">
|
|
2
2
|
|
|
3
|
-
<img src="https://img.alicdn.com/imgextra/i1/
|
|
4
|
-
|
|
5
|
-
# >\_ Aliyun Model Studio CLI
|
|
3
|
+
<img src="https://img.alicdn.com/imgextra/i1/O1CN01kGgO3z1N30OINgUoG_!!6000000001513-2-tps-1915-821.png" alt="Aliyun Model Studio CLI" />
|
|
6
4
|
|
|
7
5
|
**The official command-line interface for Aliyun Model Studio (DashScope) AI Platform**
|
|
8
6
|
|
|
@@ -11,7 +9,7 @@
|
|
|
11
9
|
[](https://www.typescriptlang.org)
|
|
12
10
|
[](LICENSE)
|
|
13
11
|
|
|
14
|
-
[Aliyun Model Studio CLI Site](https://bailian.console.aliyun.com/cli) · [中文文档](https://
|
|
12
|
+
[Aliyun Model Studio CLI Site](https://bailian.console.aliyun.com/cli?source_channel=cli_github&) · [中文文档](https://github.com/modelstudioai/cli/blob/main/README_CN.md) · [API Documentation](https://help.aliyun.com/zh/model-studio/) · [Get API Key](https://bailian.console.aliyun.com/cli?source_channel=key_github&)
|
|
15
13
|
|
|
16
14
|
---
|
|
17
15
|
|
|
@@ -26,7 +24,7 @@ _Built for AI Agents. Every command works as a structured tool call._
|
|
|
26
24
|
|
|
27
25
|
Equip your AI Agent out-of-the-box with these capabilities, composable across complex tasks:
|
|
28
26
|
|
|
29
|
-
- **Text chat** — Qwen3.
|
|
27
|
+
- **Text chat** — Qwen3.7-max: major gains in agentic coding, frontend coding, and vibe coding
|
|
30
28
|
- **Multimodal (Omni)** — Full omni-modal support across text + image + audio + video
|
|
31
29
|
- **Image generation & editing** — Qwen-Image 2.0: pro text rendering, photorealism, strong semantic adherence, multi-image composition
|
|
32
30
|
- **Video generation & editing** — HappyHorse-1.0 series: text-/image-/reference-to-video and natural-language video editing (up to 9-image reference)
|
|
@@ -35,17 +33,45 @@ Equip your AI Agent out-of-the-box with these capabilities, composable across co
|
|
|
35
33
|
- **Knowledge base & memory** — Multimodal RAG retrieval and cross-session memory for personalized, coherent dialogue
|
|
36
34
|
- **App calls** — Invoke agents and workflows already published on Aliyun Model Studio
|
|
37
35
|
- **Web search** — Real-time internet retrieval for up-to-date, accurate answers
|
|
38
|
-
- **Console capabilities** — Browse
|
|
36
|
+
- **Console capabilities** — Browse Bailian apps (`app list`) and check free-tier quota (`usage free`)
|
|
39
37
|
- **Local file auto-upload** — Every URL parameter accepts a local path; uploaded to free temp storage with 48-hour validity
|
|
40
38
|
|
|
39
|
+
## Showcase: One-Sentence Cinematic Video
|
|
40
|
+
|
|
41
41
|
<p align="center">
|
|
42
|
-
<
|
|
42
|
+
<a href="https://cloud.video.taobao.com/vod/dS2F4huqbw5Nfe5L3wwb3grz2q2DNYD3retq8dU-iHo.mp4">
|
|
43
|
+
<img src="https://img.alicdn.com/imgextra/i1/O1CN01Q5052k232Hd36NodG_!!6000000007197-0-tps-2940-1656.jpg" alt="Click to play the demo video" width="720" />
|
|
44
|
+
</a>
|
|
43
45
|
</p>
|
|
44
46
|
|
|
47
|
+
<p align="center"><i>👆 Click the cover to play the full 2-minute demo</i></p>
|
|
48
|
+
|
|
49
|
+
A complete **2-minute, 16:9 cinematic short film** — produced end-to-end from a single natural-language sentence, with **zero manual editing**. This showcase demonstrates how an AI Agent can compose a multi-step creative pipeline by orchestrating three primitives:
|
|
50
|
+
|
|
51
|
+
- **[Qwen Code](https://github.com/QwenLM/qwen-code)** — the agentic coding model that interprets the user's intent and drives the workflow
|
|
52
|
+
- **[Aliyun Model Studio CLI](https://bailian.console.aliyun.com/cli?source_channel=cli_github&)** — invokes **HappyHorse 1.0**, Aliyun Model Studio's text-/image-/reference-to-video generation model
|
|
53
|
+
- **[spark-video Skill](https://github.com/JohnKeating1997/spark-video)** — handles scene decomposition, storyboarding, shot continuity, and final stitching
|
|
54
|
+
|
|
55
|
+
### The single prompt
|
|
56
|
+
|
|
57
|
+
> _"Generate a roughly 2-minute video in Japanese cinematic style — a sweet, innocent first-love story about a high-school girl. The plot should be heart-fluttering enough to make viewers want to fall in love. Aspect ratio: 16:9."_
|
|
58
|
+
>
|
|
59
|
+
> _(Original: "帮我生成一段日系影视风格,高中女生的青涩初恋故事,剧情高甜,让人看了想谈恋爱,2分钟左右的视频,尺寸是16:9")_
|
|
60
|
+
|
|
61
|
+
### How it works
|
|
62
|
+
|
|
63
|
+
1. **Qwen Code** parses the request, plans the narrative beats, and decides which tools to call.
|
|
64
|
+
2. The **spark-video Skill** breaks the story into shots, writes per-shot prompts, and enforces visual continuity (characters, lighting, palette, lens language).
|
|
65
|
+
3. **`bl video generate`** dispatches each shot to **HappyHorse 1.0** in parallel.
|
|
66
|
+
4. The skill stitches all clips back together into a single 16:9 / ~2-min deliverable.
|
|
67
|
+
|
|
68
|
+
No timeline scrubbing. No frame-by-frame editing. Just one sentence → one video.
|
|
69
|
+
|
|
45
70
|
## Installation
|
|
46
71
|
|
|
47
72
|
```bash
|
|
48
73
|
npm install -g bailian-cli
|
|
74
|
+
npx skills add modelstudioai/skills --all -g
|
|
49
75
|
```
|
|
50
76
|
|
|
51
77
|
> Requires Node.js >= 22.12.
|
|
@@ -71,19 +97,18 @@ bl video generate --image ./cat.png --prompt "Make the cat move" --download cat.
|
|
|
71
97
|
# Browser login (required for console capability commands)
|
|
72
98
|
bl auth login --console
|
|
73
99
|
|
|
74
|
-
# Browse
|
|
75
|
-
bl model list --name qwen
|
|
100
|
+
# Browse apps / free-tier quota
|
|
76
101
|
bl app list
|
|
77
102
|
bl usage free --model qwen3-max
|
|
78
103
|
```
|
|
79
104
|
|
|
80
|
-
> More examples and scenarios: [Aliyun Model Studio CLI Site](https://bailian.console.aliyun.com/cli)
|
|
105
|
+
> More examples and scenarios: [Aliyun Model Studio CLI Site](https://bailian.console.aliyun.com/cli?source_channel=cli_github&)
|
|
81
106
|
|
|
82
107
|
## Authentication
|
|
83
108
|
|
|
84
109
|
### DashScope API Key
|
|
85
110
|
|
|
86
|
-
Required for most commands. Get your key from the [DashScope Console](https://bailian.console.aliyun.com/
|
|
111
|
+
Required for most commands. Get your key from the [DashScope Console](https://bailian.console.aliyun.com/cli?source_channel=key_github&).
|
|
87
112
|
|
|
88
113
|
```bash
|
|
89
114
|
# Option 1: Environment variable
|
|
@@ -98,7 +123,7 @@ bl text chat --api-key sk-xxxxx --message "Hello"
|
|
|
98
123
|
|
|
99
124
|
### Console Login (OAuth)
|
|
100
125
|
|
|
101
|
-
Required for console capability commands (`
|
|
126
|
+
Required for console capability commands (`app list`, `usage free`). Opens the Bailian console in your browser to sign in.
|
|
102
127
|
|
|
103
128
|
```bash
|
|
104
129
|
bl auth login --console
|
|
@@ -135,11 +160,19 @@ Config file location: `~/.bailian/config.json`
|
|
|
135
160
|
|
|
136
161
|
## Links
|
|
137
162
|
|
|
138
|
-
| Resource | URL
|
|
139
|
-
| :--------------------------- |
|
|
140
|
-
| Aliyun Model Studio CLI Site | https://bailian.console.aliyun.com/cli
|
|
141
|
-
| DashScope API Docs | https://help.aliyun.com/zh/model-studio/
|
|
142
|
-
| Qwen Model List | https://help.aliyun.com/zh/model-studio/getting-started/models
|
|
143
|
-
| Aliyun Model Studio Console | https://bailian.console.aliyun.com/
|
|
144
|
-
| Get API Key | https://bailian.console.aliyun.com/
|
|
145
|
-
| Get AccessKey | https://ram.console.aliyun.com/manage/ak
|
|
163
|
+
| Resource | URL |
|
|
164
|
+
| :--------------------------- | :---------------------------------------------------------------- |
|
|
165
|
+
| Aliyun Model Studio CLI Site | https://bailian.console.aliyun.com/cli?source_channel=cli_github& |
|
|
166
|
+
| DashScope API Docs | https://help.aliyun.com/zh/model-studio/ |
|
|
167
|
+
| Qwen Model List | https://help.aliyun.com/zh/model-studio/getting-started/models |
|
|
168
|
+
| Aliyun Model Studio Console | https://bailian.console.aliyun.com/ |
|
|
169
|
+
| Get API Key | https://bailian.console.aliyun.com/cli?source_channel=key_github& |
|
|
170
|
+
| Get AccessKey | https://ram.console.aliyun.com/manage/ak |
|
|
171
|
+
|
|
172
|
+
## Changelog
|
|
173
|
+
|
|
174
|
+
Release notes for every version live in [CHANGELOG.md](https://github.com/modelstudioai/cli/blob/main/CHANGELOG.md).
|
|
175
|
+
|
|
176
|
+
## Contributing
|
|
177
|
+
|
|
178
|
+
Bug reports, feature requests, and PRs are welcome. See [CONTRIBUTING.md](https://github.com/modelstudioai/cli/blob/main/CONTRIBUTING.md) for developer setup, repo layout, and the workflow for adding or changing commands.
|
package/README_CN.md
CHANGED
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
<div align="center">
|
|
2
2
|
|
|
3
|
-
<img src="https://img.alicdn.com/imgextra/i1/
|
|
4
|
-
|
|
5
|
-
# >\_ Aliyun Model Studio CLI
|
|
3
|
+
<img src="https://img.alicdn.com/imgextra/i1/O1CN01kGgO3z1N30OINgUoG_!!6000000001513-2-tps-1915-821.png" alt="Aliyun Model Studio CLI" />
|
|
6
4
|
|
|
7
5
|
**阿里云百炼 (DashScope) AI 平台命令行工具**
|
|
8
6
|
|
|
@@ -11,7 +9,7 @@
|
|
|
11
9
|
[](https://www.typescriptlang.org)
|
|
12
10
|
[](LICENSE)
|
|
13
11
|
|
|
14
|
-
[阿里云百炼 CLI 官方主页](https://bailian.console.aliyun.com/cli) · [English](https://
|
|
12
|
+
[阿里云百炼 CLI 官方主页](https://bailian.console.aliyun.com/cli) · [English](https://github.com/modelstudioai/cli/blob/main/README.md) · [API 文档](https://help.aliyun.com/zh/model-studio/) · [获取 API Key](https://bailian.console.aliyun.com/cn-beijing/?tab=app#/api-key)
|
|
15
13
|
|
|
16
14
|
---
|
|
17
15
|
|
|
@@ -26,7 +24,7 @@ _专为 AI Agent 打造,每个命令均可作为结构化工具调用。_
|
|
|
26
24
|
|
|
27
25
|
让您的 AI Agent 开箱即具备以下能力,并可在复杂任务中自动组合调用:
|
|
28
26
|
|
|
29
|
-
- **文本对话** — Qwen3.
|
|
27
|
+
- **文本对话** — Qwen3.7-max:Agentic coding、前端编程、Vibe coding 等能力显著增强
|
|
30
28
|
- **全模态对话** — 文本 + 图像 + 音频 + 视频全模态支持
|
|
31
29
|
- **图像生成与编辑** — Qwen-Image 2.0:专业文字渲染、真实质感、强语义遵循、多图合成
|
|
32
30
|
- **视频生成与编辑** — HappyHorse-1.0 系列,支持文生 / 图生 / 参考生(最多 9 张图参考)/ 自然语言视频编辑
|
|
@@ -35,17 +33,43 @@ _专为 AI Agent 打造,每个命令均可作为结构化工具调用。_
|
|
|
35
33
|
- **知识库与记忆库** — 多模态 RAG 检索 + 跨会话记忆,提供个性化连贯对话体验
|
|
36
34
|
- **应用调用** — 调用已发布在阿里云百炼平台上的智能体与工作流应用
|
|
37
35
|
- **联网搜索** — 实时互联网信息检索,提升回答准确性及时效性
|
|
38
|
-
- **控制台能力** —
|
|
36
|
+
- **控制台能力** — 浏览百炼应用(`app list`),查询模型免费额度(`usage free`)
|
|
39
37
|
- **本地文件自动上传** — 所有 URL 参数同时支持本地路径,免费临时存储 48 小时
|
|
40
38
|
|
|
39
|
+
## 示例:一句话生成一部电影短片
|
|
40
|
+
|
|
41
41
|
<p align="center">
|
|
42
|
-
<
|
|
42
|
+
<a href="https://cloud.video.taobao.com/vod/dS2F4huqbw5Nfe5L3wwb3grz2q2DNYD3retq8dU-iHo.mp4">
|
|
43
|
+
<img src="https://img.alicdn.com/imgextra/i1/O1CN01Q5052k232Hd36NodG_!!6000000007197-0-tps-2940-1656.jpg" alt="点击播放演示视频" width="720" />
|
|
44
|
+
</a>
|
|
43
45
|
</p>
|
|
44
46
|
|
|
47
|
+
<p align="center"><i>👆 点击封面播放完整 2 分钟演示</i></p>
|
|
48
|
+
|
|
49
|
+
一部完整的 **2 分钟、16:9 电影感短片** —— 由一句自然语言端到端生成,**全程零手动剪辑**。这个示例展示了 AI Agent 如何把三个基础能力编排成一条多步创作流水线:
|
|
50
|
+
|
|
51
|
+
- **[Qwen Code](https://github.com/QwenLM/qwen-code)** —— Agentic coding 模型,解析用户意图、驱动整个工作流
|
|
52
|
+
- **[阿里云百炼 CLI](https://github.com/modelstudioai/cli/)** —— 调用 **HappyHorse 1.0**,百炼的文生/图生/参考生视频模型
|
|
53
|
+
- **[spark-video Skill](https://github.com/JohnKeating1997/spark-video)** —— 负责场景拆分、分镜设计、镜头连贯性和最终拼接
|
|
54
|
+
|
|
55
|
+
### 唯一的提示词
|
|
56
|
+
|
|
57
|
+
> _"帮我生成一段日系影视风格,高中女生的青涩初恋故事,剧情高甜,让人看了想谈恋爱,2 分钟左右的视频,尺寸是 16:9"_
|
|
58
|
+
|
|
59
|
+
### 工作流程
|
|
60
|
+
|
|
61
|
+
1. **Qwen Code** 解析需求、规划叙事节奏,决定要调用哪些工具。
|
|
62
|
+
2. **spark-video Skill** 把故事拆成镜头、为每个镜头写提示词,并保证视觉连贯性(角色、光线、色调、镜头语言)。
|
|
63
|
+
3. **`bl video generate`** 把每个镜头并行下发给 **HappyHorse 1.0**。
|
|
64
|
+
4. Skill 把所有片段拼成最终的 16:9 / 约 2 分钟成片。
|
|
65
|
+
|
|
66
|
+
没有时间线拖拽,没有逐帧剪辑。一句话 → 一部短片。
|
|
67
|
+
|
|
45
68
|
## 安装
|
|
46
69
|
|
|
47
70
|
```bash
|
|
48
71
|
npm install -g bailian-cli
|
|
72
|
+
npx skills add modelstudioai/skills --all -g
|
|
49
73
|
```
|
|
50
74
|
|
|
51
75
|
> 需要预先安装 Node.js >= 22.12。
|
|
@@ -71,8 +95,7 @@ bl video generate --image ./cat.png --prompt "让画面中的猫动起来" --dow
|
|
|
71
95
|
# 浏览器登录(控制台能力相关命令需要)
|
|
72
96
|
bl auth login --console
|
|
73
97
|
|
|
74
|
-
#
|
|
75
|
-
bl model list --name qwen
|
|
98
|
+
# 浏览应用 / 免费额度
|
|
76
99
|
bl app list
|
|
77
100
|
bl usage free --model qwen3-max
|
|
78
101
|
```
|
|
@@ -98,7 +121,7 @@ bl text chat --api-key sk-xxxxx --message "你好"
|
|
|
98
121
|
|
|
99
122
|
### 控制台登录(OAuth)
|
|
100
123
|
|
|
101
|
-
控制台能力命令(`
|
|
124
|
+
控制台能力命令(`app list`、`usage free`)需要使用此登录方式。打开浏览器跳转百炼控制台完成登录。
|
|
102
125
|
|
|
103
126
|
```bash
|
|
104
127
|
bl auth login --console
|
|
@@ -143,3 +166,11 @@ bl update
|
|
|
143
166
|
| 阿里云百炼控制台 | https://bailian.console.aliyun.com/ |
|
|
144
167
|
| 获取 API Key | https://bailian.console.aliyun.com/cn-beijing/?tab=app#/api-key |
|
|
145
168
|
| 获取 AccessKey | https://ram.console.aliyun.com/manage/ak |
|
|
169
|
+
|
|
170
|
+
## 更新日志
|
|
171
|
+
|
|
172
|
+
每个版本的变更详情记录在 [CHANGELOG_CN.md](https://github.com/modelstudioai/cli/blob/main/CHANGELOG_CN.md)。
|
|
173
|
+
|
|
174
|
+
## 参与贡献
|
|
175
|
+
|
|
176
|
+
欢迎提 Issue、Feature Request 和 PR。开发环境搭建、仓库结构、新增/修改命令的工作流请见 [CONTRIBUTING_CN.md](https://github.com/modelstudioai/cli/blob/main/CONTRIBUTING_CN.md)。
|