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:
35
37
@@ -39,6 +41,19 @@ Set the following environment variables before starting the Gemini CLI:
39
41
*`POSTGRES_USER`: The username for authentication.
40
42
*`POSTGRES_PASSWORD`: The password for authentication.
41
43
44
+
### Start Gemini CLI
45
+
46
+
To start the Gemini CLI, use the following command:
47
+
48
+
```bash
49
+
gemini
50
+
```
51
+
52
+
> [!WARNING]
53
+
> **Changing Instance & Database Connections**
54
+
> Currently, the database connection must be configured before starting the Gemini CLI and can not be changed during a session.
55
+
> To save and resume conversation history use command: `/chat save <tag>` and `/chat resume <tag>`.
56
+
42
57
## Usage Examples
43
58
44
59
Interact with Postgres using natural language right from your IDE:
@@ -67,8 +82,12 @@ Interact with Postgres using natural language right from your IDE:
67
82
68
83
## Additional Extensions
69
84
70
-
Find additional extensions to support your entire software development lifecycle at [github.com/gemini-cli-extensions](https://github.com/gemini-cli-extensions).
85
+
Find additional extensions to support your entire software development lifecycle at [github.com/gemini-cli-extensions](https://github.com/gemini-cli-extensions), including:
86
+
*[Cloud SQL for PostgreSQL extension](https://github.com/gemini-cli-extensions/cloud-sql-postgresql)
87
+
* and more!
71
88
72
89
## Troubleshooting
73
90
74
-
* "cannot execute binary file": 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.
91
+
* "✖ 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.
92
+
* "✖ 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+.
93
+
* "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