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 |
--show-completion | Show shell completion script |
Core Commands¶
run¶
Execute a single prompt.
| Option | Description |
|---|---|
--profile, -p | Profile to use |
--provider | LLM provider (anthropic, openai, etc.) |
--model, -m | Specific model to use |
--max-tokens | Maximum response tokens |
--output-format, -o | Output format: text, json, json-trace |
--resume, -r | Resume session by ID |
--no-tools | Disable tool use |
Examples:
# Basic usage
amplifier run "Explain this code"
# With options
amplifier run --profile dev --model claude-opus-4-1 "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.
Examples:
# Resume with a new message
amplifier continue "Now add error handling"
# Just resume interactively
amplifier continue
Interactive Mode¶
Start without a command for interactive chat:
Interactive Commands¶
| Command | Description |
|---|---|
/help | Show available commands |
/tools | List available tools |
/agents | List available agents |
/status | Show session status |
/clear | Clear conversation history |
/think | Enable planning mode |
/quit, /exit | Exit interactive mode |
Using Agents¶
Using Mentions¶
Reference files or context:
amplifier> Review @src/main.py for issues
amplifier> @project:context/standards.md Apply these standards
Session Commands¶
session list¶
List recent sessions.
| Option | Description |
|---|---|
--limit, -n | Number of sessions to show (default: 10) |
--all | Show all sessions |
session show¶
Show session details.
session resume¶
Resume a specific session.
session delete¶
Delete a session.
session cleanup¶
Clean up old sessions.
| Option | Description |
|---|---|
--days, -d | Delete sessions older than N days (default: 30) |
Profile Commands¶
profile list¶
List available profiles.
profile use¶
Set the active profile.
profile show¶
Show profile configuration.
profile current¶
Show the current active profile.
profile default¶
Show or set the default profile.
profile reset¶
Reset profile to default.
Provider Commands¶
provider list¶
List available providers.
provider use¶
Set the active provider.
provider current¶
Show the current provider.
provider reset¶
Reset to default provider.
Module Commands¶
module list¶
List configured modules.
| Option | Description |
|---|---|
--type, -t | Filter by type (provider, tool, hook, etc.) |
module add¶
Add a module.
| Option | Description |
|---|---|
--source, -s | Module source (git URL or path) |
module remove¶
Remove a module.
module show¶
Show module details.
module check-updates¶
Check for module updates.
module refresh¶
Refresh module cache.
Collection Commands¶
collection list¶
List installed collections.
collection add¶
Add a collection.
| Option | Description |
|---|---|
--source, -s | Collection source (git URL) |
collection remove¶
Remove a collection.
collection show¶
Show collection details.
collection refresh¶
Refresh collection cache.
Source Commands¶
source list¶
List module source overrides.
source add¶
Add a source override (for local development).
source remove¶
Remove a source override.
source show¶
Show source override details.
Tool Commands¶
tool list¶
List available tools from the active profile.
tool info¶
Show tool details.
tool invoke¶
Directly invoke a tool (for testing).
Agent Commands¶
agents list¶
List available agents.
agents show¶
Show agent details.
Other Commands¶
init¶
Run first-time setup wizard.
update¶
Update Amplifier and modules.
| Option | Description |
|---|---|
--cli | Update CLI only |
--modules | Update modules only |
--collections | Update collections only |
Output Formats¶
The --output-format option supports:
text (default)¶
Human-readable markdown output rendered in the terminal.
json¶
Structured JSON for automation:
{
"status": "success",
"response": "The answer is...",
"session_id": "abc123",
"model": "claude-sonnet-4-5",
"timestamp": "2024-01-15T10:30:00Z"
}
json-trace¶
Complete execution trace including tool calls:
{
"status": "success",
"response": "...",
"trace": [
{"type": "tool_call", "tool": "bash", "input": {...}, "output": {...}},
{"type": "llm_response", "content": "..."}
]
}
Environment Variables¶
| Variable | Description |
|---|---|
ANTHROPIC_API_KEY | Anthropic API key |
OPENAI_API_KEY | OpenAI API key |
AZURE_OPENAI_API_KEY | Azure OpenAI API key |
AZURE_OPENAI_ENDPOINT | Azure OpenAI endpoint |
AMPLIFIER_PROFILE | Default profile |
AMPLIFIER_PROVIDER | Default provider |
AMPLIFIER_DEBUG | Enable debug logging |
Configuration Files¶
| File | Scope | Purpose |
|---|---|---|
~/.amplifier/settings.yaml | User | Global user settings |
.amplifier/settings.yaml | Project | Project settings (committed) |
.amplifier/settings.local.yaml | Local | Machine-local settings (gitignored) |