bailian-cli 1.7.0 → 1.8.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/README.md +9 -7
- package/README.zh.md +9 -7
- package/dist/bailian.mjs +1 -1
- package/package.json +6 -5
package/README.md
CHANGED
|
@@ -38,8 +38,8 @@ Equip your AI Agent out-of-the-box with these capabilities, composable across co
|
|
|
38
38
|
- **MCP integration** — Orchestrate Bailian MCP servers: list services, inspect tools, and invoke any tool directly from the terminal
|
|
39
39
|
- **Web search** — Real-time internet retrieval for up-to-date, accurate answers
|
|
40
40
|
- **Model recommendation** — Describe your scenario and get best-fit model suggestions; supports scoped search, model comparison, and alternative discovery
|
|
41
|
-
- **Fine-tuning & deployment** — Upload datasets, create
|
|
42
|
-
- **Console capabilities** — Browse Bailian apps (`app list`), check free-tier quota (`usage free`), view model usage statistics (`usage stats`), manage workspaces (`workspace list`), and manage rate limits (`quota list/request/check/history`)
|
|
41
|
+
- **Fine-tuning & deployment** — Upload datasets, create text/audio/image fine-tune jobs (`finetune text|audio|image create`; text covers SFT/LoRA/DPO/CPT), probe job status non-blockingly (`finetune watch`), query per-model training capability (`finetune capability`), and deploy trained models as endpoints (`deploy text|audio|image create`)
|
|
42
|
+
- **Console capabilities** — Browse the model marketplace (`model list`) and Bailian apps (`app list`), review a unified usage view (`usage summary`), check free-tier quota (`usage free`), view model usage statistics (`usage stats`), manage workspaces (`workspace list`), and manage rate limits (`quota list/request/check/history`)
|
|
43
43
|
- **Local file auto-upload** — Every URL parameter accepts a local path; uploaded to free temp storage with 48-hour validity
|
|
44
44
|
|
|
45
45
|
## Showcase: One-Sentence Cinematic Video
|
|
@@ -114,13 +114,15 @@ bl auth login --console
|
|
|
114
114
|
|
|
115
115
|
# Fine-tune & deploy — a one-shot train-to-serve workflow
|
|
116
116
|
bl dataset upload --file ./train.jsonl # Upload a .jsonl dataset (validated first)
|
|
117
|
-
bl finetune create --model qwen3-8b --datasets ./train.jsonl --training-type sft-lora # Local paths auto-upload
|
|
118
|
-
bl finetune watch --job-id ft-xxx --output json # Non-blocking
|
|
117
|
+
bl finetune text create --model qwen3-8b --datasets ./train.jsonl --training-type sft-lora # Local paths auto-upload
|
|
118
|
+
bl finetune watch --job-id ft-xxx --output json # Non-blocking probe (running/succeeded return 0; failed/canceled report an error)
|
|
119
119
|
bl finetune capability --model qwen3-8b # Which training types a model supports
|
|
120
|
-
bl deploy create --model qwen3-8b --name my-svc --plan mu # Deploy the trained model as an endpoint
|
|
120
|
+
bl deploy text create --model qwen3-8b --name my-svc --plan mu # Deploy the trained model as an endpoint
|
|
121
121
|
|
|
122
|
-
# Browse apps / free-tier quota / usage statistics / workspaces
|
|
122
|
+
# Browse models / apps / free-tier quota / usage statistics / workspaces
|
|
123
|
+
bl model list # Browse model families and pricing
|
|
123
124
|
bl app list
|
|
125
|
+
bl usage summary # Unified view: free-tier quota + recent usage overview
|
|
124
126
|
bl usage free # Free-tier quota across models (add --model/--expiring/--sort)
|
|
125
127
|
bl usage stats --workspace-id <id> # Model usage statistics (add --model for per-model)
|
|
126
128
|
bl workspace list # List all workspaces
|
|
@@ -159,7 +161,7 @@ bl text chat --api-key sk-xxxxx --message "Hello"
|
|
|
159
161
|
|
|
160
162
|
### Console Login (OAuth)
|
|
161
163
|
|
|
162
|
-
Required for console capability commands (`
|
|
164
|
+
Required for console capability commands (`model list`, `app list`, `usage summary/free/stats`, `workspace list`, `quota list/request/check/history`). Opens the Bailian console in your browser to sign in.
|
|
163
165
|
|
|
164
166
|
```bash
|
|
165
167
|
bl auth login --console
|
package/README.zh.md
CHANGED
|
@@ -38,8 +38,8 @@ _专为 AI Agent 打造,每个命令均可作为结构化工具调用。_
|
|
|
38
38
|
- **MCP 集成** — 统一调度百炼 MCP 服务:列出服务、查看工具、直接在终端调用任意工具
|
|
39
39
|
- **联网搜索** — 实时互联网信息检索,提升回答准确性及时效性
|
|
40
40
|
- **模型推荐** — 描述你的场景,智能推荐最适合的模型;支持限定范围搜索、模型对比和替代发现
|
|
41
|
-
- **微调与部署** —
|
|
42
|
-
- **控制台能力** —
|
|
41
|
+
- **微调与部署** — 上传数据集、创建文本/音频/图像调优任务(`finetune text|audio|image create`;文本涵盖 SFT/LoRA/DPO/CPT)、非阻塞探测任务状态(`finetune watch`)、按模型查训练能力(`finetune capability`),并把训练好的模型部署为推理服务(`deploy text|audio|image create`)
|
|
42
|
+
- **控制台能力** — 浏览模型市场(`model list`)和百炼应用(`app list`),查看统一用量视图(`usage summary`),查询模型免费额度(`usage free`),查看模型用量统计(`usage stats`),管理业务空间(`workspace list`),管理限流与提额(`quota list/request/check/history`)
|
|
43
43
|
- **本地文件自动上传** — 所有 URL 参数同时支持本地路径,免费临时存储 48 小时
|
|
44
44
|
|
|
45
45
|
## 示例:一句话生成一部电影短片
|
|
@@ -112,13 +112,15 @@ bl auth login --console
|
|
|
112
112
|
|
|
113
113
|
# 微调与部署 — 从训练到服务的一站式流程
|
|
114
114
|
bl dataset upload --file ./train.jsonl # 上传 .jsonl 数据集(先校验)
|
|
115
|
-
bl finetune create --model qwen3-8b --datasets ./train.jsonl --training-type sft-lora # 本地路径自动上传
|
|
116
|
-
bl finetune watch --job-id ft-xxx --output json #
|
|
115
|
+
bl finetune text create --model qwen3-8b --datasets ./train.jsonl --training-type sft-lora # 本地路径自动上传
|
|
116
|
+
bl finetune watch --job-id ft-xxx --output json # 非阻塞探测(运行中/成功返回 0;失败/取消报错)
|
|
117
117
|
bl finetune capability --model qwen3-8b # 查询模型支持哪些训练方式
|
|
118
|
-
bl deploy create --model qwen3-8b --name my-svc --plan mu # 把训练好的模型部署为推理服务
|
|
118
|
+
bl deploy text create --model qwen3-8b --name my-svc --plan mu # 把训练好的模型部署为推理服务
|
|
119
119
|
|
|
120
|
-
#
|
|
120
|
+
# 浏览模型 / 应用 / 免费额度 / 用量统计 / 业务空间
|
|
121
|
+
bl model list # 浏览模型系列与价格信息
|
|
121
122
|
bl app list
|
|
123
|
+
bl usage summary # 统一视图:免费额度 + 近期用量概览
|
|
122
124
|
bl usage free # 各模型免费额度(可加 --model/--expiring/--sort)
|
|
123
125
|
bl usage stats --workspace-id <id> # 模型用量统计(加 --model 查单模型)
|
|
124
126
|
bl workspace list # 列出所有业务空间
|
|
@@ -157,7 +159,7 @@ bl text chat --api-key sk-xxxxx --message "你好"
|
|
|
157
159
|
|
|
158
160
|
### 控制台登录(OAuth)
|
|
159
161
|
|
|
160
|
-
控制台能力命令(`app list`、`usage free
|
|
162
|
+
控制台能力命令(`model list`、`app list`、`usage summary/free/stats`、`workspace list`、`quota list/request/check/history`)需要使用此登录方式。打开浏览器跳转百炼控制台完成登录。
|
|
161
163
|
|
|
162
164
|
```bash
|
|
163
165
|
bl auth login --console
|
package/dist/bailian.mjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
|
-
import{createCli as e}from"bailian-cli-runtime";import{advisorRecommend as t,appCall as n,appList as r,authLogin as i,authLogout as a,authStatus as o,configSet as s,configShow as c,consoleCall as l,datasetDelete as u,datasetGet as d,datasetList as f,datasetUpload as p,datasetValidate as m,
|
|
3
|
+
import{createCli as e}from"bailian-cli-runtime";import{advisorRecommend as t,appCall as n,appList as r,authLogin as i,authLogout as a,authStatus as o,configSet as s,configShow as c,consoleCall as l,datasetDelete as u,datasetGet as d,datasetList as f,datasetUpload as p,datasetValidate as m,deployAudioCreate as h,deployDelete as g,deployGet as _,deployImageCreate as v,deployList as y,deployModels as b,deployScale as x,deployTextCreate as S,deployUpdate as C,fileUpload as w,finetuneAudioCreate as T,finetuneCancel as E,finetuneCapability as D,finetuneCheckpoints as O,finetuneDelete as k,finetuneExport as A,finetuneGet as j,finetuneImageCreate as M,finetuneList as N,finetuneLogs as P,finetuneTextCreate as F,finetuneWatch as I,imageEdit as L,imageGenerate as R,knowledgeChat as z,knowledgeRetrieve as B,knowledgeSearch as V,mcpCall as H,mcpList as U,mcpTools as W,memoryAdd as G,memoryDelete as K,memoryList as q,memoryProfileCreate as J,memoryProfileGet as Y,memorySearch as X,memoryUpdate as Z,modelList as Q,pipelineRun as $,pipelineValidate as ee,pluginInstall as te,pluginLink as ne,pluginList as re,pluginRemove as ie,quotaCheck as ae,quotaHistory as oe,quotaList as se,quotaRequest as ce,searchWeb as le,speechRecognize as ue,speechSynthesize as de,textChat as fe,textOmni as pe,tokenPlanAddMember as me,tokenPlanAssignSeats as he,tokenPlanCreateKey as ge,tokenPlanListSeats as _e,update as ve,usageFree as ye,usageFreetier as be,usageStats as xe,usageSummary as Se,videoDownload as Ce,videoEdit as we,videoGenerate as Te,videoRef as Ee,videoTaskGet as De,visionDescribe as Oe,workspaceList as ke}from"bailian-cli-commands";e({"auth login":i,"auth status":o,"auth logout":a,"text chat":fe,omni:pe,"image generate":R,"image edit":L,"video generate":Te,"video edit":we,"video ref":Ee,"video task get":De,"video download":Ce,"vision describe":Oe,"config show":c,"config set":s,update:ve,"app call":n,"app list":r,"memory add":G,"memory search":X,"memory list":q,"memory update":Z,"memory delete":K,"memory profile create":J,"memory profile get":Y,"knowledge retrieve":B,"knowledge search":V,"knowledge chat":z,"mcp call":H,"mcp list":U,"mcp tools":W,"search web":le,"speech synthesize":de,"speech recognize":ue,"file upload":w,"console call":l,"usage free":ye,"usage freetier":be,"usage stats":xe,"usage summary":Se,"pipeline run":$,"pipeline validate":ee,"advisor recommend":t,"model list":Q,"workspace list":ke,"quota list":se,"quota request":ce,"quota history":oe,"quota check":ae,"dataset upload":p,"dataset list":f,"dataset get":d,"dataset delete":u,"dataset validate":m,"finetune text create":F,"finetune audio create":T,"finetune image create":M,"finetune list":N,"finetune get":j,"finetune cancel":E,"finetune delete":k,"finetune logs":P,"finetune checkpoints":O,"finetune export":A,"finetune watch":I,"finetune capability":D,"deploy text create":S,"deploy audio create":h,"deploy image create":v,"deploy list":y,"deploy get":_,"deploy models":b,"deploy scale":x,"deploy update":C,"deploy delete":g,"token-plan list-seats":_e,"token-plan create-key":ge,"token-plan assign-seats":he,"token-plan add-member":me,"plugin install":te,"plugin link":ne,"plugin list":re,"plugin remove":ie},{binName:`bl`,version:`1.8.1`,clientName:`bailian-cli`,npmPackage:`bailian-cli`,quickStartTasks:[`Help me generate a set of Amazon e-commerce main images for baseball caps (white background + lifestyle shots + model wear shots)`,`Help me generate a 3-minute humorous crosstalk audio clip`,`Help me generate a Little Red Riding Hood picture-book PDF (with illustrations)`,`Help me analyze this video and write a Xiaohongshu-style post`],commandPacks:{supported:{"@ali/bailian-plugin-agent":{commandPrefixes:[`agent`],credentialAccess:[`apiKey`]},"@ali/bailian-plugin-inner-console-call":{commandPrefixes:[`inner-console`]}}}}).run();export{};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bailian-cli",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.8.1",
|
|
4
4
|
"description": "CLI for Aliyun Model Studio (DashScope) AI Platform.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"agent",
|
|
@@ -36,9 +36,9 @@
|
|
|
36
36
|
"registry": "https://registry.npmjs.org/"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"bailian-cli-
|
|
40
|
-
"bailian-cli-
|
|
41
|
-
"bailian-cli-runtime": "1.
|
|
39
|
+
"bailian-cli-core": "1.8.1",
|
|
40
|
+
"bailian-cli-commands": "1.8.1",
|
|
41
|
+
"bailian-cli-runtime": "1.8.1"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
44
|
"@clack/prompts": "^0.7.0",
|
|
@@ -50,7 +50,8 @@
|
|
|
50
50
|
"typescript": "^6.0.2",
|
|
51
51
|
"undici": "^8.4.1",
|
|
52
52
|
"vite-plus": "0.1.22",
|
|
53
|
-
"yaml": "^2.8.3"
|
|
53
|
+
"yaml": "^2.8.3",
|
|
54
|
+
"e2e": "0.0.0"
|
|
54
55
|
},
|
|
55
56
|
"engines": {
|
|
56
57
|
"node": ">=22.12.0"
|