{
  "id": "redis-di-create",
  "title": "redis-di create",
  "url": "https://redis.io/docs/latest/integrate/write-behind/reference/cli/redis-di-create/",
  "summary": "Creates the Write-behind Database instance",
  "tags": [
    "docs",
    "integrate",
    "rs",
    "rdi"
  ],
  "last_updated": "2026-04-01T08:10:08-05:00",
  "page_type": "content",
  "content_hash": "75c9c74dd8d48880475034e091b7b7f0cd726ef4729182a7e1bdd18342fe86a4",
  "sections": [
    {
      "id": "usage",
      "title": "Usage",
      "role": "syntax",
      "text": "[code example]"
    },
    {
      "id": "options",
      "title": "Options",
      "role": "parameters",
      "text": "- `loglevel`:\n\n  - Type: Choice(['DEBUG', 'INFO', 'WARN', 'ERROR', 'CRITICAL'])\n  - Default: `info`\n  - Usage: `--loglevel\n-log-level`\n\n- `silent`:\n\n  - Type: BOOL\n  - Default: `false`\n  - Usage: `--silent`\n\n  Silent install. Do not prompt to enter missing parameters\n\n- `no_configure`:\n\n  - Type: BOOL\n  - Default: `false`\n  - Usage: `--no-configure`\n\n  Do not install Write-behind Engine to the Write-behind Database\n\n- `cluster_host` (REQUIRED):\n\n  - Type: STRING\n  - Default: `none`\n  - Usage: `--cluster-host`\n\n  Host/IP of Redis Enterprise Cluster (service name in case of k8s)\n\n- `cluster_api_port` (REQUIRED):\n\n  - Type: <IntRange 1000<=x<=65535>\n  - Default: `9443`\n  - Usage: `--cluster-api-port`\n\n  API Port of Redis Enterprise Cluster\n\n- `cluster_user` (REQUIRED):\n\n  - Type: STRING\n  - Default: `none`\n  - Usage: `--cluster-user`\n\n  Redis Enterprise Cluster username with either DB Member, Cluster Member or Cluster Admin roles\n\n- `cluster_password`:\n\n  - Type: STRING\n  - Default: `none`\n  - Usage: `--cluster-password`\n\n  Redis Enterprise Cluster Password\n\n- `rdi_port`:\n\n  - Type: <IntRange 1000<=x<=65535>\n  - Default: `none`\n  - Usage: `--rdi-port`\n\n  Port for the new Write-behind Database\n\n- `rdi_password`:\n\n  - Type: STRING\n  - Default: ``\n  - Usage: `--rdi-password`\n\n  Password for the new Write-behind Database (alphanumeric characters with zero or more of the following: ! & # $ ^ < > -)\n\n- `rdi_memory`:\n\n  - Type: <IntRange x>=30>\n  - Default: `100`\n  - Usage: `--rdi-memory`\n\n  Memory for Write-behind Database (in MB)\n\n- `rdi_shards`:\n\n  - Type: <IntRange x>=1>\n  - Default: `1`\n  - Usage: `--rdi-shards`\n\n  Number of database server-side shards\n\n- `replication`:\n\n  - Type: BOOL\n  - Default: `false`\n  - Usage: `--replication`\n\n  In-memory database replication\n\n- `redisgears_module`:\n\n  - Type: STRING\n  - Default: ``\n  - Usage: `--redisgears-module`\n\n  RedisGears module file\n\n- `with_rejson`:\n\n  - Type: BOOL\n  - Default: `false`\n  - Usage: `--with-rejson`\n\n  Include ReJSON in the Write-behind Database\n\n- `help`:\n\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 create [OPTIONS]",
      "section_id": "usage"
    },
    {
      "id": "cli-help-ex0",
      "language": "plaintext",
      "code": "Usage: redis-di create [OPTIONS]\n\n  Creates the Write-behind Database instance\n\nOptions:\n  -log-level, --loglevel [DEBUG|INFO|WARN|ERROR|CRITICAL]\n                                  [default: INFO]\n  --silent                        Silent install. Do not prompt to enter\n                                  missing parameters\n  --no-configure                  Do not install Write-behind Engine to the Write-behind\n                                  Database\n  --cluster-host TEXT             Host/IP of Redis Enterprise Cluster (service\n                                  name in case of k8s)  [required]\n  --cluster-api-port INTEGER RANGE\n                                  API Port of Redis Enterprise Cluster\n                                  [default: 9443; 1000<=x<=65535; required]\n  --cluster-user TEXT             Redis Enterprise Cluster username with\n                                  either DB Member, Cluster Member or Cluster\n                                  Admin roles  [required]\n  --cluster-password TEXT         Redis Enterprise Cluster Password\n  --rdi-port INTEGER RANGE        Port for the new Write-behind Database\n                                  [1000<=x<=65535]\n  --rdi-password TEXT             Password for the new Write-behind Database\n                                  (alphanumeric characters with zero or more\n                                  of the following: ! & # $ ^ < > -)\n  --rdi-memory INTEGER RANGE      Memory for Write-behind Database (in MB)  [x>=30]\n  --rdi-shards INTEGER RANGE      Number of database server-side shards\n                                  [x>=1]\n  --replication                   In-memory database replication\n  --redisgears-module TEXT        RedisGears module file\n  --help                          Show this message and exit.",
      "section_id": "cli-help"
    }
  ]
}
