{
  "id": "module-load",
  "title": "MODULE LOAD",
  "url": "https://redis.io/docs/latest/commands/module-load/",
  "summary": "Loads a module.",
  "tags": [
    "docs",
    "develop",
    "stack",
    "oss",
    "rs",
    "rc",
    "oss",
    "kubernetes",
    "clients"
  ],
  "last_updated": "2026-06-18T09:33:36-05:00",
  "page_type": "content",
  "content_hash": "c842a597f73ce0ed936f9d1d76d9aab87bc0939853c777a6d2baf7bdbb3e4488",
  "sections": [
    {
      "id": "overview",
      "title": "Overview",
      "role": "overview",
      "text": "Loads a module from a dynamic library at runtime.\n\nThis command loads and initializes the Redis module from the dynamic library\nspecified by the `path` argument. The `path` should be the absolute path of the\nlibrary, including the full filename. Any additional arguments are passed\nunmodified to the module.\n\n**Note**: modules can also be loaded at server startup with `loadmodule`\nconfiguration directive in `redis.conf`.\n\n\nAs of Redis 8 in Redis Open Source, loading a module using the Redis CLI with configuration parameters is deprecated."
    },
    {
      "id": "required-arguments",
      "title": "Required arguments",
      "role": "content",
      "text": "<details open><summary><code>path</code></summary>\n\nThe absolute path to the module library file.\n\n</details>"
    },
    {
      "id": "optional-arguments",
      "title": "Optional arguments",
      "role": "parameters",
      "text": "<details open><summary><code>arg [arg ...]</code></summary>\n\nArguments passed to the module's initialization function.\n\n</details>"
    },
    {
      "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 module was loaded.\n\n**RESP3:**\n\n[Simple string reply](../../develop/reference/protocol-spec#simple-strings): `OK` if the module was loaded."
    }
  ],
  "examples": []
}
