SLAVEOF
Requests standalone master role using the SLAVEOF command name.
Server & administration · Example verified
Syntax covered here
SLAVEOF NO ONEOnly NO ONE followed by a master ROLE check is verified; upstream replication is not exercised.
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
> SLAVEOF NO ONE
"OK"
# connection: default
> ROLE
["master",0,[]]