Run Your First Command

Verify your Gemini CLI setup by running your first command and getting familiar with basic usage.

Pre-flight Check

Before running your first command, ensure you have:

  • Gemini CLI installed
  • Google AI API key configured
  • Internet connection active

Your First Command

Let's start with a simple test:

gemini "Hello, world! Can you help me with coding?"

This command sends a simple prompt to verify your setup is working.

Common Commands

Check Version

gemini --version

Get Help

gemini --help

Explain Code

gemini "Explain this code" < script.js

Next Steps

Great! Now explore more advanced features: