REPLICAOFMake this server a replica of another, or promote it with NO ONE.
| Syntax | REPLICAOF host port | NO ONE |
| Group | replication |
| Arity | 3 |
| Since | 1.0.0 |
| Flags | write, admin |
| Complexity | O(1) at the command; the full resync that follows is O(N) in the background |
| Redis compatibility | differs: the port argument is the primary's REPLICATION port base, not its client port (the default base is client port + 10000); chain replication is rejected |