Invoke agent apps and workflows published on Bailian from the terminal: list apps and send prompts directly.
App-call capabilities are currently available only to China site (aliyun.com) accounts.
Append --help to any command for full parameter details, e.g. bl app call --help. Command details on this page are verified against bl 2.5.1.
See Calling Agent Applications for feature-page usage.
Command reference
bl app call
Call a Bailian application (agent or workflow). Requires API Key authentication.
Usage
bl app call --app-id <id> --prompt <text> [flags]
| Parameter | Type | Required | Description |
|---|
--app-id <id> | string | yes | Application ID |
--prompt <text> | string | yes | Input prompt text |
--image <url> | array | no | Image URL(s) to pass to the app (repeatable) |
--file-id <id> | array | no | Pre-uploaded file ID(s) (repeatable) |
--session-id <id> | string | no | Session ID for multi-turn conversation |
--stream | switch | no | Stream response (default: on in TTY) |
--pipeline-ids <ids> | string | no | Knowledge base pipeline IDs (comma-separated) |
--memory-id <id> | string | no | Memory ID for long-term memory |
--biz-params <json> | string | no | Business parameters JSON (workflow variables) |
--has-thoughts | switch | no | Show agent thinking process |
Example: Call Bailian application with specified prompt
bl app call --app-id abc123 --prompt "Hello"
bl app list
List Bailian applications.
Usage
| Parameter | Type | Required | Description |
|---|
--name <name> | string | no | Filter by app name (keyword search) |
--page <n> | number | no | Page number (default: 1) |
--page-size <n> | number | no | Results per page (default: 30) |
Example: List applications filtered by name keyword
bl app list --name customer service