Skip to main content

Core Commands

terramind

Start an interactive AI coding session.
Options:
  • --model <model> - Specify AI model to use
  • --cwd <directory> - Set working directory
Example:

terramind run

Execute a single AI command.
Arguments:
  • <prompt> - The prompt or question for the AI
Options:
  • --model <model> - Specify AI model
  • --format <format> - Output format (text, json)
Examples:

terramind auth

Configure authentication credentials.
Options:
  • --token <token> - Firebase authentication token
  • --api-key <key> - Terramind API key
Example:
Get your API key from terramind.com.

terramind models

List all available AI models.
Options:
  • --json - Output in JSON format
  • --filter <category> - Filter by model category
Example:
Output:

Agent Client Protocol

terramind acp

Start an ACP (Agent Client Protocol) server for editor integration.
Options:
  • --cwd <directory> - Set working directory
  • --port <port> - Specify port (default: stdio)
Example:
See the ACP Integration guide for editor setup.

Development Commands

terramind serve

Start the Terramind server for programmatic access.
Options:
  • --port <port> - Port number (default: 3000)
  • --host <host> - Host address (default: localhost)
Example:

terramind web

Launch the web interface.
Options:
  • --port <port> - Port for web server (default: 3000)
  • --open - Automatically open in browser
Example:

Utility Commands

terramind upgrade

Upgrade Terramind to the latest version.
Options:
  • --check - Only check for updates
  • --force - Force upgrade even if already up to date
Example:

terramind stats

Display usage statistics and costs.
Options:
  • --period <period> - Time period (day, week, month)
  • --format <format> - Output format (text, json)
Example:

terramind export

Export conversation history.
Options:
  • --output <file> - Output file path
  • --format <format> - Export format (json, markdown)
Example:

terramind import

Import conversation history.
Arguments:
  • <file> - File to import
Example:

GitHub Integration

terramind github

Interact with GitHub repositories.
Actions:
  • pr - Create or review pull requests
  • issue - Manage issues
Example:

MCP Integration

terramind mcp

Manage Model Context Protocol servers.
Actions:
  • list - List configured MCP servers
  • add - Add a new MCP server
  • remove - Remove an MCP server
Example:

Debug Commands

terramind debug

Access debugging utilities.
Commands:
  • logs - View application logs
  • config - Display current configuration
  • clear-cache - Clear application cache
Example:

Global Options

These options work with any command:
  • --help, -h - Show help information
  • --version, -v - Display version
  • --debug - Enable debug mode
  • --no-color - Disable colored output
  • --config <file> - Use custom config file
Example:

Environment Variables

Configure Terramind behavior with environment variables:
  • TERRAMIND_API_KEY - API key for authentication
  • TERRAMIND_MODEL - Default model to use
  • TERRAMIND_CONFIG_PATH - Custom config file location
  • TERRAMIND_LOG_LEVEL - Logging level (error, warn, info, debug)
Example:

Next Steps

Configuration

Learn how to customize Terramind

AI SDK Provider

Use Terramind in your applications