Core Commands
terramind
Start an interactive AI coding session.--model <model>- Specify AI model to use--cwd <directory>- Set working directory
terramind run
Execute a single AI command.<prompt>- The prompt or question for the AI
--model <model>- Specify AI model--format <format>- Output format (text, json)
terramind auth
Configure authentication credentials.--token <token>- Firebase authentication token--api-key <key>- Terramind API key
terramind models
List all available AI models.--json- Output in JSON format--filter <category>- Filter by model category
Agent Client Protocol
terramind acp
Start an ACP (Agent Client Protocol) server for editor integration.--cwd <directory>- Set working directory--port <port>- Specify port (default: stdio)
Development Commands
terramind serve
Start the Terramind server for programmatic access.--port <port>- Port number (default: 3000)--host <host>- Host address (default: localhost)
terramind web
Launch the web interface.--port <port>- Port for web server (default: 3000)--open- Automatically open in browser
Utility Commands
terramind upgrade
Upgrade Terramind to the latest version.--check- Only check for updates--force- Force upgrade even if already up to date
terramind stats
Display usage statistics and costs.--period <period>- Time period (day, week, month)--format <format>- Output format (text, json)
terramind export
Export conversation history.--output <file>- Output file path--format <format>- Export format (json, markdown)
terramind import
Import conversation history.<file>- File to import
GitHub Integration
terramind github
Interact with GitHub repositories.pr- Create or review pull requestsissue- Manage issues
MCP Integration
terramind mcp
Manage Model Context Protocol servers.list- List configured MCP serversadd- Add a new MCP serverremove- Remove an MCP server
Debug Commands
terramind debug
Access debugging utilities.logs- View application logsconfig- Display current configurationclear-cache- Clear application cache
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
Environment Variables
Configure Terramind behavior with environment variables:TERRAMIND_API_KEY- API key for authenticationTERRAMIND_MODEL- Default model to useTERRAMIND_CONFIG_PATH- Custom config file locationTERRAMIND_LOG_LEVEL- Logging level (error, warn, info, debug)
