Configuration Templates

Ready-to-use configuration templates for common scenarios. Get started quickly with pre-configured settings optimized for specific use cases.

Template Categories

👨‍💻

Development

  • • Personal coding projects
  • • Code review and analysis
  • • Learning and experimentation
🏢

Enterprise

  • • Team collaboration
  • • Security and compliance
  • • Production environments
🎓

Education

  • • Learning programming
  • • Teaching assistance
  • • Academic projects

Performance

  • • High-throughput scenarios
  • • Batch processing
  • • Resource optimization
🔒

Security

  • • Security auditing
  • • Compliance requirements
  • • Restricted environments
🚀

CI/CD

  • • Automated workflows
  • • Pipeline integration
  • • Deployment automation

Development Templates

Basic Developer Config

Beginner

Perfect for individual developers getting started with Gemini CLI

{ "apiKey": "${GOOGLE_AI_API_KEY}", "model": "gemini-pro", "temperature": 0.7, "maxTokens": 2048, "output": { "format": "markdown", "highlighting": true, "pager": "auto" }, "aliases": { "explain": "Explain this code: ", "review": "Review this code for issues: ", "optimize": "Optimize this code: ", "test": "Generate unit tests for: ", "docs": "Generate documentation for: " } }

Full-Stack Developer Config

Intermediate

Comprehensive setup for full-stack development with MCP servers

{ "apiKey": "${GOOGLE_AI_API_KEY}", "model": "gemini-pro", "temperature": 0.6, "maxTokens": 4096, "mcpServers": { "filesystem": { "command": "npx", "args": ["@modelcontextprotocol/server-filesystem", "./src"] }, "git": { "command": "npx", "args": ["@modelcontextprotocol/server-git", "."] }, "sqlite": { "command": "npx", "args": ["@modelcontextprotocol/server-sqlite", "./database.db"] } }, "aliases": { "frontend": "Help with this frontend code: ", "backend": "Review this backend logic: ", "api": "Design an API for: ", "db": "Write SQL query for: ", "deploy": "Help with deployment: " }, "safety": { "blockThreshold": "BLOCK_MEDIUM_AND_ABOVE" } }

Data Science Config

Intermediate

Optimized for data analysis, machine learning, and research

{ "apiKey": "${GOOGLE_AI_API_KEY}", "model": "gemini-pro", "temperature": 0.3, "maxTokens": 8192, "mcpServers": { "filesystem": { "command": "npx", "args": ["@modelcontextprotocol/server-filesystem", "./data", "./notebooks"] }, "sqlite": { "command": "npx", "args": ["@modelcontextprotocol/server-sqlite", "./analysis.db"] } }, "aliases": { "analyze": "Analyze this dataset: ", "visualize": "Create visualization for: ", "model": "Help with machine learning model: ", "stats": "Perform statistical analysis on: ", "clean": "Clean and preprocess this data: " }, "output": { "format": "markdown", "includeCharts": true } }

Enterprise Templates

Team Collaboration Config

Advanced

Standardized configuration for development teams

{ "apiKey": "${GEMINI_API_KEY}", "model": "gemini-pro", "temperature": 0.5, "maxTokens": 4096, "timeout": 45000, "mcpServers": { "git": { "command": "npx", "args": ["@modelcontextprotocol/server-git", "."] }, "filesystem": { "command": "npx", "args": ["@modelcontextprotocol/server-filesystem", "./src", "./docs"], "env": { "MCP_FILESYSTEM_ALLOWED_PATHS": "./src:./docs:./tests" } } }, "aliases": { "pr-review": "Review this pull request: ", "commit-msg": "Generate commit message for: ", "code-review": "Perform code review following team standards: ", "refactor": "Refactor following team guidelines: ", "document": "Document according to team standards: " }, "safety": { "blockThreshold": "BLOCK_LOW_AND_ABOVE", "categories": ["HARM_CATEGORY_HARASSMENT", "HARM_CATEGORY_DANGEROUS_CONTENT"] }, "logging": { "level": "info", "includeTimestamps": true, "auditTrail": true } }

Security-First Config

Advanced

High-security configuration for sensitive environments

{ "apiKey": "${GEMINI_API_KEY}", "model": "gemini-pro", "temperature": 0.2, "maxTokens": 2048, "timeout": 30000, "security": { "enableAuditLog": true, "logAllRequests": true, "restrictedPaths": ["/etc", "/var", "/root"], "allowedFileTypes": [".js", ".ts", ".py", ".md"], "maxFileSize": "1MB" }, "safety": { "blockThreshold": "BLOCK_LOW_AND_ABOVE", "categories": [ "HARM_CATEGORY_HARASSMENT", "HARM_CATEGORY_HATE_SPEECH", "HARM_CATEGORY_SEXUALLY_EXPLICIT", "HARM_CATEGORY_DANGEROUS_CONTENT" ] }, "aliases": { "security-review": "Perform security review: ", "vulnerability-scan": "Scan for vulnerabilities: ", "compliance-check": "Check compliance with standards: " }, "logging": { "level": "debug", "file": "/var/log/gemini-cli.log", "includeUserInfo": true, "includeRequestDetails": true } }

Specialized Templates

CI/CD Pipeline Config

Intermediate

Optimized for automated workflows and pipeline integration

{ "apiKey": "${GEMINI_API_KEY}", "model": "gemini-pro", "temperature": 0.1, "maxTokens": 1024, "timeout": 60000, "retryAttempts": 3, "output": { "format": "json", "quiet": true, "includeSummary": false }, "aliases": { "test-analysis": "Analyze test results: ", "deployment-check": "Check deployment readiness: ", "changelog": "Generate changelog from commits: ", "release-notes": "Create release notes: " }, "monitoring": { "enabled": true, "metricsEndpoint": "${METRICS_ENDPOINT}", "alertOnFailure": true } }

Educational Config

Beginner

Designed for learning and teaching programming concepts

{ "apiKey": "${GOOGLE_AI_API_KEY}", "model": "gemini-pro", "temperature": 0.8, "maxTokens": 3072, "output": { "format": "markdown", "highlighting": true, "verbose": true, "includeExplanations": true }, "aliases": { "learn": "Explain this concept step by step: ", "practice": "Give me practice problems for: ", "debug-help": "Help me understand this error: ", "concept": "Explain the concept of: ", "example": "Show me examples of: ", "beginner": "Explain like I'm a beginner: " }, "safety": { "blockThreshold": "BLOCK_MEDIUM_AND_ABOVE", "educationalMode": true } }

Performance Optimized Config

Advanced

Optimized for high-throughput and batch processing

{ "apiKey": "${GOOGLE_AI_API_KEY}", "model": "gemini-pro", "temperature": 0.3, "maxTokens": 1024, "timeout": 120000, "retryAttempts": 5, "batch": { "enabled": true, "maxConcurrent": 10, "throttleMs": 100, "resumeOnFailure": true }, "performance": { "cacheEnabled": true, "cacheTTL": 3600, "compressRequests": true, "streamResponses": true }, "output": { "format": "json", "quiet": true, "buffered": true } }

How to Use Templates

Method 1: Direct Copy

1. Copy template content

2. Create config file:

# Create in project directory

touch gemini.config.json

# Or in user config directory

mkdir -p ~/.config/gemini-cli

touch ~/.config/gemini-cli/config.json

3. Paste and customize

Replace placeholder values like API keys and paths

Method 2: CLI Command

# Download and apply template

gemini config template apply developer-basic

# List available templates

gemini config template list

# Preview template

gemini config template show enterprise-security

Method 3: Interactive Setup

# Start interactive template wizard

gemini config init --template

# Answer prompts to customize template

# Wizard will guide you through the process

Template Customization

Common customizations:

  • API Key: Replace $${GOOGLE_AI_API_KEY} with your actual key or environment variable
  • Model: Choose between gemini-pro, gemini-pro-vision, or gemini-ultra
  • Temperature: Adjust creativity (0.0 = deterministic, 1.0 = creative)
  • Paths: Update file and directory paths to match your project structure
  • Aliases: Add custom shortcuts for your common tasks

Validation:

gemini config validate

gemini config test

Ready to Configure?

Choose a template that fits your use case and start using Gemini CLI: