{
  "id": "redis-di-get-secret",
  "title": "redis-di get-secret",
  "url": "https://redis.io/docs/latest/integrate/redis-data-integration/reference/cli/redis-di-get-secret/",
  "summary": "Gets a secret of a pipeline",
  "tags": [
    "redis-di"
  ],
  "last_updated": "2026-07-13T12:40:14-05:00",
  "page_type": "content",
  "content_hash": "fd87ab9953e1a3fa2ca01254c11f730e65ec00d99185fc28a60cf00a6c60476e",
  "sections": [
    {
      "id": "overview",
      "title": "Overview",
      "role": "overview",
      "text": "Gets a single secret of a pipeline and prints it in the compact `list-secrets` table format. The API\nnever returns secret values, so the output shows only the key and whether it is set, not the stored\nvalue."
    },
    {
      "id": "usage",
      "title": "Usage",
      "role": "syntax",
      "text": "[code example]"
    },
    {
      "id": "options",
      "title": "Options",
      "role": "parameters",
      "text": "| Option | Description |\n| :-- | :-- |\n| `-p`, `--pipeline` | Pipeline to target (default `default`). |\n| `-o`, `--output` | Output format: `table` (default), `json`, or `yaml`. |\n\nThis command also accepts the\n[global options](https://redis.io/docs/latest/integrate/redis-data-integration/reference/cli/redis-di#global-options)."
    },
    {
      "id": "example",
      "title": "Example",
      "role": "example",
      "text": "[code example]"
    }
  ],
  "examples": [
    {
      "id": "usage-ex0",
      "language": "plaintext",
      "code": "redis-di get-secret <key> [flags]",
      "section_id": "usage"
    },
    {
      "id": "example-ex0",
      "language": "bash",
      "code": "redis-di get-secret SOURCE_DB_USERNAME",
      "section_id": "example"
    }
  ]
}
