{
  "schema_version": 2,
  "id": "commands/cluster-addslotsrange",
  "title": "CLUSTER ADDSLOTSRANGE",
  "url": "https://redis.io/docs/latest/commands/cluster-addslotsrange/",
  "summary": "Assigns new hash slot ranges to a node.",
  "since": "7.0.0",
  "tags": [
    "docs",
    "develop",
    "stack",
    "oss",
    "rs",
    "rc",
    "oss",
    "kubernetes",
    "clients"
  ],
  "last_updated": "2026-09-18T09:48:21+01:00",
  "page_type": "content",
  "content_hash": "c67b287261d31cb095552543535dcbe9644f674ca3ba7e814b4aa9311831c5f9",
  "sections": [
    {
      "id": "overview",
      "title": "Overview",
      "role": "overview",
      "text": "The `CLUSTER ADDSLOTSRANGE` is similar to the [`CLUSTER ADDSLOTS`](https://redis.io/docs/latest/commands/cluster-addslots) command in that they both assign hash slots to nodes.\n\nThe difference between the two commands is that [`CLUSTER ADDSLOTS`](https://redis.io/docs/latest/commands/cluster-addslots) takes a list of slots to assign to the node, while `CLUSTER ADDSLOTSRANGE` takes a list of slot ranges (specified by start and end slots) to assign to the node."
    },
    {
      "id": "required-arguments",
      "title": "Required arguments",
      "role": "content",
      "text": "<details open><summary><code>start-slot end-slot [start-slot end-slot ...]</code></summary>\n\nOne or more inclusive ranges of hash slots to assign to the current node.\n\n</details>"
    },
    {
      "id": "examples",
      "title": "Examples",
      "role": "example",
      "text": "To assign slots 1 2 3 4 5 to the node, the [`CLUSTER ADDSLOTS`](https://redis.io/docs/latest/commands/cluster-addslots) command is:\n\n    > CLUSTER ADDSLOTS 1 2 3 4 5\n    OK\n\nThe same operation can be completed with the following `CLUSTER ADDSLOTSRANGE` command:\n\n    > CLUSTER ADDSLOTSRANGE 1 5\n    OK"
    },
    {
      "id": "details",
      "title": "Details",
      "role": "content",
      "text": ""
    },
    {
      "id": "usage-in-redis-cluster",
      "title": "Usage in Redis Cluster",
      "role": "syntax",
      "text": "This command only works in cluster mode and is useful in the following Redis Cluster operations:\n\n1. To create a new cluster, `CLUSTER ADDSLOTSRANGE` is used to initially set up master nodes splitting the available hash slots among them.\n2. In order to fix a broken cluster where certain slots are unassigned."
    },
    {
      "id": "redis-software-and-redis-cloud-compatibility",
      "title": "Redis Software and Redis Cloud compatibility",
      "role": "content",
      "text": "| Redis<br />Software | Redis<br />Cloud | <span style=\"min-width: 9em; display: table-cell\">Notes</span> |\n|:----------------------|:-----------------|:------|\n| <span title=\"Not supported\">&#x274c; Standard</span><br /><span title=\"Not supported\"><nobr>&#x274c; Active-Active</nobr></span> | <span title=\"Not supported\">&#x274c; Standard</span><br /><span title=\"Not supported\"><nobr>&#x274c; Active-Active</nobr></span> |  |"
    },
    {
      "id": "return-information",
      "title": "Return information",
      "role": "returns",
      "text": "**RESP2:**\n\n[Simple string reply](../../develop/reference/protocol-spec#simple-strings): `OK` if the command was successful. Otherwise an error is returned.\n\n**RESP3:**\n\n[Simple string reply](../../develop/reference/protocol-spec#simple-strings): `OK` if the command was successful. Otherwise an error is returned."
    }
  ],
  "examples": []
}
