{
  "id": "redis-di-set-context",
  "title": "redis-di set-context",
  "url": "https://redis.io/docs/latest/integrate/redis-data-integration/reference/cli/redis-di-set-context/",
  "summary": "Sets a context to be the active one",
  "tags": [
    "redis-di"
  ],
  "last_updated": "2026-04-01T08:10:08-05:00",
  "page_type": "content",
  "content_hash": "0179e87cb92bead7d1d7c3a46c6ef80a1da0221a3dd4df8dd103381eeea138f1",
  "sections": [
    {
      "id": "usage",
      "title": "Usage",
      "role": "syntax",
      "text": "[code example]"
    },
    {
      "id": "options",
      "title": "Options",
      "role": "parameters",
      "text": "- `log_level`:\n  - Type: Choice(['TRACE', 'DEBUG', 'INFO', 'WARNING', 'ERROR', 'CRITICAL'])\n  - Default: `info`\n  - Usage: `--log-level\n-l`\n\n- `context_name` (REQUIRED):\n  - Type: STRING\n  - Default: `none`\n  - Usage: `context-name`\n\n- `help`:\n  - Type: BOOL\n  - Default: `false`\n  - Usage: `--help`\n\n  Show this message and exit."
    },
    {
      "id": "cli-help",
      "title": "CLI help",
      "role": "content",
      "text": "[code example]"
    }
  ],
  "examples": [
    {
      "id": "usage-ex0",
      "language": "plaintext",
      "code": "Usage: redis-di set-context [OPTIONS] CONTEXT_NAME",
      "section_id": "usage"
    },
    {
      "id": "cli-help-ex0",
      "language": "plaintext",
      "code": "Usage: redis-di set-context [OPTIONS] CONTEXT_NAME\n\n  Sets a context to be the active one\n\nOptions:\n  -l, --log-level [TRACE|DEBUG|INFO|WARNING|ERROR|CRITICAL]\n                                  [default: INFO]\n  --help                          Show this message and exit.",
      "section_id": "cli-help"
    }
  ]
}
