export GEMINI_API_KEY='AIza...'

Category: Gemini CLI

export GEMINI_API_KEY='AIza...'

Set your Gemini API key so Gemini CLI can authenticate without browser login

Sets your Gemini API key as an environment variable so Gemini CLI can authenticate without a browser login.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.