Skip to content

Latest commit

 

History

History
129 lines (90 loc) · 5.28 KB

File metadata and controls

129 lines (90 loc) · 5.28 KB

CLI reference

The agents command. This page documents every command and option defined in packages/cli/src/program.ts.

Global options

Option Description
-f, --file <path> Path to the config file. Defaults to agents.yaml.
-v, --verbose Increase logging verbosity. Repeat: -vv.
-q, --quiet Suppress non-error output.
--no-color Disable colored output.
-V, --version Print the CLI version.

Provider-backed commands such as plan, apply, models, session, and deployment accept --provider <name> to target a single provider. validate is an offline whole-file check and does not accept a provider filter. Run agents <command> --help for the definitive option list.

agents init

Create a new agents.yaml template via an interactive wizard (provider selection + agent name). Appends agents.state.json and .env to .gitignore.

agents playground

Launch the local web UI (fetches @openagentpack/playground on demand) and open it in a browser.

Option Description
--port <n> Port to serve on (default 4848).
--provider <name> Provider the UI targets (bailian, qoder, ark, or claude).
--no-open Do not open a browser automatically.

agents validate

Validate the whole configuration file offline — checks YAML shape and field validity without making API calls. This command does not accept --provider; use plan --provider <name> --refresh false when you want to inspect one provider's projected changes without contacting remote APIs.

agents plan

Show what changes would be applied. Refreshes remote state and detects drift by default.

Option Description
--provider <name> Target provider (all by default).
--refresh <bool> Refresh state from remote before planning (default true).
--refresh-only Refresh state and show drift without planning remote mutations.
--json Output as JSON.

agents apply

Apply the planned changes to create / update / delete resources.

Option Description
-y, --yes Skip confirmation prompt.
--provider <name> Target provider (all by default).
--refresh <bool> Refresh state from remote before planning (default true).
--refresh-only Refresh state without mutating remote resources.
--concurrency <n> Max independent resources to apply in parallel (default 6, max 10).

agents destroy

Destroy all managed resources.

Option Description
-y, --yes Skip confirmation prompt.
--cascade Auto-delete dependent resources (e.g. sessions referencing an environment).

agents sync

Export a provider's remote configuration into a local agents.yaml.

Option Description
--provider <name> Source provider to sync from.
-o, --out <path> Output file (default agents.synced.yaml).
--force Overwrite the output file if it exists.

agents migrate

Merge synced resources into the project agents.yaml (incremental, skips existing).

Option Description
--from <path> Source synced file (default agents.synced.yaml).
--to <path> Target file (default agents.yaml).

agents state

Inspect and manage the state file.

Subcommand Description
state list List all resources in state.
state show <address> Show details of a resource in state.
state rm <address> Remove a resource from state without destroying it remotely.
state import <address> <remote-id> Import an existing remote resource into state.

state import accepts --resource-version <number> for versioned resources (agents).

agents session

Manage runtime agent sessions.

Subcommand Description
session create [agent-name] Create a new session.
session list List sessions from the provider.
session get <session-id> Get details of a session.
session run <prompt-or-agent> [prompt] Create a session, send a message, and stream the response.
session send <session-id> <message> Send a message to an existing session and stream the response.
session events <session-id> List event history for a session.
session delete <session-id> Delete a session.

session create / session run accept --agent, --environment, --vault, --memory-stores, --title, and --provider. session run and session send accept --json (JSONL output) and --no-stream (polling instead of SSE). session list accepts --agent and --all; session events accepts --limit, --all, --json.

agents deployment

Manage scheduled / triggered deployments.

Subcommand Description
deployment list List deployments tracked in state.
deployment get <name> Show a deployment's status and resolved bindings.
deployment run <name> Trigger a deployment run (native on Qoder/Claude, emulated as a session on Bailian/Volcengine Ark).

agents models

Subcommand Description
models list List models available on the configured provider(s). Accepts --json.