Skip to main content

Introduction

The Terramind CLI is a powerful command-line interface for interacting with AI models directly from your terminal. It provides an intuitive way to get AI assistance for coding tasks, generate code, debug issues, and more.

Basic Usage

Interactive Mode

Start an interactive session where you can have a conversation with the AI:
In interactive mode, you can:
  • Ask questions and get immediate responses
  • Have multi-turn conversations with context
  • Execute commands and see results
  • Switch between different AI models

Single Command Mode

Execute a single command and exit:
This is useful for:
  • Quick one-off tasks
  • Scripting and automation
  • CI/CD pipelines
  • Integration with other tools

Command Structure

All Terramind commands follow this structure:

Global Options

These options work with any command:
  • --model <model> - Specify which AI model to use
  • --help - Show help information
  • --version - Display version information
  • --debug - Enable debug mode for troubleshooting

Common Workflows

Code Generation

Code Explanation

Debugging

Refactoring

Working with Projects

Terramind understands your project context:
The CLI will automatically:
  • Read your project structure
  • Respect .gitignore files
  • Access file contents when needed
  • Make changes to files with your permission

Model Selection

Choose the right model for your task:
Different models have different strengths. Claude Sonnet excels at code generation, while GPT-5 is great for reasoning tasks.

Session Management

Terramind maintains conversation context across your session:
  • Each interactive session remembers the conversation history
  • Context is preserved until you exit
  • You can reference previous messages and responses
  • File changes are tracked within the session

Output Control

Control how Terramind displays output:

Next Steps

All Commands

Complete reference of all CLI commands

Configuration

Customize Terramind settings