CLI Reference
Complete reference for all AgentVault CLI commands.
Global Options
agentvault [options] <command>
Options:
-V, --version Output version number
-h, --help Display help
--debug Enable debug mode
--config <path> Path to config file
--network <network> Network (local, ic)
--verbose Verbose output
Core Commands
init
Initialize a new AgentVault project.
agentvault init [options] <project-name>
Options:
-t, --template <name> Use a template (default, minimal)
--force Overwrite existing directory
Examples:
agentvault init my-agent
agentvault init my-agent --template minimal
package
Package agent directory to WASM.
agentvault package [options] <path>
Options:
-o, --output <dir> Output directory
--optimize Enable optimizations
--no-optimize Disable optimizations
Examples:
agentvault package ./
agentvault package ./my-agent --output ./dist
deploy
Deploy agent to ICP canister.
agentvault deploy [options]
Options:
-n, --network <network> Network (local, ic)
--canister-id <id> Upgrade existing canister
--cycles <amount> Cycles to allocate
--upgrade Upgrade mode
--no-verify Skip post-deployment verification
--timeout <ms> Deployment timeout
Examples:
agentvault deploy --network local
agentvault deploy --network ic --cycles 2000000000000
agentvault deploy --canister-id abcde-aaaab --upgrade
exec
Execute task on canister.
agentvault exec [options] <task>
Options:
-c, --canister-id <id> Canister ID (required)
--timeout <ms> Execution timeout
--async Execute asynchronously
Examples:
agentvault exec --canister-id abcde-aaaab "analyze data"
agentvault exec -c abcde-aaaab "process input" --async
show
Show agent state.
agentvault show [options]
Options:
-c, --canister-id <id> Canister ID (required)
--format <format> Output format (json, table)
--field <field> Show specific field
Examples:
agentvault show --canister-id abcde-aaaab
agentvault show -c abcde-aaaab --format json
fetch
Download agent state from canister.
agentvault fetch [options]
Options:
-c, --canister-id <id> Canister ID (required)
-o, --output <path> Output file path
--include-memory Include memory dump
Examples:
agentvault fetch --canister-id abcde-aaaab
agentvault fetch -c abcde-aaaab -o ./state.json
status
Display project status.
agentvault status [options]
Options:
-c, --canister-id <id> Specific canister ID
--json JSON output
Examples:
agentvault status
agentvault status --canister-id abcde-aaaab
list
List all agents.
agentvault list [options]
Options:
--format <format> Output format (table, json, ids)
--filter <pattern> Filter by name pattern
--network <network> Filter by network
Examples:
agentvault list
agentvault list --format json
agentvault list --filter "my-*"
Wallet Commands
wallet
Manage agent wallets.
agentvault wallet [command] [options]
Subcommands:
create Create new wallet
list List wallets
balance Check wallet balance
export Export wallet
import Import wallet
delete Delete wallet
sign Sign transaction
transfer Transfer tokens
Options:
--chain <chain> Chain type (icp, ethereum, solana, polkadot)
--wallet-id <id> Wallet ID
Examples:
agentvault wallet create --chain ethereum
agentvault wallet list
agentvault wallet balance --wallet-id wallet-123
agentvault wallet transfer --to <address> --amount 1.5
wallet create
Create a new wallet.
agentvault wallet create [options]
Options:
--chain <chain> Chain type (required)
--agent-id <id> Associate with agent
--name <name> Wallet name
Examples:
agentvault wallet create --chain ethereum
agentvault wallet create --chain solana --name "main-sol"
wallet import
Import existing wallet.
agentvault wallet import [options]
Options:
--chain <chain> Chain type
--mnemonic Import from mnemonic
--private-key Import from private key
--file <path> Import from file
Examples:
agentvault wallet import --chain ethereum --mnemonic
agentvault wallet import --chain solana --private-key
wallet export
Export wallet for backup.
agentvault wallet export [options] <wallet-id>
Options:
--format <format> Output format (json, mnemonic)
--show Show sensitive data
Examples:
agentvault wallet export wallet-123 --format json
agentvault wallet export wallet-123 --show --format mnemonic
identity
Manage ICP identities.
agentvault identity [command] [options]
Subcommands:
list List identities
create Create new identity
use Switch identity
export Export identity
import Import identity
whoami Show current identity
Examples:
agentvault identity list
agentvault identity create my-identity
agentvault identity use my-identity
agentvault identity whoami
cycles
Manage canister cycles.
agentvault cycles [command] [options]
Subcommands:
balance Check cycles balance
top-up Top-up canister cycles
transfer Transfer cycles
history View cycles history
Examples:
agentvault cycles balance <canister-id>
agentvault cycles top-up <canister-id> --amount 1000000000000
agentvault cycles history <canister-id>
tokens
Query token balances.
agentvault tokens [options]
Options:
--chain <chain> Chain type
--address <address> Wallet address
--token <token> Token symbol or canister ID
Examples:
agentvault tokens --chain ethereum
agentvault tokens --chain solana --address <address>
agentvault tokens --chain icp --token ckBTC
Monitoring Commands
monitor
Monitor canister health.
agentvault monitor [options]
Options:
-c, --canister-id <id> Canister ID
--interval <ms> Check interval (default: 5000)
--alert Enable alerts
--webhook <url> Alert webhook URL
Examples:
agentvault monitor --canister-id abcde-aaaab
agentvault monitor -c abcde-aaaab --interval 10000 --alert
health
Run health checks.
agentvault health [options]
Options:
-c, --canister-id <id> Canister ID
--detailed Detailed health report
--json JSON output
Examples:
agentvault health
agentvault health --canister-id abcde-aaaab --detailed
info
Get canister information.
agentvault info [options]
Options:
-c, --canister-id <id> Canister ID (required)
--json JSON output
Examples:
agentvault info --canister-id abcde-aaaab
agentvault info -c abcde-aaaab --json
stats
View canister statistics.
agentvault stats [options]
Options:
-c, --canister-id <id> Canister ID
--period <period> Time period (1h, 24h, 7d, 30d)
--format <format> Output format (table, json)
Examples:
agentvault stats --canister-id abcde-aaaab
agentvault stats -c abcde-aaaab --period 24h
logs
View canister logs.
agentvault logs [options]
Options:
-c, --canister-id <id> Canister ID (required)
-n, --lines <n> Number of lines (default: 100)
-f, --follow Follow log output
--level <level> Filter by level (debug, info, warn, error)
--since <time> Show logs since time
Examples:
agentvault logs --canister-id abcde-aaaab
agentvault logs -c abcde-aaaab -f
agentvault logs -c abcde-aaaab --level error --since 1h
Backup Commands
backup
Backup agent data.
agentvault backup [command] [options]
Subcommands:
create Create backup
list List backups
restore Restore from backup
delete Delete backup
export Export backup
schedule Schedule backups
Options:
-c, --canister-id <id> Canister ID
-o, --output <path> Output path
--no-canister-state Skip fetching canister state
Examples:
agentvault backup --canister-id abcde-aaaab
agentvault backup export my-agent -o ./backup.json
agentvault backup list --canister-id abcde-aaaab
rebuild
Rebuild agent from state.
agentvault rebuild [options]
Options:
-c, --canister-id <id> Canister ID (required)
--state-file <path> State file path
--verify Verify after rebuild
Examples:
agentvault rebuild --canister-id abcde-aaaab
agentvault rebuild -c abcde-aaaab --state-file ./state.json
Deployment Commands
promote
Promote canister between environments.
agentvault promote [options] <agent-name>
Options:
-f, --from <env> Source environment
-t, --to <env> Target environment
--target-canister <id> Target canister ID
--blue-green Enable blue-green deployment
-w, --wasm-path <path> Path to WASM file
--skip-deploy Skip actual deploy, only update history
Examples:
agentvault promote my-agent --from staging --to production
agentvault promote my-agent -f local -t staging --blue-green
agentvault promote my-agent -f staging -t prod -w ./dist/agent.wasm
rollback
Rollback canister deployment.
agentvault rollback [options]
Options:
-c, --canister-id <id> Canister ID (required)
--version <n> Version to rollback to
--list List available versions
--force Force rollback without confirmation
Examples:
agentvault rollback --canister-id abcde-aaaab --list
agentvault rollback -c abcde-aaaab --version 3
Advanced Commands
inference
Query AI inference services (Bittensor).
agentvault inference [options]
Options:
--prompt <text> Prompt text
--model <model> Model identifier
--network <network> Network endpoint
--timeout <ms> Request timeout
Examples:
agentvault inference --prompt "Hello, world"
agentvault inference --prompt "Analyze this" --model text-generation
archive
Archive to Arweave.
agentvault archive [command] [options]
Subcommands:
upload Upload to Arweave
download Download from Arweave
status Check archive status
list List archives
estimate Estimate cost
Examples:
agentvault archive upload ./backup.json
agentvault archive status <tx-id>
agentvault archive estimate --size 1048576
approve
Multi-signature approvals.
agentvault approve [command] [options]
Subcommands:
create Create approval request
list List pending approvals
sign Sign approval request
status Check approval status
Options:
--request-id <id> Request ID
--signer <id> Signer ID
Examples:
agentvault approve create --request "Deploy to production"
agentvault approve list
agentvault approve sign --request-id req-123
profile
Profile canister performance.
agentvault profile [options]
Options:
-c, --canister-id <id> Canister ID (required)
--duration <ms> Profile duration
--output <path> Output file
Examples:
agentvault profile --canister-id abcde-aaaab
agentvault profile -c abcde-aaaab --duration 60000
trace
View execution traces.
agentvault trace [options]
Options:
-c, --canister-id <id> Canister ID (required)
--limit <n> Number of traces
--format <format> Output format (table, json)
Examples:
agentvault trace --canister-id abcde-aaaab
agentvault trace -c abcde-aaaab --limit 50
Command Summary
| Category | Commands |
|---|---|
| Core | init, package, deploy, exec, show, fetch, status, list |
| Wallet | wallet, identity, cycles, tokens |
| Monitoring | monitor, health, info, stats, logs |
| Backup | backup, rebuild |
| Deployment | promote, rollback |
| Advanced | inference, archive, approve, profile, trace |
Getting Help
# General help
agentvault --help
# Command-specific help
agentvault <command> --help
# Examples
agentvault deploy --help
agentvault wallet --help