Bailian CLI command reference for web search.
Invoke Bailian's web search capability from the terminal for real-time internet retrieval.
Search the web through a model with built-in web search by default, or switch to the DashScope MCP WebSearch service. Requires API Key authentication.
Usage
Example: Search the web for Alibaba Cloud Bailian latest features
Example: Get a pages list with MCP mode
Example: List the tools available in MCP mode
Command reference
bl search web
Search the web through a model with built-in web search by default, or switch to the DashScope MCP WebSearch service. Requires API Key authentication.
Usage
| Parameter | Type | Required | Description |
|---|---|---|---|
--query <text> | string | no | Search query text |
--count <n> | number | no | Number of search results (default: 10, MCP mode only) |
--list-tools | switch | no | List available MCP tools and exit (MCP mode only) |
--mode <mcp|model> | string | no | Search mode: model answers via Chat Completions with enable_search, mcp calls the WebSearch MCP service (default: model) |
--model <model> | string | no | Model ID for --mode model (default: qwen3.8-max) |
- Defaults to
--mode model: one non-streaming Chat Completions request withenable_search: true. The model answer is returned as a singlecontent[].textblock without a pages list.--mode mcpreturns a pages list. --countand--list-toolsare available in MCP mode only.- The model resolves from
--model,default_text_model, thenqwen3.8-max. - Token Plan subscription keys cannot authorize MCP mode; use the default model mode.