Bailian CLI command reference for orchestrating MCP services and managing the skill registry.
Orchestrate MCP services and manage the skill registry from the terminal: list active MCP servers, inspect and invoke tools, register Bailian MCP servers into Agent native configurations, and install, update, and remove skills.
See the MCP servers for feature-page usage.
List MCP servers activated under your Bailian account.
Usage
Example: List MCP servers with name containing 'finance'
List tools exposed by an MCP server (tools/list). Requires API Key authentication.
Usage
Example: List tools from MCP server market-cmapi00073529
Call a tool on an MCP server (tools/call). Requires API Key authentication.
Usage
Example: Call SmartStockSelection tool with query about consumer stocks
Register a Bailian MCP server in an Agent's native configuration. Requires API Key authentication.
Usage
Example: Connect TextGenerateImage server to cursor agent via streamable-http
Remove an unchanged MCP registration previously managed by bailian-cli. No authentication required.
Usage
Example: Disconnect TextGenerateImage server from cursor agent
See the Skill for feature-page usage.
Install all bailian-* skills (one-shot bootstrap for new environments). No authentication required.
Usage
This command only supports global flags.
Install skills from the Bailian skill registry into local agents. No authentication required.
Usage
Example: Install all skills from the Bailian skill registry
List registry skills and diff against local installs. No authentication required.
Usage
This command only supports global flags.
Example: Show registry skills and local install differences in JSON output
Update installed skills to the latest registry versions. No authentication required.
Usage
Example: Update all installed skills to latest registry versions
Remove locally installed skills (registry is untouched). No authentication required.
Usage
Example: Remove spark-video skill from local installation
MCP orchestration
See the MCP servers for feature-page usage.
bl mcp list
List MCP servers activated under your Bailian account.
Usage
| Parameter | Type | Required | Description |
|---|---|---|---|
--name <text> | string | no | Filter by server name (substring match) |
--type <type> | string | no | Server type: OFFICIAL | PRIVATE (default: OFFICIAL) |
--page <n> | number | no | Page number (default: 1) |
--page-size <n> | number | no | Results per page (default: 30) |
bl mcp tools
List tools exposed by an MCP server (tools/list). Requires API Key authentication.
Usage
| Parameter | Type | Required | Description |
|---|---|---|---|
--server <code> | string | yes | Server code from mcp list (e.g. market-cmapi00073529) |
--url <url> | string | no | Override the MCP endpoint URL (non-Bailian). Tries Streamable HTTP first, then classic SSE on the same URL. |
bl mcp call
Call a tool on an MCP server (tools/call). Requires API Key authentication.
Usage
| Parameter | Type | Required | Description |
|---|---|---|---|
--target <server.tool> | string | yes | Server code and tool name joined by a dot, e.g. market-cmapi00073529.SmartStockSelection |
--arg <kv> | array | no | Tool argument (repeatable). Values parsed as JSON if possible, else string. |
--json <obj> | string | no | Full arguments object as JSON; merged with --arg (arg wins). |
--query <text> | string | no | Shortcut for --arg query=<text> (mirrors many DashScope MCP tools). |
--url <url> | string | no | Override the MCP endpoint URL (non-Bailian). Tries Streamable HTTP first, then classic SSE on the same URL. |
Native Agent registration
bl mcp connect
Register a Bailian MCP server in an Agent's native configuration. Requires API Key authentication.
Usage
| Parameter | Type | Required | Description |
|---|---|---|---|
--server <code> | string | yes | Bailian MCP Server Code, such as TextGenerateImage |
--transport <transport> | string | yes | MCP transport exposed by the server: streamable-http or sse |
--agent <agent> | string | yes | Target Agent: codex, claude-code, cursor, qoder, qoderwork, qwenwork, qwen-code, gemini, opencode, openclaw, deepseek-harness, zcode, workbuddy, pi, or all |
- This release registers the official MCP endpoint; the model API --base-url does not change the MCP endpoint.
- The resolved API key is written to the selected Agent's private local configuration. Existing unmanaged entries are never overwritten.
- qoder, qoderwork, and qwenwork are independent products. qwenwork is QwenWork (千问办公); qoderwork is Qoder Work.
- workbuddy covers CodeBuddy / WorkBuddy. deepseek-harness is DeepSeek Harness and only accepts streamable-http.
bl mcp disconnect
Remove an unchanged MCP registration previously managed by bailian-cli. No authentication required.
Usage
| Parameter | Type | Required | Description |
|---|---|---|---|
--server <code> | string | yes | Bailian MCP Server Code used during connect |
--agent <agent> | string | yes | Target Agent: codex, claude-code, cursor, qoder, qoderwork, qwenwork, qwen-code, gemini, opencode, openclaw, deepseek-harness, zcode, workbuddy, pi, or all |
- A registration changed after connect is left untouched and reported as a conflict.
Skill management
See the Skill for feature-page usage.
bl skill init
Install all bailian-* skills (one-shot bootstrap for new environments). No authentication required.
Usage
- Fetches the registry index and installs every skill whose name starts with
bailian-. - Equivalent to:
bl skill add --all(filtered tobailian-*skills).
bl skill add
Install skills from the Bailian skill registry into local agents. No authentication required.
Usage
| Parameter | Type | Required | Description |
|---|---|---|---|
--all | switch | no | Install all skills from the registry |
--name <name,...> | string | no | Comma-separated skill names to install |
bl skill list
List registry skills and diff against local installs. No authentication required.
Usage
- STATUS: installed | outdated | not-installed | missing (lock has it, dir deleted) | untracked (dir exists, not managed)
bl skill update
Update installed skills to the latest registry versions. No authentication required.
Usage
| Parameter | Type | Required | Description |
|---|---|---|---|
--all | switch | no | Update all installed skills (default when neither --all nor --name is given) |
--name <name,...> | string | no | Comma-separated skill names to update (must be already installed) |
bl skill remove
Remove locally installed skills (registry is untouched). No authentication required.
Usage
| Parameter | Type | Required | Description |
|---|---|---|---|
--name <all|name,...> | string | yes | Skills to remove: all or comma-separated skill names |