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
See [Configuration](#configuration) for how each harness supplies the connection settings.
69
+
42
70
### Configuration
43
71
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.
72
+
The plugin connects to PostgreSQL using these settings:
45
73
46
-
*`POSTGRES_HOST`: (Optional) The Postgres host. Defaults to `localhost`.
47
-
*`POSTGRES_PORT`: (Optional) The Postgres port. Defaults to `5432`.
48
74
*`POSTGRES_DATABASE`: The name of the database to connect to.
49
75
*`POSTGRES_USER`: The database username.
50
76
*`POSTGRES_PASSWORD`: The password for the database user.
77
+
*`POSTGRES_HOST`: (Optional) The Postgres host. Defaults to `localhost`.
78
+
*`POSTGRES_PORT`: (Optional) The Postgres port. Defaults to `5432`.
*`setting name`: (Optional) The single setting to configure.
61
-
*`scope`: (Optional) The scope of the setting in (`user` or `workspace`). Defaults to `user`.
62
-
* Currently, you must restart the Gemini CLI for changes to take effect. We recommend using `gemini --resume` to resume your session.
81
+
How you supply them depends on the harness:
63
82
64
-
Alternatively, you can manually set these environment variables before starting the Gemini CLI:
83
+
***Gemini CLI**: prompted on install and saved to the extension's `.env`. View or update later with `gemini extensions list` / `gemini extensions config postgres [setting] [--scope user|workspace]` (restart the CLI to apply).
84
+
***Claude Code**: pass `--config KEY=VALUE` on install (repeatable), or run `/plugin` inside Claude Code.
85
+
***Codex** and **Antigravity**: export the variables in your shell before starting:
65
86
66
87
```bash
67
-
export POSTGRES_HOST="<your-postgres-host>"# Optional: defaults to localhost
68
-
export POSTGRES_PORT="<your-postgres-port>"# Optional: defaults to 5432
0 commit comments