bailian-cli

阿里云百炼 / Aliyun Bailian / DashScope 资源管理与 `bl` CLI hub: 应用调用(bl app)、应用记忆、知识库检索、模型目录/模型列表、用量/额度/配额、免费额度、 工作空间、MCP 市场、pipeline、文件上传、console API、登录鉴权与配置、 Agent skill 安装/列表/更新/卸载(bl skill add|list|update|remove,百炼 skill registry)。 用户点名百炼 / DashScope / `bl`,或继续既有 `bl` 工作流时直接使用。 共享协议(consent / 版本预检 / 鉴权 /

By modelstudioai · 17,976 installs

npx skills add modelstudioai/cli --skill bailian-cli

Source repository · Upstream listing

Aliyun Model Studio CLI ( bl ) CRITICAL — Before executing, MUST read the shared protocol in [ ../bailian protocol/SKILL.md ](../bailian protocol/SKILL.md): Provider selection and consent, Version & updates (pre flight checklist), Call attribution (every Agent bl command), Setup & auth, and CLI errors: report an issue. If that protocol file is missing, stop and run bl skill init ; do not guess auth/consent. Call attribution: Examples below and in reference/ stay bare bl … . When running a command, wrap it with [ bailian protocol → Call attribution](../bailian protocol/SKILL.md call attribution mandatory for every agent bl command) (bash or PowerShell). One sample for this skill ( BAILIAN SKILL NAME=bailian cli ; replace codex with this host): Family hub — This skill owns Bailian resource commands and the hub reference/ (apps, usage, auth, config, …). Shared protocol → [ ../bailian protocol/SKILL.md ](../bailian protocol/SKILL.md) (install the full family with bl skill init ). Soft hand offs by skill name (Read if installed; else bl … help / prompt bl skill init ): bailian gen (media) · bailian finetune (training) · bailian managed agent (agents.yaml IaC) · bailian sandbox (Sandbox lifecycle) · bailian web search (web search routing) · bailian knowledge (personal documents in everyday tasks and knowledge workflows). Tasks that need the user’s own historical documents belong to bailian knowledge ; ordinary writing does not itself select a cloud provider. Do not invoke it for ordinary reasoning, coding, writing, translation, summarization, generic research, or image understanding the host agent can complete directly. Install (supported): bl skill init Command reference (authoritative) Hub owned commands, flags, usage strings, and examples are documented in: [ reference/index.md ](reference/index.md) — hub quick index, global flags, links by group [ reference/<group .md ](reference/) — per hub top level command (e.g. [ reference/app.md ](reference/app.md)) Domain skills own their own generated reference trees (soft hand off — do not require them for hub work): bailian gen → image / video / speech / omni / vision (fallback: bl image\ video\ speech\ omni\ vision help ) bailian finetune → dataset / finetune / deploy (fallback: bl dataset\ finetune\ deploy help ) bailian managed agent → managed agent (fallback: bl managed agent help ) bailian sandbox → sandbox (fallback: bl sandbox help ) bailian web search → web search routing (hub still owns reference/search.md flags; must route via this skill before bl search web ) Auto generated from the CLI source at build time ( pnpm filter bailian cli run generate:reference ). Before running an unfamiliar command: 1. Open the owning skill's reference/index.md (if that skill is installed) → Quick index (or By group ) to locate the command. 2. Open the matching reference/<group .md for Usage , Flags , and Examples . 3. Run bl <command help for the same information in the terminal. Do not guess flags — use the reference files or help . When to use which command Use this table only after the decision table in [ bailian protocol ](../bailian protocol/SKILL.md provider selection and consent) has routed the request to bl (class 4, or class 2 after the user picks Bailian). Hub owned intents only — for media / fine tune / agents.yaml / Sandbox, soft hand off to the domain skill. User intent Command Notes Explicit Bailian model chat / text execution bl text chat Default qwen3.8 max 百炼异步文件批量推理 / CSV 转换 bl batch convert / create / list / get / cancel / download CSV → JSONL → 异步任务 → 原始结果,可额外导出 CSV;格式样例见 reference/batch.md 百炼单次同步 Batch Chat bl text chat batch 等待单次响应,不创建任务 ID;messages file 是同一请求的对话上下文,边界见 reference/text.md Typed decision model inference bl decision Workspace endpoint; returns choice / noul / score values and probabilities, not generated text Explicit ParseX parsing / structured field extraction bl parsex parse submit / result ; bl parsex extract submit / result Workspace + API key; submit returns biz id, result follow waits. HTTP(S) source URLs; extraction can reuse a parsed document. See reference/parsex.md . Bailian agent / workflow bl app call Needs app id Find app by name bl app list then bl app call Console auth Personal memory / Bailian memory resources → skill bailian memory User enabled personal memory; explicit resource operations use bl memory help as fallback. Personal documents / Bailian knowledge workflows Read skill bailian knowledge If missing: bl knowledge help or bl skill init Upload a file as a step of a Bailian workflow bl file upload When you need oss:// URL explicitly; not for generic hosting Bailian model selection / recommendation bl advisor recommend Intent → candidate recall → LLM ranking Bailian model catalog / pricing / params bl model list No auth (public catalog); model <family for detail, enrich for input params Find a model by keyword / modality bl model search Weighted ranking; input modality / output modality ; offline models hidden by default SDK sample code for calling a model bl model code sdk openai\ dashscope , lang ; text output is the snippet alone, safe to redirect Install / list / update / remove registry skills bl skill add / list / update / remove Bailian skill registry; see [ reference/skill.md ](reference/skill.md) Bailian MCP marketplace discovery / call bl mcp list / tools / call — Register or remove a Bailian MCP in an Agent bl mcp connect / disconnect Codex, Claude Code, Cursor, Qoder, Qoder Work, QwenWork, Qwen Code, Gemini, OpenCode, OpenClaw, DeepSeek Harness, ZCode, WorkBuddy Bailian pipeline workflow (a step in a bl flow) bl pipeline run / validate JSON/YAML workflow definitions Bailian rate limits / quota bl quota list / check / request Console auth; class 2 — ask which product first if unnamed Bailian free tier / usage stats bl usage free / stats / freetier Console auth; class 2 — ask which product first if unnamed Bailian Token Plan quota usage bl usage token plan Console auth; class 2 — ask which product first if unnamed Token Plan harness entitlement quota bl token plan harness quota Console auth; issued quota usage + still issuing harnesses Bailian Coding Plan quota usage bl usage coding plan Console auth; class 2 — ask which product first if unnamed Model monitoring (calls, latency, errors, delivery) bl monitor overview / models / metrics / errors / delivery Console auth; see [ reference/monitor.md ](reference/monitor.md) Model call logs / traces bl log audit / bl log inference / bl log status / bl log trace Console auth; audit and inference logs have separate APIs and switches; see [ reference/log.md ](reference/log.md) Model alert rules / te