--- Title: redis-di set-context aliases: null alwaysopen: false categories: - docs - integrate - rs - rdi description: Sets a context to be the active one group: di linkTitle: redis-di set-context summary: Redis Data Integration keeps Redis in sync with the primary database in near real time. type: integration weight: 10 --- ## Usage ``` Usage: redis-di set-context [OPTIONS] CONTEXT_NAME ``` ## Options - `loglevel`: - Type: Choice(['DEBUG', 'INFO', 'WARN', 'ERROR', 'CRITICAL']) - Default: `info` - Usage: `--loglevel -log-level` - `context_name` (REQUIRED): - Type: STRING - Default: `none` - Usage: `context-name` - `help`: - Type: BOOL - Default: `false` - Usage: `--help` Show this message and exit. ## CLI help ``` Usage: redis-di set-context [OPTIONS] CONTEXT_NAME Sets a context to be the active one Options: -log-level, --loglevel [DEBUG|INFO|WARN|ERROR|CRITICAL] [default: INFO] --help Show this message and exit. ```