Updated on 2022-08-06 GMT+08:00

Web CLI Commands

Web CLI is a command line tool provided on the DCS console. This section describes Web CLI's compatibility with Redis commands, including supported and disabled commands. For details about the command syntax, visit the Redis official website.

Currently, only DCS for Redis 4.0 and 5.0 support Web CLI.

  • Keys and values cannot contain spaces.
  • If the value is empty, nil is returned after the GET command is executed.

Commands Supported by Web CLI

The following lists the commands supported when you use Web CLI.

Table 1 Commands supported by Web CLI (1)

Keys

String

List

Set

Sorted Set

Server

DEL

APPEND

RPUSH

SADD

ZADD

FLUSHALL

OBJECT

BITCOUNT

RPUSHX

SCARD

ZCARD

FLUSHDB

EXISTS

BITOP

BRPOPLRUSH

SDIFF

ZCOUNT

DBSIZE

EXPIRE

BITPOS

LINDEX

SDIFFSTORE

ZINCRBY

TIME

MOVE

DECR

LINSERT

SINTER

ZRANGE

INFO

PERSIST

DECRBY

LLEN

SINTERSTORE

ZRANGEBYSCORE

CLIENT KILL

PTTL

GET

LPOP

SISMEMBER

ZRANK

CLIENT LIST

RANDOMKEY

GETRANGE

LPUSHX

SMEMBERS

ZREMRANGEBYRANK

CLIENT GETNAME

RENAME

GETSET

LRANGE

SMOVE

ZREMRANGEBYCORE

CLIENT SETNAME

RENAMENX

INCR

LREM

SPOP

ZREVRANGE

CONFIG GET

SCAN

INCRBY

LSET

SRANDMEMBER

ZREVRANGEBYSCORE

MONITOR

SORT

INCRBYFLOAT

LTRIM

SREM

ZREVRANK

SLOWLOG

TTL

MGET

RPOP

SUNION

ZSCORE

ROLE

TYPE

MSET

RPOPLPU

SUNIONSTORE

ZUNIONSTORE

SWAPDB

-

MSETNX

RPOPLPUSH

SSCAN

ZINTERSTORE

MEMORY

-

PSETEX

-

SPOP

ZSCAN

-

-

SET

-

-

ZRANGEBYLEX

-

-

SETBIT

-

-

ZLEXCOUNT

-

-

SETEX

-

-

-

-

-

SETNX

-

-

-

-

-

SETRANGE

-

-

-

-

-

STRLEN

-

-

-

-

-

BITFIELD

-

-

-

-

Table 2 Commands supported by Web CLI (2)

Hash

HyperLoglog

Connection

Scripting

Geo

HDEL

PFADD

AUTH

EVAL

GEOADD

HEXISTS

PFCOUNT

ECHO

EVALSHA

GEOHASH

HGET

PFMERGE

PING

SCRIPT EXISTS

GEOPOS

HGETALL

-

QUIT

SCRIPT FLUSH

GEODIST

HINCRBY

-

-

SCRIPT KILL

GEORADIUS

HINCRBYFLOAT

-

-

SCRIPT LOAD

GEORADIUSBYMEMBER

HKEYS

-

-

-

-

HMGET

-

-

-

-

HMSET

-

-

-

-

HSET

-

-

-

-

HSETNX

-

-

-

-

HVALS

-

-

-

-

HSCAN

-

-

-

-

HSTRLEN

-

-

-

-

Commands Disabled in Web CLI

The following lists the commands disabled when you use Web CLI.

Table 3 Redis commands disabled in Web CLI for single-node and master/standby instances (1)

Keys

Server

Transactions

Pub/Sub

MIGRATE

SLAVEOF

UNWATCH

PSUBSCRIBE

WAIT

SHUTDOWN

REPLICAOF

PUBLISH

DUMP

DEBUG commands

DISCARD

PUBSUB

RESTORE

CONFIG SET

EXEC

PUNSUBSCRIBE

-

CONFIG REWRITE

MULTI

SUBSCRIBE

-

CONFIG RESETSTAT

WATCH

UNSUBSCRIBE

-

SAVE

-

-

-

BGSAVE

-

-

-

BGREWRITEAOF

-

-

-

COMMAND

-

-

-

KEYS

-

-

-

MONITOR

-

-

-

SYNC

-

-

-

PSYNC

-

-

-

ACL

-

-

Table 4 Redis commands disabled in Web CLI for single-node and master/standby instances (2)

List

Connection

Sorted Set

BLPOP

SELECT

BZPOPMAX

BRPOP

-

BZPOPMIN

BLMOVE

-

BZMPOP

BRPOPLPUSH

-

-

BLMPOP

-

-

Table 5 Redis commands disabled in Web CLI for Redis Cluster instances (1)

Keys

Server

Transactions

Cluster

MIGRATE

SLAVEOF

UNWATCH

CLUSTER MEET

WAIT

SHUTDOWN

REPLICAOF

CLUSTER FLUSHSLOTS

DUMP

DEBUG commands

DISCARD

CLUSTER ADDSLOTS

RESTORE

CONFIG SET

EXEC

CLUSTER DELSLOTS

-

CONFIG REWRITE

MULTI

CLUSTER SETSLOT

-

CONFIG RESETSTAT

WATCH

CLUSTER BUMPEPOCH

-

SAVE

-

CLUSTER SAVECONFIG

-

BGSAVE

-

CLUSTER FORGET

-

BGREWRITEAOF

-

CLUSTER REPLICATE

-

COMMAND

-

CLUSTER COUNT-FAILURE-REPORTS

-

KEYS

-

CLUSTER FAILOVER

-

MONITOR

-

CLUSTER SET-CONFIG-EPOCH

-

SYNC

-

CLUSTER RESET

-

PSYNC

-

-

-

ACL

-

-

Table 6 Redis commands disabled in Web CLI for Redis Cluster instances (2)

Pub/Sub

List

Connection

Sorted Set

PSUBSCRIBE

BLPOP

SELECT

BZPOPMAX

PUBLISH

BRPOP

-

BZPOPMIN

PUBSUB

BLMOVE

-

BZMPOP

PUNSUBSCRIBE

BRPOPLPUSH

-

-

SUBSCRIBE

BLMPOP

-

-

UNSUBSCRIBE

-

-

-