CLI Commands
al new <name>
Creates a new Action Llama project. Runs interactive setup to configure credentials and LLM defaults.
my-project/package.json— with@action-llama/action-llamadependencymy-project/.gitignoremy-project/.workspace/— runtime state directory- Credential files in
~/.action-llama/credentials/
al doctor
Checks all agent credentials and interactively prompts for any that are missing. Discovers agents in the project, collects their credential requirements (plus any webhook secret credentials), and ensures each one exists on disk. Also generates a gateway API key if one doesn’t exist yet (used for dashboard and CLI authentication).
Additionally validates webhook trigger field configurations to catch common errors like:
- Using
repositoryinstead ofrepos - Misspelled field names
- Invalid field types
| Option | Description |
|---|---|
-p, --project <dir> | Project directory (default: .) |
al creds ls
Lists all stored credentials grouped by type, showing field names but not values.
:default suffix.
al creds add <ref>
Add or update a credential. Runs the interactive prompter with validation for the credential type.
<ref> format is type or type:instance. If no instance is specified, defaults to default. If the credential already exists, you’ll be prompted to update it.
al creds rm <ref>
Remove a credential from disk.
al run <agent>
Manually triggers a single agent run. The agent runs once and the process exits when it completes. Useful for testing, debugging, or one-off runs without starting the full scheduler.
| Option | Description |
|---|---|
-p, --project <dir> | Project directory (default: .) |
-c, --cloud | Run on cloud infrastructure |
al start
Starts the scheduler. Runs all agents on their configured schedules and listens for webhooks.
| Option | Description |
|---|---|
-p, --project <dir> | Project directory (default: .) |
-w, --web-ui | Enable web dashboard (see Web Dashboard) |
-e, --expose | Bind gateway to 0.0.0.0 (public) while keeping local-mode features |
-H, --headless | Non-interactive mode (no TUI, no credential prompts) |
al stat
Shows status of all discovered agents in the project.
| Option | Description |
|---|---|
-p, --project <dir> | Project directory (default: .) |
-c, --cloud | Show cloud infrastructure status |
al logs <agent>
View log files for a specific agent.
| Option | Description |
|---|---|
-p, --project <dir> | Project directory (default: .) |
-n, --lines <N> | Number of log entries (default: 50) |
-f, --follow | Tail mode — watch for new entries |
-d, --date <YYYY-MM-DD> | View a specific date’s log file |
-c, --cloud | View cloud logs (Cloud Logging / CloudWatch) |
al pause [name]
Pause the scheduler or a single agent. Without a name, pauses the entire scheduler — all cron jobs stop firing. With a name, pauses that agent — its cron job stops firing and webhook events are ignored. In-flight runs continue until they finish. Requires the gateway.
| Option | Description |
|---|---|
-p, --project <dir> | Project directory (default: .) |
-c, --cloud | Forward pause request to the cloud-deployed scheduler’s gateway |
al resume [name]
Resume the scheduler or a single agent. Without a name, resumes the entire scheduler. With a name, resumes that agent — its cron job resumes firing and webhooks are accepted again.
| Option | Description |
|---|---|
-p, --project <dir> | Project directory (default: .) |
-c, --cloud | Forward resume request to the cloud-deployed scheduler’s gateway |
al kill <target>
Kill an agent (all running instances) or a single instance by ID. Tries the target as an agent name first; if not found, falls back to instance ID. This does not pause the agent — if it has a schedule, a new run will start at the next cron tick. To fully stop an agent, pause it first, then kill.
| Option | Description |
|---|---|
-p, --project <dir> | Project directory (default: .) |
-c, --cloud | Kill cloud tasks directly via ECS StopTask / Cloud Run cancel APIs |
al chat
Open an interactive console. Without an agent name, opens the project-level console for creating and managing agents. With an agent name, opens an interactive session scoped to that agent’s environment — credentials are loaded and injected as environment variables (e.g. GITHUB_TOKEN, GIT_SSH_COMMAND), and the working directory is set to the agent’s directory.
| Option | Description |
|---|---|
[agent] | Agent name — loads its credentials and environment |
-p, --project <dir> | Project directory (default: .) |
-c, --cloud | Load credentials from cloud secrets manager |