REPLICAOF
Requests standalone master role with the NO ONE form.
Server & administration · Example verified
Syntax covered here
REPLICAOF NO ONEROLE reports master afterward; the case establishes only standalone role control, not replication setup or failover.
Tested example & replies
Requests below run in order against an empty database. Each connection authenticates with the fixture password first. Quoted values are strings; null is a nil reply; arrays preserve RESP order.
# connection: default
> REPLICAOF NO ONE
"OK"
# connection: default
> ROLE
["master",0,[]]