{
  "id": "redis-di-completion",
  "title": "redis-di completion",
  "url": "https://redis.io/docs/latest/integrate/redis-data-integration/reference/cli/redis-di-completion/",
  "summary": "Generates a shell autocompletion script",
  "tags": [
    "redis-di"
  ],
  "last_updated": "2026-07-13T12:40:14-05:00",
  "page_type": "content",
  "content_hash": "b12680c1cfde940d3587eeecfccf0ccce1260185c32dcffd74bb0228928430c7",
  "sections": [
    {
      "id": "overview",
      "title": "Overview",
      "role": "overview",
      "text": "Generates an autocompletion script for `redis-di` for the specified shell. Supported shells are\n`bash`, `zsh`, `fish`, and `powershell`."
    },
    {
      "id": "usage",
      "title": "Usage",
      "role": "syntax",
      "text": "[code example]\n\nRun `redis-di completion <shell> --help` for the per-shell installation instructions."
    },
    {
      "id": "example",
      "title": "Example",
      "role": "example",
      "text": "To load completions into the current `bash` session:\n\n[code example]"
    }
  ],
  "examples": [
    {
      "id": "usage-ex0",
      "language": "plaintext",
      "code": "redis-di completion [bash|zsh|fish|powershell]",
      "section_id": "usage"
    },
    {
      "id": "example-ex0",
      "language": "bash",
      "code": "source <(redis-di completion bash)",
      "section_id": "example"
    }
  ]
}
