CLI Reference¶
Complete reference for all Amplifier command-line commands.
Global Options¶
| Option | Description |
|---|---|
--version | Show version and exit |
--help | Show help and exit |
--install-completion | Install shell completion for the specified shell (bash, zsh, or fish) |
Core Commands¶
run¶
Execute a prompt or start an interactive session.
| Option | Description |
|---|---|
--bundle, -B | Bundle to use for this session |
--provider, -p | LLM provider (anthropic, openai, etc.) |
--model, -m | Specific model to use |
--max-tokens | Maximum output tokens |
--mode | Execution mode: chat, single (default: single) |
--output-format | Output format: text, json, json-trace (default: text) |
--resume | Resume specific session with new prompt |
--verbose, -v | Verbose output |
Examples:
# Basic usage
amplifier run "Explain this code"
# With options
amplifier run --bundle dev --model claude-opus-4-6 "Complex task"
# JSON output for scripting
amplifier run --output-format json "What is 2+2?"
# Resume a session
amplifier run --resume abc123 "Continue from where we left off"
continue¶
Resume the most recent session.
| Option | Description |
|---|---|
--force-bundle, -B | Force a different bundle for this session (experimental) |
--no-history | Skip displaying conversation history |
--full-history | Show all messages (default: last 10) |
--replay | Replay conversation with timing simulation |
--replay-speed, -s | Replay speed multiplier (default: 2.0) |
--show-thinking | Show thinking blocks in history |
Examples:
# Continue with a new prompt
amplifier continue "Now add tests"
# Interactive continuation
amplifier continue
# With full history
amplifier continue --full-history "Continue from here"
resume¶
Interactively select and resume a session.
Examples:
Session Management¶
session list¶
List all sessions.
| Option | Description |
|---|---|
--limit, -n | Number of sessions to show (default: 10) |
--all | Show all sessions |
--project | Filter by project path |
session show¶
Show session details.
session resume¶
Resume a specific session.
session fork¶
Fork a session at a specific turn.
session delete¶
Delete a session.
session cleanup¶
Clean up old sessions.
| Option | Description |
|---|---|
--days | Delete sessions older than N days (default: 30) |
--dry-run | Show what would be deleted without deleting |
Bundle Management¶
bundle list¶
List available bundles.
bundle show¶
Show bundle details.
bundle use¶
Set active bundle.
bundle current¶
Show currently active bundle.
bundle add¶
Add a bundle from a source.
bundle remove¶
Remove a bundle.
bundle update¶
Update bundle sources.
bundle clear¶
Clear active bundle.
Provider Management¶
provider list¶
List configured providers.
provider add¶
Add a new provider.
provider remove¶
Remove a provider.
provider edit¶
Edit provider configuration.
provider test¶
Test provider connection.
provider models¶
List available models for a provider.
provider manage¶
Interactive provider management.
provider install¶
Install a provider from source.
Module Management¶
module list¶
List installed modules.
| Type | Description |
|---|---|
provider | LLM providers |
tool | Agent tools |
orchestrator | Execution loops |
context | Memory management |
hook | Lifecycle hooks |
module show¶
Show module details.
module add¶
Add a module from source.
module remove¶
Remove a module.
module current¶
Show currently active modules.
module update¶
Update modules.
module validate¶
Validate a module.
module override¶
Override module source.
Source Management¶
source list¶
List module source overrides.
source add¶
Add a source override.
source remove¶
Remove a source override.
source show¶
Show override details.
Routing Management¶
routing list¶
List available routing matrices.
routing use¶
Set active routing matrix.
routing show¶
Show routing matrix details.
routing manage¶
Interactive routing management.
routing create¶
Create a new routing matrix.
Agent Management¶
agents list¶
List available agents.
agents show¶
Show agent configuration.
agents dirs¶
Show agent search directories.
Directory Management¶
allowed-dirs list¶
List allowed write directories.
allowed-dirs add¶
Add allowed write directory.
allowed-dirs remove¶
Remove allowed write directory.
denied-dirs list¶
List denied write directories.
denied-dirs add¶
Add denied write directory.
denied-dirs remove¶
Remove denied write directory.
Tool Management¶
tool list¶
List available tools.
tool info¶
Show tool information.
tool invoke¶
Invoke a tool directly.
Notification Management¶
notify status¶
Show notification configuration.
notify desktop¶
Configure desktop notifications.
notify ntfy¶
Configure ntfy.sh notifications.
notify reset¶
Reset notification configuration.
System Commands¶
init¶
Run first-time initialization wizard.
update¶
Update Amplifier and modules.
| Option | Description |
|---|---|
--check-only | Check for updates without installing |
--modules | Update modules only |
version¶
Show version information.
reset¶
Reset Amplifier configuration.
| Option | Description |
|---|---|
--confirm | Skip confirmation prompt |
Environment Variables¶
| Variable | Description |
|---|---|
AMPLIFIER_HOME | Override home directory (default: ~/.amplifier) |
AMPLIFIER_BUNDLE | Default bundle to use |
AMPLIFIER_PROVIDER | Default provider |
AMPLIFIER_MODEL | Default model |
AMPLIFIER_AGENT_<NAME> | Override agent path for testing |
Shell Completion¶
Install shell completion for better CLI experience:
# Auto-detect shell and install
amplifier --install-completion
# Or specify shell
amplifier --install-completion bash
amplifier --install-completion zsh
amplifier --install-completion fish
Exit Codes¶
| Code | Meaning |
|---|---|
0 | Success |
1 | Error or failure |
2 | User cancellation |