CLI Reference
Complete reference for everysvantic command, organized by category.
Quick Start
Install the Svantic CLI globally:Command Summary
Chat
Forge
Admin
Chat Commands
svantic (default)
Start an interactive chat session with AI agents on the Svantic mesh. This is the default action when no command is specified.
Interactive mode (default):
svantic chat
Explicit chat command. Identical to runningsvantic with no command.
Forge Commands
AI-powered tool and agent generation. Forge commands run locally and do not require mesh credentials.svantic forge tool
Generate tool specifications from OpenAPI specs, TypeScript source files, or natural language prompts.
From OpenAPI spec:
GOOGLE_API_KEY):
svantic forge agent
Scaffold a complete agent service from one or more tool specs.
Single spec:
Admin Commands
Platform administration commands. Require a valid JWT token (SVANTIC_TOKEN) or super-admin credentials.
svantic status
Show platform health and connectivity status.- Platform edge health status
- Mesh connection status
- Service version
- Uptime
svantic tenants list
List all tenants on the platform.- Tenant ID
- Name
- Status
- Created date
svantic tenants get
Get detailed information about a specific tenant.svantic agents list
List all registered agents.- Agent ID
- Agent Type
- Name
- Status
- Tenant ID
svantic sessions list
List recent sessions.- Session ID
- Tenant ID
- Agent Type
- Status
- Created date
- Message count
svantic config show
Display the current CLI configuration.- Svantic platform URL
- Token status (set/not set, masked)
- Config file location and status
Exit Codes
Environment Variables
Variables can be set in a
.env file in the working directory or in ~/.svantic/config.json.
Configuration File
The CLI reads configuration from~/.svantic/config.json:
Authentication
Chat commands
Chat commands (interactive and headless) require client credentials:Admin commands
Admin commands require a JWT token:~/.svantic/config.json.
Interactive Mode Features
When running in interactive mode, the terminal provides:Slash Commands
Tool Approvals
When an agent requests to execute a sensitive tool, you’ll be prompted to:- Approve — allow this single invocation
- Approve for session — allow all future calls in this session
- Approve permanently — allow across all sessions
- Deny — reject the invocation
File Attachments
Attach files using/attach <path> or type @ to open a file picker.
Headless Mode
Headless mode is designed for scripting and CI/CD pipelines.Output Streams
- stdout — response text only
- stderr — diagnostics (tool calls, thinking, errors)
