gemini-cli/docs
jerop 4e9d365407 feat: Enable environment variable substitution in settings
This commit introduces the ability to use system environment variables
within the settings files (e.g., `settings.json`). Users can now
reference environment variables using the `${VAR_NAME}` syntax.

This enhancement improves security and flexibility, particularly
for configurations like MCP server settings, which often require
sensitive tokens.

Previously, to configure an MCP server, a token might be directly
embedded:
```json
"mcpServers": {
  "github": {
    "env": {
      "GITHUB_PERSONAL_ACCESS_TOKEN": "pat_abc123"
    }
    // ...
  }
}
```

With this change, the same configuration can securely reference an
environment variable:
```json
"mcpServers": {
  "github": {
    "env": {
      "GITHUB_PERSONAL_ACCESS_TOKEN": "${GITHUB_PERSONAL_ACCESS_TOKEN}"
    }
    // ...
  }
}
```

This allows users to avoid storing secrets directly in configuration files.
2025-06-06 11:47:37 -04:00
..
assets Add Theme docs (#753) 2025-06-05 08:10:05 -07:00
cli feat: Enable environment variable substitution in settings 2025-06-06 11:47:37 -04:00
core OpenTelemetry Integration & Telemetry Control Flag (#762) 2025-06-05 13:04:25 -07:00
tools Fix broken documentation links after server->core folder rename (#740) 2025-06-04 10:02:07 -07:00
architecture.md Add Theme docs (#753) 2025-06-05 08:10:05 -07:00
index.md Fix broken documentation links after server->core folder rename (#740) 2025-06-04 10:02:07 -07:00
troubleshooting.md Rename server->core (#638) 2025-05-30 18:25:47 -07:00