Quick Start with Gemini CLI
1. Install Auggie CLI (Pre-release version)
2. Sign in to Augment
3. Configure the MCP server in Gemini CLI
Gemini CLI reads the MCP server configuration from a settings file. You can configure MCP servers at either the user level (applies to all projects) or project level (applies only to that specific project): Configuration file locations:- User settings (global):
- macOS/Linux:
~/.gemini/settings.json - Windows:
%USERPROFILE%\.gemini\settings.json
- macOS/Linux:
- Project settings (optional):
.gemini/settings.jsonin your project’s root directory
4. Test the integration
Prompt the Gemini CLI with:codebase-retrieval tool.
Configuration
Workspace Root
Specify the workspace to index by adding the-w argument. Update the /path/to/project.
Advanced: Non-Interactive Setup
For non-interactive environments like CI/CD pipelines, GitHub Actions, or automated scripts where you cannot runauggie login interactively, you can configure authentication using environment variables.
1. Get your authentication token
accessToken value (the long string after "accessToken":") and the tenantURL value.
2. Configure with environment variables
Add theenv section to your configuration:
your-access-token and your-tenant-url with the values from step 1.
For a specific workspace: