Set Gemini 3.1 Pro as the default model via environment variable
Setting GEMINI_MODEL in your shell config (~/.bashrc or ~/.zshrc) makes every Gemini CLI session use this model by default. gemini-3.1-pro-preview is the current flagship (April 2026). For a cheaper default, use gemini-3-flash-preview. The old gemini-2.0-flash model retires June 1, 2026.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.