:original_name: dcs-pd-190826001.html .. _dcs-pd-190826001: 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.** .. note:: - 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:: **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:: **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:: **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:: **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:: **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:: **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 | - | - | - | +------------------------------------------------+-------------------------------------------+-------------------------------------------------------+-------------------------------------------------------+