CLI Command Reference¶
Complete reference for Victor CLI commands.
Global Options¶
| Option | Short | Description |
|---|---|---|
--version |
-v |
Show version and exit |
--help |
Show help message |
Default Behavior¶
Running victor without a subcommand launches the interactive CLI chat mode.
Core Commands¶
victor chat¶
Start an interactive chat session with the AI assistant.
| Option | Short | Default | Description |
|---|---|---|---|
--profile |
-p |
default |
Profile name from profiles.yaml |
--provider |
From profile | Override provider (ollama, anthropic, openai, google, etc.) | |
--model |
-m |
From profile | Override model identifier |
--vertical |
coding |
Domain vertical (coding, research, devops, dataanalysis) | |
--mode |
build |
Agent mode (build, plan, explore) | |
--headless |
False |
Run without prompts, auto-approve safe actions | |
--dry-run |
False |
Preview changes without applying | |
--one-shot |
False |
Exit after completing single request | |
--log-events |
False |
Enable observability logging to JSONL | |
--thread-id |
Resume from checkpoint thread ID |
Examples:
# Interactive CLI mode with default profile
victor chat
# CLI mode with specific provider
victor chat --provider anthropic --model claude-sonnet-4-20250514
# One-shot mode for automation
victor chat --one-shot --headless "Fix the failing test in test_utils.py"
# Resume from checkpoint
victor chat --thread-id abc123
victor init¶
Initialize Victor configuration for a project.
| Option | Short | Default | Description |
|---|---|---|---|
--force |
-f |
False |
Overwrite existing configuration |
--provider |
-p |
ollama |
Default provider to configure |
--model |
-m |
Default model to configure | |
--analyze |
True |
Analyze codebase and generate context file | |
--minimal |
False |
Create minimal configuration without analysis |
What it creates:
~/.victor/profiles.yaml- Global profile configuration.victor/init.md- Project-specific context file
victor serve¶
Start Victor as an API server.
| Option | Short | Default | Description |
|---|---|---|---|
--host |
127.0.0.1 |
Host to bind to | |
--port |
8000 |
Port to listen on | |
--reload |
False |
Enable auto-reload for development | |
--workers |
1 |
Number of worker processes | |
--api-key |
Require API key for requests |
Provider & Model Management¶
victor providers¶
List available LLM providers.
Displays all supported providers with their status (configured/not configured).
victor models¶
List available models for a provider.
| Option | Short | Default | Description |
|---|---|---|---|
--provider |
-p |
ollama |
Provider to list models from |
--endpoint |
-e |
Custom endpoint URL |
Supported providers: ollama, lmstudio, llamacpp, vllm, anthropic, openai, google, cerebras, groqcloud
Examples:
victor models list -p ollama
victor models list -p lmstudio -e http://192.168.1.20:1234
victor models list -p anthropic
victor test-provider¶
Test provider connectivity and capabilities.
| Option | Short | Description |
|---|---|---|
--provider |
-p |
Provider to test |
--model |
-m |
Model to test |
--verbose |
-v |
Show detailed output |
Profile Management¶
victor profiles¶
Manage model profiles.
victor profile is kept as a backward-compatible alias. Prefer
victor profiles in new scripts, docs, and IDE integrations.
victor profiles list¶
List all configured profiles.
victor profiles create¶
Create a new profile.
| Option | Short | Required | Description |
|---|---|---|---|
--provider |
-p |
Yes | Provider name |
--model |
-m |
Yes | Model identifier |
--temperature |
-t |
No | Temperature (0.0-2.0), default 0.7 |
--max-tokens |
No | Maximum output tokens, default 4096 | |
--description |
-d |
No | Profile description |
victor profiles edit¶
Edit an existing profile.
victor profiles delete¶
Delete a profile.
victor profiles show¶
Show details of a specific profile.
victor profiles set-default¶
Set a profile as the default.
API Key Management¶
victor keys¶
Manage API keys for cloud providers and external services.
| Option | Short | Description |
|---|---|---|
--setup |
-s |
Create API keys template file |
--list |
-l |
List configured providers (default) |
--set PROVIDER |
Set API key for a provider | |
--set-service SERVICE |
Set API key for a service (finnhub, fred, etc.) | |
--keyring |
-k |
Store key in system keyring (secure) |
--migrate |
Migrate keys from file to keyring | |
--delete-keyring PROVIDER |
Delete provider key from keyring | |
--delete-service-keyring SERVICE |
Delete service key from keyring | |
--services |
List configured services |
Examples:
# List configured API keys
victor keys
# Set Anthropic API key in system keyring (recommended)
victor keys --set anthropic --keyring
# Create template file for manual editing
victor keys --setup
# Migrate all keys from file to secure keyring
victor keys --migrate
# List configured external services
victor keys --services
Codebase Tools¶
victor index¶
Manage codebase index for semantic search.
victor index build¶
Build or rebuild the codebase index.
| Option | Short | Description |
|---|---|---|
--path |
-p |
Directory to index (default: current) |
--force |
-f |
Force full rebuild |
--verbose |
-v |
Show detailed output |
victor index status¶
Show index status and statistics.
victor index clear¶
Clear the codebase index.
victor tools¶
List available tools and their capabilities.
| Option | Short | Description |
|---|---|---|
--category |
-c |
Filter by category |
--cost-tier |
Filter by cost tier (free, low, medium, high) | |
--verbose |
-v |
Show detailed descriptions |
Workflow Management¶
victor workflow¶
Manage and execute workflows.
victor workflow validate¶
Validate a workflow YAML file.
victor workflow list¶
List available workflows.
victor workflow run¶
Execute a workflow.
victor scheduler¶
Manage the workflow scheduler daemon.
victor scheduler start¶
Start the scheduler daemon.
| Option | Short | Description |
|---|---|---|
--daemonize |
-d |
Run as background daemon |
--pid-file |
PID file path |
victor scheduler stop¶
Stop the scheduler daemon.
victor scheduler status¶
Show scheduler status.
Vertical Management¶
victor vertical¶
Manage vertical packages (domain-specific extensions).
victor vertical list¶
List available verticals.
| Option | Short | Description |
|---|---|---|
--source |
-s |
Filter: all, installed, builtin, available |
--category |
-c |
Filter by category |
--tags |
-t |
Filter by tags (comma-separated) |
--verbose |
-v |
Show detailed information |
victor vertical install¶
Install a vertical package.
| Option | Short | Description |
|---|---|---|
--no-validate |
Skip validation checks | |
--dry-run |
-n |
Show what would be installed |
--verbose |
-v |
Show detailed output |
Examples:
victor vertical install victor-security
victor vertical install "git+https://github.com/user/victor-security.git"
victor vertical install ./path/to/package
victor vertical uninstall¶
Uninstall a vertical package.
victor vertical info¶
Show detailed information about a vertical.
victor vertical search¶
Search for vertical packages.
victor vertical create¶
Generate a new vertical structure from templates.
The default scaffold now starts with an contract-first definition layer in
assistant.py. service_provider.py remains optional for runtime-only
integration code.
| Option | Short | Description |
|---|---|---|
--description |
-d |
Description of the vertical's purpose |
--service-provider |
-s |
Include service_provider.py for DI registration |
--force |
-f |
Overwrite existing files |
--dry-run |
-n |
Show what would be created |
Session Management¶
victor sessions¶
Manage conversation sessions.
victor sessions list¶
List saved sessions.
victor sessions show¶
Show session details and conversation history.
victor sessions delete¶
Delete a session.
victor sessions export¶
Export session to file.
Benchmarking¶
victor benchmark¶
Run benchmarks against standard datasets.
| Option | Short | Description |
|---|---|---|
--max-tasks |
Maximum tasks to run | |
--profile |
Profile to use | |
--output |
-o |
Output directory for results |
Available benchmarks: swe-bench, humaneval
Examples:
victor benchmark run swe-bench --max-tasks 10 --profile deepseek
victor benchmark run humaneval --max-tasks 5 --profile default
RAG (Retrieval-Augmented Generation)¶
victor rag¶
RAG operations for document ingestion and search.
| Option | Short | Description |
|---|---|---|
--log-level |
Set logging level (DEBUG, INFO, WARN, ERROR) |
victor rag ingest¶
Ingest documents into the RAG system.
victor rag search¶
Search ingested documents.
victor rag status¶
Show RAG system status.
MCP (Model Context Protocol)¶
victor mcp¶
Manage MCP server connections.
| Option | Short | Description |
|---|---|---|
--log-level |
Set logging level |
victor mcp list¶
List configured MCP servers.
victor mcp add¶
Add an MCP server configuration.
victor mcp remove¶
Remove an MCP server configuration.
victor mcp test¶
Test MCP server connectivity.
Utility Commands¶
victor config¶
View and manage configuration.
victor config show¶
Show current configuration.
victor config path¶
Show configuration file paths.
victor docs¶
Open documentation.
victor examples¶
Show usage examples.
victor capabilities¶
Show system capabilities and installed features.
victor embeddings¶
Manage embedding models and caches.
victor embeddings status¶
Show embedding system status.
victor embeddings clear¶
Clear embedding cache.
victor security¶
Security scanning and auditing.
victor security scan¶
Run security scan on codebase.
victor security audit¶
Generate security audit report.
victor dashboard¶
Launch the observability dashboard.
| Option | Short | Description |
|---|---|---|
--port |
-p |
Dashboard port (default: 8501) |
--host |
Dashboard host |
Exit Codes¶
| Code | Meaning |
|---|---|
| 0 | Success |
| 1 | General error |
| 2 | Invalid arguments |
| 130 | Interrupted (Ctrl+C) |
Environment Variable Overrides¶
CLI options can be overridden via environment variables. See Environment Variables Reference for the complete list.
Common overrides:
| Variable | CLI Equivalent |
|---|---|
VICTOR_PROFILE |
--profile |
VICTOR_PROVIDER |
--provider |
VICTOR_MODEL |
--model |
VICTOR_HEADLESS_MODE |
--headless |
VICTOR_DRY_RUN_MODE |
--dry-run |