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
Copy file name to clipboardExpand all lines: README.md
+28-15Lines changed: 28 additions & 15 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,20 +6,28 @@
6
6
This Gemini CLI extension provides a set of tools to interact with [PostgreSQL](https://www.postgresql.org/docs/) instances. It allows you to manage your databases, execute queries, and explore schemas directly from the [Gemini CLI](https://google-gemini.github.io/gemini-cli/), using natural language prompts.
7
7
8
8
Learn more about [Gemini CLI Extensions](https://github.com/google-gemini/gemini-cli/blob/main/docs/extensions/index.md).
9
+
> [!IMPORTANT]
10
+
> **We Want Your Feedback!**
11
+
> Please share your thoughts with us by filling out our feedback [form][form].
12
+
> Your input is invaluable and helps us improve the project for everyone.
Set the following environment variables before starting the Gemini CLI:
44
+
Set the following environment variables before starting the Gemini CLI. These variables can be loaded from a `.env` file.
37
45
38
-
*`POSTGRES_HOST`: The hostname or IP address of the PostgreSQL server.
39
-
*`POSTGRES_PORT`: The port number of the PostgreSQL server.
40
-
*`POSTGRES_DATABASE`: The name of the database to connect to.
41
-
*`POSTGRES_USER`: The username for authentication.
42
-
*`POSTGRES_PASSWORD`: The password for authentication.
46
+
*`POSTGRES_HOST`: The hostname or IP address of the PostgreSQL server.
47
+
*`POSTGRES_PORT`: The port number of the PostgreSQL server.
48
+
*`POSTGRES_DATABASE`: The name of the database to connect to.
49
+
*`POSTGRES_USER`: The username for authentication.
50
+
*`POSTGRES_PASSWORD`: The password for authentication.
43
51
44
52
### Start Gemini CLI
45
53
@@ -58,12 +66,12 @@ gemini
58
66
59
67
Interact with Postgres using natural language right from your IDE:
60
68
61
-
***Explore Schemas and Data:**
69
+
***Explore Schemas and Data:**
62
70
* "Show me all tables in the 'orders' database."
63
71
* "What are the columns in the 'products' table?"
64
72
* "How many orders were placed in the last 30 days, and what were the top 5 most purchased items?"
65
73
66
-
***Generate Code:**
74
+
***Generate Code:**
67
75
* "Generate a Python dataclass to represent the 'customers' table."
68
76
69
77
## Supported Tools
@@ -88,6 +96,11 @@ Find additional extensions to support your entire software development lifecycle
88
96
89
97
## Troubleshooting
90
98
99
+
Use `gemini --debug` to enable debugging.
100
+
101
+
Common issues:
102
+
103
+
* "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.
91
104
* "✖ 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+.
105
+
* "✖ 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
106
* "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