Skip to main content
Get Started

Quickstart

Onboard the Bailian CLI in 3 steps and send your Agent its first request.

After this guide, your AI Agent will be able to orchestrate Bailian's full-modal capabilities — producing images, video, and more from a single natural-language instruction.

Steps

1

Install the CLI

The easiest way is to let your AI Agent do it. Send the Agent the following, and it will read the install guide and set up the Bailian CLI for you:
Please read https://bailian.aliyun.com/cli/install.md and install the Alibaba Cloud Bailian CLI for me as instructed.
You can also install manually — see Installation & Authentication.
2

Configure authentication

Hand the following command to your Agent, and it will configure the credentials automatically:
Run bl auth login --console for me to log in via the console.
Afterwards, bl auth status --output json confirms the auth status. Other methods are in Installation & Authentication.
3

Send your first request

Once the first two steps are done, just send a request to your Agent to orchestrate CLI capabilities. Try this first example:
Generate a set of e-commerce hero images — 6 images — for a solid black summer men's T-shirt.
The Agent picks a suitable model (such as qwen-image-2.0) and calls the CLI to complete generation.

Integration pattern

The core pattern of the Bailian CLI is "let the Agent read the docs and set itself up": both installation and capability calls can be delegated to the Agent in natural language, and the Agent reads install.md or the Skill instructions and executes accordingly. Every bl command is designed as a structured tool call, making it easy for the Agent to compose complex pipelines.

Next steps