You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Set the following environment variables before starting the Gemini CLI. These variables can be loaded from a `.env` file.
44
+
You will be prompted to configure the following settings during installation. These settings are saved in an `.env` file within the extension's directory.
45
+
46
+
*`POSTGRES_HOST`: (Optional) The Postgres host. Defaults to `localhost`.
47
+
*`POSTGRES_PORT`: (Optional) The Postgres port. Defaults to `5432`.
48
+
*`POSTGRES_DATABASE`: The name of the database to connect to.
49
+
*`POSTGRES_USER`: The database username.
50
+
*`POSTGRES_PASSWORD`: The password for the database user.
> See [Troubleshooting](#troubleshooting) for debugging your configuration.
76
+
54
77
### Start Gemini CLI
55
78
56
79
To start the Gemini CLI, use the following command:
@@ -113,7 +136,6 @@ Use `gemini --debug` to enable debugging.
113
136
114
137
Common issues:
115
138
116
-
* "failed to find default credentials: google: could not find default credentials.": Ensure [Application Default Credentials](https://cloud.google.com/docs/authentication/gcloud) are available in your environment. See [Set up Application Default Credentials](https://cloud.google.com/docs/authentication/external/set-up-adc) for more information.
117
139
* "✖ Error during discovery for server: MCP error -32000: Connection closed": The database connection has not been established. Ensure your configuration is set via environment variables.
118
140
* "✖ MCP ERROR: Error: spawn /Users/USER/.gemini/extensions/postgres/toolbox ENOENT": The Toolbox binary did not download correctly. Ensure you are using Gemini CLI v0.6.0+.
119
141
* "cannot execute binary file": The Toolbox binary did not download correctly. Ensure the correct binary for your OS/Architecture has been downloaded. See [Installing the server](https://googleapis.github.io/genai-toolbox/getting-started/introduction/#installing-the-server) for more information.
0 commit comments