This workspace is pre-configured to help you get started with the Gemini CLI and Firebase. Here's how to get everything set up:
You have a few options to authenticate with the Gemini CLI:
-
API Key (Recommended):
- Open the
.env
file. - Get your Gemini API Key from Google AI Studio.
- Paste your key into the
GEMINI_API_KEY
field. - In the Gemini CLI, select "API Key" as your authentication method.
- Open the
-
Login with Google:
- Run a Gemini command, and you will be prompted to log in with your Google account.
-
Vertex AI:
- If you have a Vertex AI project, you can configure the CLI to use it for authentication.
To connect the Gemini CLI to your Firebase project, you need to update the .firebaserc
file:
- Open the
.firebaserc
file. - Replace
"project-id"
with your Firebase project ID. - If you aren't prompted you'll need to authenticate with Firebase by running
firebase login
in your terminal.
The Gemini CLI is already configured to use the Firebase MCP server, as you can see in the .gemini/settings.json
file.
Check out the gemini.md
file for an example of how to configure the Gemini CLI to be your best Firebase friend! This file provides a great starting point for customizing your experience.
You're all set! You can now start chatting with Gemini and interacting with your Firebase project through the CLI.