Bailian CLI command reference for auth configuration, profile management, model marketplace, file upload, and general tools.
Manage CLI authentication, switch profiles, browse the model marketplace, upload files, and use general tools from the terminal.
Run
Authentication
| Capability | Command | Notes |
|---|---|---|
| Login | bl auth login | Authenticate via API Key / console browser / AK-SK |
| Auth status | bl auth status | View current auth config (masked) |
| Logout | bl auth logout | Clear locally stored credentials and sign out |
| Access token | bl auth generate-access-token | Generate a CLI access token using AK/SK |
Configuration
| Capability | Command | Notes |
|---|---|---|
| Config read/write | bl config set / bl config show | Read and write config keys such as api_key, base_url |
| Profiles | bl config set / show / list / use | Create, view, and switch isolated named profiles (multi-account) |
| Visual config | bl config ui | Browse installed skills, MCP, agents, and assets in a local Web UI |
| Agent setup | bl config agent | One-click config of Claude Code / Qwen Code / OpenCode / OpenClaw / Codex to use Bailian model services |
General tools
| Capability | Command | Notes |
|---|---|---|
| File upload | bl file upload | Upload local files to temporary storage |
| Model list | bl model list | Browse the model marketplace — details, parameters, pricing; JSON output by default |
| Model advisor | bl advisor recommend | Recommend the best-fit model from a task description |
| Pipeline | bl pipeline run / validate | Run / validate Pipeline workflows |
| Plugins | bl plugin install / list / remove / link | Manage Command Pack plugins |
| Workspace | bl workspace init / list | Initialize service activation and list workspaces |
| Console gateway | bl console call | Call console APIs through the CLI gateway |
| Update | bl update | Check for and update the CLI to the latest version |
bl --help to view all command groups.