Summary
The installation doc references a --non-interactive flag for bl text chat, but this flag does not exist in bl 1.10.1. Running the documented minimal verification command fails immediately with Unknown flag.
Source
Installation doc: https://bailian.aliyun.com/cli/install.md
Section "4. 最小功能验证" instructs users to run:
bl text chat --message "ping" --non-interactive --output json
Environment
- OS: macOS
- Shell: zsh 5.9
- Node: v26.5.0
- npm: 11.17.0
- CLI:
bl 1.10.1 (installed via npm install -g bailian-cli)
- Region: cn-beijing (auth configured via config file;
bl auth status returns authenticated: true)
Reproduction
- Install per doc:
npm install -g bailian-cli → bl 1.10.1
- Complete auth:
bl auth login (then bl auth status --output json shows authenticated: true)
- Run the documented verification command:
bl text chat --message "ping" --non-interactive --output json
Actual result
The command fails before making any request (exit code 2):
{
"error": {
"code": 2,
"message": "Unknown flag \"--non-interactive\". Run with --help to see available options."
}
}
bl text chat --help does not list a --non-interactive flag. Streaming is documented as "default: on in TTY", so non-TTY/CI usage works without this flag.
Workaround
Removing the flag works and returns a valid response:
bl text chat --message "ping" --output json
Expected resolution (either is fine)
- Option A (preferred): Add
--non-interactive support to bl text chat so the documented command works as written.
- Option B: Update the doc to drop
--non-interactive and use bl text chat --message "ping" --output json directly.
Additional note
Section "3. 鉴权" also references bl ... --non-interactive for CI/non-interactive environments. Worth verifying whether this flag is uniformly supported across subcommands, since the doc references it in multiple places but it does not currently exist on text chat.
Summary
The installation doc references a
--non-interactiveflag forbl text chat, but this flag does not exist inbl 1.10.1. Running the documented minimal verification command fails immediately withUnknown flag.Source
Installation doc: https://bailian.aliyun.com/cli/install.md
Section "4. 最小功能验证" instructs users to run:
bl text chat --message "ping" --non-interactive --output jsonEnvironment
bl 1.10.1(installed vianpm install -g bailian-cli)bl auth statusreturnsauthenticated: true)Reproduction
npm install -g bailian-cli→bl 1.10.1bl auth login(thenbl auth status --output jsonshowsauthenticated: true)bl text chat --message "ping" --non-interactive --output jsonActual result
The command fails before making any request (exit code 2):
{ "error": { "code": 2, "message": "Unknown flag \"--non-interactive\". Run with --help to see available options." } }bl text chat --helpdoes not list a--non-interactiveflag. Streaming is documented as "default: on in TTY", so non-TTY/CI usage works without this flag.Workaround
Removing the flag works and returns a valid response:
bl text chat --message "ping" --output json{ "content": "Pong!" }Expected resolution (either is fine)
--non-interactivesupport tobl text chatso the documented command works as written.--non-interactiveand usebl text chat --message "ping" --output jsondirectly.Additional note
Section "3. 鉴权" also references
bl ... --non-interactivefor CI/non-interactive environments. Worth verifying whether this flag is uniformly supported across subcommands, since the doc references it in multiple places but it does not currently exist ontext chat.