redis-cli ACL SETUSER app on '>secret' '~app:*' +get +set

Category: Databases & SQL

redis-cli ACL SETUSER app on '>secret' '~app:*' +get +set

Create an ACL user with scoped access

Creates user app, enabled (on), with password secret (>secret), access limited to keys matching app:* (~app:*), and only the GET and SET commands allowed. The quotes stop the shell from interpreting > and *. Revoke with ACL DELUSER.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.