A Gemini CLI egy parancssori munkamenetet támogató új eszköz (MI-ügynök), amely a Gemini 2.5 Pro MI-modell segítségével képes kódot értelmezni, elmagyarázni, dokumentálni, generálni, javítani, refaktorálni; továbbá képes más fejlesztői eszközöket (pl. git) integrálni. Egyelőre “ingyenesen” (Google-módra) használható Google-fiókos autentikációval, a kvóta (1M tokenes kontextus és napi 1000 lekérdezés) sok mindenre elég.
$ node --version
v22.15.0
# npm install --global @google/gemini-cli
$ gemini
Frissítése:
# npm --global outdated
# npm install --global @google/gemini-cli@latest
A gemini néhány argumentuma:
$ gemini --version # Version
$ gemini --prompt "your prompt here" # Direct prompt execution
$ gemini --yolo # Auto-confirm all prompts
Néhány saját parancsa:
/about # Check version
/help # Show available commands
/quit # Exit CLI (or Ctrl+C)
/chat save <tag> # Save current conversation
/chat resume <tag> # Resume saved conversation
/chat list # List saved conversations
!ls -la # Execute shell command
! # Toggle shell mode
@<path_to_file> # Include file content in prompt
Figyelem, a gemini nem menti automatikusan a párbeszédeket, ezért a chat save/resume
parancsok kiemelt jelentőségűek.