CLI flags
Command | Description |
---|---|
auggie | Start Auggie in interactive mode |
auggie --print | Output simple text for one instruction and exit |
auggie --quiet | Output only the final response for one instruction and exit |
auggie --compact | Output tool calls, results, and final response as one line each and exit |
Input
Command | Description |
---|---|
auggie "Fix the typescript errors" | Provide an initial instruction in interactive mode |
auggie --print "Summarize the staged changes" | Provide an instruction and exit |
cat file | auggie --print "Summarize this data" | Pipe content through stdin |
auggie --print "Summarize this data" < file.txt | Provide input from a file |
auggie --instruction "Fix the errors" | Provide an initial instruction in interactive mode |
auggie --instruction-file /path/to/file.txt | Provide an instruction by file in interactive mode |
Custom Commands
Command | Description |
---|---|
auggie command <command-name> | Execute a custom command from .augment/commands/ or ~/.augment/commands/ |
~/.augment/commands/<name>.md
- Global commands (user-wide)./.augment/commands/<name>.md
- Project commands (workspace-specific)~/.claude/commands/<name>.md
- Claude Code user commands./.claude/commands/<name>.md
- Claude Code workspace commands
Sessions
Command | Description |
---|---|
auggie --continue (-c) | Resumes the previous conversation |
auggie --dont-save-session | Do not save the conversation to the local history |
auggie --delete-saved-sessions | Delete all saved sessions from disk |
Configuration
Command | Description |
---|---|
auggie --workspace-root /path/to/project | Specify the root of the workspace |
auggie --rules /path/to/rules.md | Additional rules to append to workspace guidelines |
auggie --model "name" | Select the model to use (accepts long or short names from the model list) |
Models
List out available models and their short names to be passed into the--model
flag
Command | Description |
---|---|
auggie --list-models | List available models |
auggie -lm | Shorthand for --list-models |
Tool permissions can be configured in settings.json files. See Permissions for detailed configuration.
MCP and integrations
Command | Description |
---|---|
auggie mcp add [options] <name> | Create or update a named MCP server configuration |
auggie mcp list | Display all configured MCP servers |
auggie mcp remove <name> | Remove a named MCP server configuration |
Command | Description |
---|---|
auggie --mcp-config {key: value} | MCP configuration as a JSON string |
auggie --mcp-config /path/to/mcp.json | MCP configuration from a JSON file |
You can define MCP servers persistently in the settings files:
~/.augment/settings.json
. Any --mcp-config
flags are applied last and override settings.Authentication
Command | Description |
---|---|
auggie --login | Login to Augment and store the token locally |
auggie --logout | Remove the locally stored token |
auggie --print-augment-token | Print the locally stored token |
Additional commands
Command | Description |
---|---|
auggie --help | Show help |
auggie --version | Show version |
Environment Variables
Variable | Description |
---|---|
AUGMENT_SESSION_AUTH | Authentication JSON. |
AUGMENT_API_URL | Backend API endpoint |
AUGMENT_API_TOKEN | Authentication token |
GITHUB_API_TOKEN | GitHub API token |
AUGMENT_DISABLE_AUTO_UPDATE | Disable automatic CLI updates |
Custom Rules Files
Auggie automatically loads custom rules and guidelines from several file locations to provide context-aware assistance. These files help Auggie understand your project’s conventions, coding standards, and preferences.Supported Rules Files
Auggie looks for rules files in the following order of precedence:- Custom rules file (via
--rules
flag):/path/to/custom-rules.md
- CLAUDE.md: Compatible with Claude Code and other AI tools
- AGENTS.md: Compatible with Cursor and other AI development tools
- Workspace guidelines:
.augment/guidelines.md
(legacy format)
File Locations
Workspace Root Files:CLAUDE.md
- Root-level rules file compatible with Claude CodeAGENTS.md
- Root-level rules file compatible with Cursor and other tools
.augment/guidelines.md
- Legacy workspace guidelines file.augment/rules/
- Directory containing multiple rule files (IDE feature)
Rules File Format
Rules files should be written in Markdown format with natural language instructions. Here’s the recommended structure:Example Rules Files
Basic Project Rules (CLAUDE.md):Best Practices for Rules Files
- Be Specific: Provide clear, actionable guidelines rather than vague suggestions
- Use Examples: Include code examples when describing patterns or conventions
- Keep Updated: Regularly review and update rules as your project evolves
- Be Concise: Focus on the most important guidelines to avoid overwhelming the AI
- Test Guidelines: Verify that Auggie follows your rules by testing with sample requests
Compatibility with Other Tools
The CLAUDE.md and AGENTS.md formats are designed to be compatible with other AI development tools:- Claude Code: Uses CLAUDE.md for project-specific instructions
- Cursor: Supports AGENTS.md for AI assistant configuration
- Other AI Tools: Many tools are adopting these standard file formats