All notable changes to the bailian-cli packages are documented here.
The format follows Keep a Changelog, and this project adheres to Semantic Versioning. The bailian-cli, bailian-cli-core, bailian-cli-runtime, bailian-cli-commands, and knowledge-studio-cli packages share a single version number.
中文版 · README · Contributing
bl auth login --open-apinow stores Alibaba Cloud OpenAPI AK/SK credentials for Token Plan commands;bl auth statusreports API key, console, and OpenAPI credential state separately, andbl auth logout --open-apiclears only OpenAPI credentials.ksclihelp and examples now render as Knowledge Studio paths such askscli search,kscli chat, andkscli retrieve, matching the standalone CLI.
- Token Plan commands now use the shared OpenAPI AK/SK credential flow, including persisted credentials and
ALIBABA_CLOUD_ACCESS_KEY_ID/ALIBABA_CLOUD_ACCESS_KEY_SECRETenvironment variables. - Auth flags are now scoped to the commands that can use them. Passing model, console, or OpenAPI credential flags to the wrong command now reports an unknown flag instead of being accepted and ignored.
- Help and command reference output now show only the flags that apply to each command's auth mode, making model, console, and OpenAPI credentials easier to distinguish.
- Missing required flags now return usage errors with exit code 2 instead of opening interactive prompts or printing help with exit code 0.
- Image, video, and speech task commands now use
--asyncconsistently for returning task IDs without waiting;--concurrentis shown only on commands that support parallel requests. - Default command output is text unless
--output json,DASHSCOPE_OUTPUT=json, or config explicitly requests JSON. - Update checks are throttled to once per day and can surface in non-TTY/agent runs.
- Proxy setup now reads uppercase
HTTP_PROXY/HTTPS_PROXY/NO_PROXYonly; lowercase proxy environment variables are ignored. bl auth loginno longer prints the onboarding quick start block after a successful login.
- Deprecated AK/SK authentication for
bl knowledge retrieve; use DashScope API key auth for knowledge commands. - Removed
--no-color,--non-interactive, and--no-wait. UseNO_COLOR=1for plain output and--asyncfor task submission without waiting. - Removed
--yesand interactive confirmation prompts from delete/logout commands; use--dry-runto preview before running destructive operations.
- Credential-gated
--dry-runpaths now skip auth preflight so commands such as Token Plan can print request details without configured credentials. --verbosemodel requests again print request method, URL, auth source, and response status details.
bl vision describeexamples and skill reference now useqwen3-vl-plusinstead of the legacyqwen-vl-plusmodel id, matching the command's default model.
bl knowledge search— semantic search across knowledge bases using the new workspace-based RAG API. Supports--query,--agent-id,--workspace-id,--image(multimodal retrieval, repeatable), and--query-history(JSON conversation context for multi-turn query rewriting).bl knowledge chat— knowledge-base Q&A with SSE streaming. Supports--message(repeatable, withrole:contentprefix for multi-turn history),--agent-id,--workspace-id, and--image(multimodal). Displays real-time progress with step-change labels (retrieval, planning, generation) in interactive mode.bailian-cli-coregains new types and endpoints for the workspace-based knowledge API:KnowledgeSearchRequest/KnowledgeSearchResponse,KnowledgeChatRequest/KnowledgeChatStreamChunk/KnowledgeChatMessage/KnowledgeChatContentPart, andknowledgeSearchEndpoint/knowledgeChatEndpoint.ksclinow shipssearchandchatcommands alongside the existingretrieve.
bl knowledge retrieveis now marked as deprecated in its description; usebl knowledge searchinstead.kscliREADME (EN + ZH) updated to featuresearchandchatas the primary commands, withretrievemarked deprecated.
- Model fine-tuning —
bl finetune: create, list, get, watch, and cancel jobs; fetch training logs; list checkpoints; export a checkpoint as a deployable model; and query training capability (by model or by training type). Supportssft,sft-lora,dpo,dpo-lora, andcpttraining types. - Model deployment —
bl deploy: create, list, get, update (rate limits), scale, and delete deployments; list deployable models and plans. - Dataset management —
bl dataset: upload, list, get, and delete dataset files, plusbl dataset validateto check a local.jsonlbefore uploading (ChatML / DPO / CPT formats). - Token Plan management —
bl token-plan: list subscription seats, add members, batch-assign seats, and create a per-seat API key. - Automatic update check: after a command finishes, the CLI checks npm for a newer release (throttled) and shows an
Update availablehint; a major stable-version gap upgrades itself automatically. Skipped with--quietor when runningbl update. - Composable packages:
bailian-cli-runtime(CLI framework) andbailian-cli-commands(command library) are now published alongsidebailian-cli-core, and a new sibling CLIknowledge-studio-cli(kscli) ships on top of them.blbehavior is unchanged.
bl config export-schema(exported CLI commands as Anthropic/OpenAI-compatible JSON tool schemas) has been removed.
- Console gateway commands (
bl console call, etc.) now surface a readable message when the gateway returns a non-stringerrorCode, instead of[object Object].
bl omni --list-voicesprints the built-in output voices (ID, name, description, language) and exits without needing an API key. The built-in voice table is expanded from 6 to 17 voices, including dialect voices such as Dylan, Sunny, and Kiki.
bl omnidefault--voiceis nowTina(previouslyCherry). The--voicehelp points at--list-voicesinstead of listing every option inline.bl speech synthesize --list-voicesand its missing---voicehint now include a link to the official CosyVoice voice documentation.- Agent skill setup guidance now covers console site selection (
--console-site domestic/international) for console login and gateway commands.
bl speech synthesizecorrects thecosyvoice-v3-flashbuilt-in voice ID fromlonganhuantolonganhuan_v3.
- Video generation now defaults to the upgraded HappyHorse 1.1 model for better quality. The 1.0 models are still available via
--model. bl updatenow keeps the agent skill in sync across all your agent apps (Claude Code, Cursor, etc.), and refreshes it even when the CLI is already up to date.
- Console gateway now supports multiple regions and sites:
cn-beijingandap-southeast-1, each with domestic and international variants, plusswitchAgentfor delegated access. - New global flags
--console-region,--console-site, and--console-switch-agent;bl console callalso gains--siteand--switch-agent. bl auth login --base-url <url>to specify the base URL when logging in with an API key.bl omnigains a--voiceoption (Chelsie, Cherry, Ethan, Serena, Sunny, Tina; default Cherry).
- All user-facing CLI text is now standardized to English.
bl advisor recommendinternal intent/ranking model upgraded fromqwen-turbotoqwen-flash.- Cleaner JSON output for
usage,quota, andworkspacecommands. base_urlfrom the config file now takes priority over theDASHSCOPE_BASE_URLenvironment variable.bl config shownow displays all fields fromconfig.json, with sensitive values masked.
- The legacy
regionconfig field and its related options. - Invalid leftover code for the removed
model listcommand.
- When the console session is not logged in or has expired, the CLI now shows a clear sign-in prompt instead of a generic gateway error.
- Corrected
--resolution/--ratio/--durationflag descriptions forbl videocommands.
bl knowledge retrieve --helpnow clearly indicates that--api-keyis the recommended authentication method; AK/SK flags are explicitly marked as deprecated with guidance to use--api-keyinstead.
notesfield for command definitions — commands can now include contextual notes (auth requirements, deprecation notices, etc.) that are displayed in both--helpoutput and the generated reference docs.
- Fixed
bl omni --audioalways returning HTTP 400 (#54); audio inputs are now understood correctly.
blnow honorsHTTP_PROXY/HTTPS_PROXY/NO_PROXYenvironment variables (#35). Node's built-infetch(undici) ignores proxy env vars by default, causingECONNRESETfor users behind a VPN or corporate proxy. A global proxy dispatcher is now installed at startup when these variables are set, and theECONNRESETerror hint points toexport HTTPS_PROXY=http://127.0.0.1:<port>.
-
bl knowledge retrievenow supports API-Key authentication (DashScope gateway), in addition to AK/SK. API-Key is auto-detected and preferred when available. -
New retrieval options:
--dense-similarity-top-k,--sparse-similarity-top-k,--rerank-model,--rerank-mode,--rerank-instruct— supported on both API-Key and AK/SK paths. -
DashScopeKnowledgeRetrieveRequest/DashScopeKnowledgeRetrieveResponsetypes andknowledgeRetrieveEndpointadded tobailian-cli-core. -
Comprehensive E2E tests for knowledge retrieve covering both auth paths, dry-run, rerank flags, and error cases.
-
bl usagecommand group:bl usage free— query free-tier quota for all models (or a specific model with--model).bl usage freetier— enable (--on) or disable (--off) auto-stop for free-tier models.bl usage stats— query model usage statistics (requires--workspace-id).
-
bl quotacommand group:bl quota list— view model RPM/TPM rate limits (filter with--model, show all with--all).bl quota check— check current RPM/TPM usage against rate limits.bl quota history— view quota change history with pagination.bl quota request— request a temporary quota increase for a model.
-
bl workspace list— list all workspaces with region and endpoint details.
- Credential resolution priority: explicit API-Key → explicit AK/SK flags → auto-detected API-Key → fallback AK/SK from config/env.
--workspace-idis now only required for AK/SK auth, no longer mandatory for API-Key mode.--top-kdeprecated in favor of--rerank-top-n; emits a warning and maps to--rerank-top-nwhen used.--access-key-id/--access-key-secretflags marked as deprecated (API-Key is recommended).- API Key and console links updated to direct key management pages across all docs.
--rerankflag in AK/SK path now correctly setsEnableRerankinginstead of the non-functionalRerank: trueboolean.
- Skill install command updated from
npx skills add modelstudioai/skillstonpx skills add modelstudioai/cli --all -gacross all READMEs and docs. bl updatenow automatically updates thebailian-cliagent skill after CLI upgrade.- Renamed
README_CN.mdtoREADME.zh.md(ISO 639 convention) across the entire repo.
- Official skill (
skills/bailian-cli/) now ships in this repository with pre-commit auto-generation of reference docs and SKILL.md version sync. - Bilingual READMEs (EN + CN) for the
bailian-cliskill.
bl mcpcommand group:bl mcp listto list MCP servers,bl mcp tools <server>to inspect available tools, andbl mcp call <server>.<tool>to invoke a tool with--arg k=vor--json.bl advisor recommend— describe your task in natural language and get intelligent model recommendations ranked by fit, with context-window, pricing, and capability details.
- Image/video watermark was always on regardless of config; now respects
bl config set watermark false. - Paired flags (e.g.
--watermark/--no-watermark) are properly mutually exclusive. - Null-value flag validation no longer crashes on missing optional arguments.
- Security: credentials no longer leak to on-disk logs; file permissions tightened.
- Security:
base_url/console_gateway_urlvalidated as real HTTP(S) URLs. - Security: script/JS
codefields require a string literal (blocks untrusted-code RCE). - Security: URL path segments are percent-encoded; SSE buffer is bounded.
- Security: pipeline planning, pointer traversal, and concurrency hardened.
- MCP commands now handle auth after arg validation and dry-run checks.
- Flag default-value text is now unified and de-duplicated across all commands.
- Illegal/unknown flag names surface a clear error instead of silently ignoring.
bl auth login --consolenow also obtains and saves a DashScope API key when none is configured, so a single browser login covers both OAuth and API-key setup.
- API-key validation is more resilient: retries on transient network / 401 / 5xx errors and caps each attempt at 30s.
- Default vision model upgraded from
qwen-vltoqwen3-vl-plusfor stronger visual reasoning and chart/document parsing.
- TypeScript / lint issues surfaced after the 1.1.0 open-source cut.
Documentation-only release. No CLI or SDK behavior changes.
INSTALL.mdwith AI-Agent-driven installation instructions.
- README cross-links between root and
packages/cliare now in sync; CN README aligned with EN. - Removed unpkg links from README in favor of canonical sources.
tools/release.mjsnow asserts root andpackages/cliREADMEs stay in sync before publishing.
tools/release.mjs checknow builds packages before running type checks, sobailian-cli-coreresolves correctly from a clean checkout (previously cascaded into ~80 spurious TS errors).
Initial public release on GitHub. The CLI was previously developed internally; this is the first version published as open source under Apache-2.0.
Out-of-the-box capabilities your AI agent can compose across complex tasks:
Model services
| Capability | Default | Description |
|---|---|---|
| Text generation | qwen3.7-max |
Flagship Max model for the agent era — strong at coding, office work, and long-horizon autonomy |
| Speech synthesis | cosyvoice-v3-flash |
Multi-voice real-time streaming TTS with enhanced naturalness/emotion; clone from 5–20s samples |
| Speech recognition | fun-asr |
7 Chinese dialects + 20+ Mandarin accents; covers 30 languages |
| Image generation | qwen-image-2.0 |
Fused generation & editing, pro text rendering, photorealism, strong semantic adherence |
| Image editing | qwen-image-2.0 |
Smart editing with multi-image composition |
| Image-to-video | happyhorse-1.0-i2v |
Faithful text-semantic interpretation, smooth high-quality output |
| Text-to-video | happyhorse-1.0-t2v |
Vivid motion reproduction with rich detail |
| Reference-to-video | happyhorse-1.0-r2v |
Up to 9 reference images; stable subject & scene preservation |
| Video editing | happyhorse-1.0-video-edit |
Natural-language video editing, up to 5 reference images |
| Vision understanding | qwen-vl |
Long-form video analysis, chart/document parsing, visual reasoning, multilingual OCR |
Application data
| Capability | Default | Description |
|---|---|---|
| Knowledge base | Aliyun Model Studio Knowledge | Multimodal RAG CRUD and retrieval; requires AccessKey |
| Memory | Aliyun Model Studio Memory | Cross-session persistence for personalized coherent dialogue |
Application building
| Capability | Default | Description |
|---|---|---|
| Workflow calls | Workflow service | Invoke published workflow apps |
| Agent calls | Agent service | Invoke published agent apps |
Tools
| Capability | Default | Description |
|---|---|---|
| Web search | bailian_web_search |
Real-time internet retrieval for accuracy and freshness |
| Temp file upload | Temp upload service | Free temp storage; upload local files for URLs (48-hour validity) |
| Free-quota query | Quota query | Check available free-tier quota by model id |
| API reference | Aliyun Model Studio API reference docs | Auto-integrate Aliyun Model Studio model and app capability APIs during build |