Updated on 2024-11-26 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 later 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

SLOWLOG

SORT

INCRBYFLOAT

LTRIM

SREM

ZREVRANK

ROLE

TTL

MGET

RPOP

SUNION

ZSCORE

SWAPDB

TYPE

MSET

RPOPLPU

SUNIONSTORE

ZUNIONSTORE

MEMORY

-

MSETNX

RPOPLPUSH

SSCAN

ZINTERSTORE

-

-

PSETEX

-

-

ZSCAN

-

-

SET

-

-

ZRANGEBYLEX

-

-

SETBIT

-

-

ZLEXCOUNT

-

-

SETEX

-

-

-

-

-

SETNX

-

-

-

-

-

SETRANGE

-

-

-

-

-

STRLEN

-

-

-

-

-

BITFIELD

-

-

-

-

Table 2 Commands supported by Web CLI (2)

Hash

HyperLoglog

Connection

Scripting

Geo

Pub/Sub

HDEL

PFADD

AUTH

EVAL

GEOADD

UNSUBSCRIBE

HEXISTS

PFCOUNT

ECHO

EVALSHA

GEOHASH

PUBLISH

HGET

PFMERGE

PING

SCRIPT EXISTS

GEOPOS

PUBSUB

HGETALL

-

QUIT

SCRIPT FLUSH

GEODIST

PUNSUBSCRIBE

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 Commands disabled in Web CLI (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

-

-

-

MODULE

-

-

Table 4 Commands disabled in Web CLI (2)

List

Connection

Sorted Set

Pub/Sub

BLPOP

SELECT

BZPOPMAX

PSUBSCRIBE

BRPOP

-

BZPOPMIN

SUBSCRIBE

BLMOVE

-

BZMPOP

-

BRPOPLPUSH

-

-

-

BLMPOP

-

-

-