Skip to main content

CLI Reference

Complete reference for every svantic command, organized by category.

Quick Start

Install the Svantic CLI globally:
Check the installed version:
Display help for any command:

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):
Headless mode (for scripting):
Session reuse:

svantic chat

Explicit chat command. Identical to running svantic with no command.
All options are the same as the default command above.

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:
From natural language (requires GOOGLE_API_KEY):

svantic forge agent

Scaffold a complete agent service from one or more tool specs.
Single spec:
Multiple specs (compose):
With options:

Admin Commands

Platform administration commands. Require a valid JWT token (SVANTIC_TOKEN) or super-admin credentials.

svantic status

Show platform health and connectivity status.
Displays:
  • Platform edge health status
  • Mesh connection status
  • Service version
  • Uptime

svantic tenants list

List all tenants on the platform.
Displays a table with:
  • Tenant ID
  • Name
  • Status
  • Created date

svantic tenants get

Get detailed information about a specific tenant.

svantic agents list

List all registered agents.
Displays a table with:
  • Agent ID
  • Agent Type
  • Name
  • Status
  • Tenant ID

svantic sessions list

List recent sessions.
Displays a table with:
  • Session ID
  • Tenant ID
  • Agent Type
  • Status
  • Created date
  • Message count

svantic config show

Display the current CLI configuration.
Shows:
  • 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:
Precedence: CLI flag > environment variable > config file > built-in default

Authentication

Chat commands

Chat commands (interactive and headless) require client credentials:
Or via flags:

Admin commands

Admin commands require a JWT token:
The token can also be stored in ~/.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)

CI/CD Example (GitHub Actions)


Examples

Interactive chat session

Generate and scaffold an agent

Check platform health