Skip to content

Documented --non-interactive flag does not exist on bl text chat (v1.10.1) #120

Description

@pedh

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

  1. Install per doc: npm install -g bailian-clibl 1.10.1
  2. Complete auth: bl auth login (then bl auth status --output json shows authenticated: true)
  3. 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
{
  "content": "Pong!"
}

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions