Docs › Commands › ServerROLESince 1.1.0ServerSyntaxROLEFlags: fastACL categories: @dangerous, @fast, @serverArity: 1Returns the server's replication role: master with its offset and replicas, or slave with its master and state. Examples > ROLE 1) "master" 2) (integer) 0 3) (empty array) Related commandsREPLICAOFSAVEREPLCONFSELECTPSYNCSHUTDOWNMONITORSLAVEOFMODULESYNC