Skip to content

Command Reference

This page covers the current server-recognized commands and the guarantees or caveats attached to each group.

Since version: 0.1.0; binary-safe values and version-based CAS were added in 0.8.0.

Caveat: Vaylix is not Redis-compatible. Command names, reply shapes, and semantics are Vaylix-specific.

auth <username> <password>
ping [message]
info
metrics
metrics prom
health
  • auth authenticates the current session when auth is enabled
  • ping returns PONG or the provided message
  • info returns deterministic key/value sections such as server.*, transport.*, persistence.*, and security.*
  • metrics returns numeric metrics
  • metrics prom returns Prometheus exposition text
  • health returns machine-readable readiness and role state
get <key>
set <key> <value> [nx|xx] [if version <version>] [ex <seconds>|px <millis>] [keepttl] [get]
setnx <key> <value>
getdel <key>
getex <key> [ex <seconds>|px <millis>|persist]
mget <key> [key ...]
mset <key> <value> [key value ...]
del <key> [key ...]
delete <key> [key ...]
exists <key>

Keys are UTF-8 strings. Values are opaque bytes. Text CLI examples send UTF-8, but binary clients and the SDK can send arbitrary byte payloads.

SET ... IF VERSION <version> is the compare-and-set primitive. It succeeds only when the current stored version matches the expected version.

incr <key>
decr <key>
expire <key> <seconds>
ttl <key>
persist <key>

INCR and DECR operate on UTF-8 encoded signed integers. Invalid integer values return structured server errors rather than silent coercion.

rename <source> <destination>
renamenx <source> <destination>
scan <cursor> [match <pattern>] [count <n>]
dbsize
count
list
clear
flushdb
save
snapshot

scan is cursor-based and returns deterministic sorted key order.

clear / flushdb requires the clear permission when RBAC is enabled.

backup
backup to <path>
backup verify <logical-dump-json>
backup verify from <path>
restore <logical-dump-json>
restore from <path>
restore check <logical-dump-json>
restore check from <path>

restore replaces the current keyspace with the validated logical backup.

Known limitation:

  • restore is single-node engine replacement, not a distributed transaction surface
multi
exec
discard

Transactions are serialized leader-side execution over a queued command list.

Current limits:

  • no MVCC
  • no distributed transactions
  • no isolation-level selection
  • pipelined/sequence-tagged requests are rejected while a transaction is active
create user <username> password <password>
alter user <username> password <password>
drop user <username>
create role <role>
drop role <role>
grant role <role> to <username>
revoke role <role> from <username>
grant permission <permission> [on <pattern>] to <role>
revoke permission <permission> [on <pattern>] from <role>
show users
show roles
show grants
show grants for user <username>
show grants for role <role>
whoami

Password policy currently requires at least 12 characters with at least one ASCII letter and one ASCII digit.

Maintenance and replication administration

Section titled “Maintenance and replication administration”
maintenance on
maintenance off
maintenance status
show cluster
show replication
cluster join <node-id> <host:port>
cluster remove <node-id>
promote follower
pause replication
resume replication

These commands are for operator workflows. Application traffic should normally target the current leader and avoid direct control-plane mutation.

help
exit
quit

These are handled by the interactive client and are not sent to the server.