{
    "REPLICAOF": {
        "summary": "Configures a server as replica of another, or promotes it to a master.",
        "complexity": "O(1)",
        "group": "server",
        "since": "5.0.0",
        "arity": 3,
        "function": "replicaofCommand",
        "command_flags": [
            "NO_ASYNC_LOADING",
            "ADMIN",
            "NOSCRIPT",
            "STALE"
        ],
        "arguments": [
            {
                "name": "host",
                "type": "string"
            },
            {
                "name": "port",
                "type": "integer"
            }
        ],
        "reply_schema": {
            "description": "replicaOf status",
            "type": "string",
            "pattern": "OK*"
        }
    }
}
