ROLE
Reports the server's current replication role.
Server & administration · Example verified
Syntax covered here
ROLEThe standalone receipts report master, including after REPLICAOF NO ONE and SLAVEOF NO ONE.
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
> ROLE
["master",0,[]]