CLI command reference
One-page overview of every top-level lehuo Agents CLI command. For full usage, run `lehuo <command> --help`.
The lehuo Agents CLI mirrors almost everything the Web UI can do (create issues, assign agents, start the daemon, and more). This page lists every top-level command with a one-line description. For the full set of flags and examples, run lehuo <command> --help.
Getting authenticated
Run this the first time you use the CLI to obtain a personal access token (PAT):
lehuo loginYour browser opens automatically. After you approve in the web app, the CLI saves the PAT (prefixed with mul_) to ~/.lehuo/config.json. Every subsequent command authenticates with that PAT.
For CI or headless environments, skip the browser flow: create a PAT in the web app under Settings → Personal Access Tokens, then run lehuo login --token <mul_...> to supply it directly.
For the difference between token types, see Authentication and tokens.
Auth and setup
| Command | Purpose |
|---|---|
lehuo login | Log in and save a PAT |
lehuo auth status | Show current login status, user, and workspace |
lehuo auth logout | Clear the local PAT |
lehuo setup cloud | One-shot setup for lehuo Agents Cloud (login + install daemon) |
lehuo setup self-host | One-shot setup for a self-hosted backend |
Workspaces and members
| Command | Purpose |
|---|---|
lehuo workspace list | List every workspace you can access |
lehuo workspace get <slug> | Show details for one workspace |
lehuo workspace member list | List members of the current workspace |
lehuo workspace update <id> --name "..." [--description "..."] [--context "..."] [--issue-prefix "..."] | Update workspace metadata (admin/owner). Long fields accept --description-stdin / --context-stdin. |
Issues and projects
list commands (lehuo issue list, autopilot list, project list, etc.) print short, copy-paste-ready IDs by default — issue keys like MUL-123 for issues, short UUID prefixes for the rest. The <id> argument on the follow-up commands below accepts either the short ID or the full UUID, so the typical flow is lehuo issue list → copy the key → lehuo issue get MUL-123. Pass --full-id to a list command when you need the canonical UUID.
| Command | Purpose |
|---|---|
lehuo issue list | List issues (prints copy-paste-ready issue keys) |
lehuo issue get <id> | Show a single issue (accepts an issue key or a UUID) |
lehuo issue create --title "..." | Create a new issue |
lehuo issue update <id> ... | Update an issue (status, priority, assignee, etc.) |
lehuo issue assign <id> --agent <slug> | Assign to an agent (triggers a task immediately) |
lehuo issue status <id> --set <status> | Shortcut to change status |
lehuo issue search <query> | Keyword search |
lehuo issue runs <id> | Show agent runs on an issue |
lehuo issue rerun <id> | Re-enqueue a fresh task for the issue's current agent assignee |
lehuo issue comment <id> ... | Nested: view / post comments |
lehuo issue subscriber <id> ... | Nested: subscribe / unsubscribe |
lehuo project list/get/create/update/delete/status | Project CRUD |
Agents and skills
| Command | Purpose |
|---|---|
lehuo agent list | List the workspace's agents |
lehuo agent get <slug> | Show an agent's configuration |
lehuo agent create ... | Create an agent |
lehuo agent update <slug> ... | Update an agent |
lehuo agent archive <slug> | Archive |
lehuo agent restore <slug> | Restore an archived agent |
lehuo agent tasks <slug> | Show an agent's task history |
lehuo agent skills ... | Nested: attach / detach skills |
lehuo skill list/get/create/update/delete | Skill CRUD |
lehuo skill import ... | Import a skill from GitHub, ClawHub, or the local machine |
lehuo skill files ... | Nested: manage a skill's files |
Squads
| Command | Purpose |
|---|---|
lehuo squad list | List squads in the workspace |
lehuo squad get <id> | Show a single squad |
lehuo squad create --name "..." --leader <agent> | Create a squad (owner / admin) |
lehuo squad update <id> ... | Update name, description, instructions, leader, or avatar |
lehuo squad delete <id> | Archive (soft-delete) — transfers assigned issues to the leader |
lehuo squad member list/add/remove <squad-id> | Manage squad members |
lehuo squad activity <issue-id> <action|no_action|failed> --reason "..." | Used by squad leader agents to record an evaluation per turn |
See Squads for the full model.
Autopilots
| Command | Purpose |
|---|---|
lehuo autopilot list | List every autopilot in the workspace |
lehuo autopilot get <id> | Show a single autopilot |
lehuo autopilot create ... | Create an autopilot |
lehuo autopilot update <id> ... | Update |
lehuo autopilot delete <id> | Delete |
lehuo autopilot runs <id> | Show run history |
lehuo autopilot trigger <id> | Trigger a run manually |
Daemon and runtimes
| Command | Purpose |
|---|---|
lehuo daemon start | Start the daemon (background by default; add --foreground to run in the foreground) |
lehuo daemon stop | Stop the daemon |
lehuo daemon restart | Restart the daemon |
lehuo daemon status | Check whether the daemon is online and its concurrency |
lehuo daemon logs | View daemon logs |
lehuo runtime list | List runtimes in the current workspace |
lehuo runtime usage | Show resource usage |
lehuo runtime activity | Recent activity log |
lehuo runtime update <id> ... | Update a runtime's configuration |
Miscellaneous
| Command | Purpose |
|---|---|
lehuo repo checkout <url> | Clone a repo locally for agents to use |
lehuo config | View or edit local CLI configuration |
lehuo version | Print the CLI version |
lehuo update | Upgrade the CLI to the latest release |
lehuo attachment download <id> | Download an attachment from an issue or comment |
Getting full flags
Every command supports --help:
lehuo issue create --help
lehuo agent update --helpv2 will ship a dedicated detailed reference page for each command.
Next steps
- Authentication and tokens — PAT vs. JWT vs. daemon token
- Daemon and runtimes — how the
daemoncommands work under the hood - Creating and configuring agents — all options for
lehuo agent create