--- Title: redis-di add-context linkTitle: redis-di add-context description: Adds a new context weight: 10 alwaysopen: false categories: ["redis-di"] aliases: --- ## Usage ``` Usage: redis-di add-context [OPTIONS] CONTEXT_NAME ``` ## Options - `context_name` (REQUIRED): - Type: STRING - Default: `none` - Usage: `context-name` - `log_level`: - Type: Choice(['TRACE', 'DEBUG', 'INFO', 'WARNING', 'ERROR', 'CRITICAL']) - Default: `info` - Usage: `--log-level -l` - `rdi_namespace`: - Type: STRING - Default: `rdi` - Usage: `--rdi-namespace` RDI Kubernetes namespace - `rdi_host` (REQUIRED): - Type: STRING - Default: `none` - Usage: `--rdi-host` Host/IP of RDI Database - `rdi_port` (REQUIRED): - Type: - Default: `none` - Usage: `--rdi-port` Port of RDI Database - `rdi_user`: - Type: STRING - Default: `none` - Usage: `--rdi-user` RDI Database Username - `rdi_key`: - Type: STRING - Default: `none` - Usage: `--rdi-key` Private key file to authenticate with - `rdi_cert`: - Type: STRING - Default: `none` - Usage: `--rdi-cert` Client certificate file to authenticate with - `rdi_cacert`: - Type: STRING - Default: `none` - Usage: `--rdi-cacert` CA certificate file to verify with - `help`: - Type: BOOL - Default: `false` - Usage: `--help` Show this message and exit. ## CLI help ``` Usage: redis-di add-context [OPTIONS] CONTEXT_NAME Adds a new context Options: -l, --log-level [TRACE|DEBUG|INFO|WARNING|ERROR|CRITICAL] [default: INFO] --rdi-namespace TEXT RDI Kubernetes namespace [default: rdi] --rdi-host TEXT Host/IP of RDI Database [required] --rdi-port INTEGER RANGE Port of RDI Database [1<=x<=65535; required] --rdi-user TEXT RDI Database Username --rdi-key TEXT Private key file to authenticate with --rdi-cert TEXT Client certificate file to authenticate with --rdi-cacert TEXT CA certificate file to verify with --help Show this message and exit. ```