Skip to content

CLI Reference

FlagEnvironmentMeaning
--bindVAYLIX_BINDBind address. Default 127.0.0.1.
--portVAYLIX_PORTListener port. Default 9173.
--max-connectionsVAYLIX_MAX_CONNECTIONSMaximum concurrent sessions.
--sslVAYLIX_SSLEnable TLS for server transport. Disabled by default.
--tls-certVAYLIX_TLS_CERTPEM certificate chain, required when TLS is enabled.
--tls-keyVAYLIX_TLS_KEYPEM private key, required when TLS is enabled.
--tls-client-caVAYLIX_TLS_CLIENT_CAPEM CA bundle used to require and verify client certificates for mTLS.
--userVAYLIX_USERBootstrap/admin username. Default vaylix.
--passwordVAYLIX_PASSWORDBootstrap/admin password. Default vaylix.
--disable-authVAYLIX_DISABLE_AUTHDisable auth for trusted local testing only.
FlagEnvironmentMeaning
--data-dirVAYLIX_DATA_DIRPersistent data directory.
--backup-dirVAYLIX_BACKUP_DIRServer-local directory for logical backup files.
--wal-syncVAYLIX_WAL_SYNCWAL durability mode: buffered, flush, or sync.
--wal-segment-size-bytesVAYLIX_WAL_SEGMENT_SIZE_BYTESMax size of one WAL segment before rotation.
--wal-retain-segmentsVAYLIX_WAL_RETAIN_SEGMENTSNumber of sealed WAL segments retained after pruning.
--snapshot-interval-secondsVAYLIX_SNAPSHOT_INTERVAL_SECONDSPeriodic background snapshot interval.
--expiration-sweep-interval-secondsVAYLIX_EXPIRATION_SWEEP_INTERVAL_SECONDSBackground TTL sweeper interval.
--idle-timeout-secondsVAYLIX_IDLE_TIMEOUT_SECONDSDisconnect idle clients after this many seconds.
--audit-log-pathVAYLIX_AUDIT_LOG_PATHOverride audit log file path.
--slow-command-threshold-msVAYLIX_SLOW_COMMAND_THRESHOLD_MSThreshold for slow-command audit events. Use 0 to disable.
FlagEnvironmentMeaning
--disable-compressionVAYLIX_DISABLE_COMPRESSIONDisable default outbound zstd frame compression.
--max-request-payload-bytesVAYLIX_MAX_REQUEST_PAYLOAD_BYTESMax accepted post-framing payload size.
--max-key-bytesVAYLIX_MAX_KEY_BYTESMax key size.
--max-value-bytesVAYLIX_MAX_VALUE_BYTESMax value size in bytes.
--max-keys-per-batchVAYLIX_MAX_KEYS_PER_BATCHMax key count in multi-key commands.
--max-transaction-queue-lenVAYLIX_MAX_TRANSACTION_QUEUE_LENMax queued commands inside MULTI.
--requests-per-secondVAYLIX_REQUESTS_PER_SECONDSustained per-connection request rate.
--request-burstVAYLIX_REQUEST_BURSTBurst budget for the token-bucket limiter.
--transaction-max-secondsVAYLIX_TRANSACTION_MAX_SECONDSMaximum open transaction lifetime before automatic discard.
--auth-failure-window-secondsVAYLIX_AUTH_FAILURE_WINDOW_SECONDSRolling auth failure window.
--auth-failure-limitVAYLIX_AUTH_FAILURE_LIMITMaximum failures before lockout.
--auth-lockout-secondsVAYLIX_AUTH_LOCKOUT_SECONDSLockout duration after exceeding the auth failure limit.
FlagEnvironmentMeaning
--replication-roleVAYLIX_REPLICATION_ROLENode role: standalone, leader, or follower.
--node-idVAYLIX_NODE_IDStable node identifier used in cluster and replication metadata.
--replication-group-idVAYLIX_REPLICATION_GROUP_IDStable cluster or replication group identifier.
--replication-advertise-addrVAYLIX_REPLICATION_ADVERTISE_ADDRPeer-reachable address advertised by this node.
--replication-upstreamVAYLIX_REPLICATION_UPSTREAMInitial upstream source used by followers for catch-up.
--replication-userVAYLIX_REPLICATION_USERUsername used by peer replication traffic.
--replication-passwordVAYLIX_REPLICATION_PASSWORDPassword used by peer replication traffic.
--write-ack-modeVAYLIX_WRITE_ACK_MODEClient-visible durability mode: local, replica / majority, or all.
--replication-ack-timeout-msVAYLIX_REPLICATION_ACK_TIMEOUT_MSMaximum wait for quorum/follower acknowledgement.
--replication-poll-interval-msVAYLIX_REPLICATION_POLL_INTERVAL_MSFollower catch-up polling interval.
--replication-fetch-batch-sizeVAYLIX_REPLICATION_FETCH_BATCH_SIZEMaximum WAL entries fetched per replication round trip.
--replication-stale-after-secondsVAYLIX_REPLICATION_STALE_AFTER_SECONDSLag threshold before follower health degrades.
--replication-heartbeat-interval-msVAYLIX_REPLICATION_HEARTBEAT_INTERVAL_MSLeader heartbeat interval.
--replication-election-timeout-min-msVAYLIX_REPLICATION_ELECTION_TIMEOUT_MIN_MSLower bound for election timeout.
--replication-election-timeout-max-msVAYLIX_REPLICATION_ELECTION_TIMEOUT_MAX_MSUpper bound for election timeout.
--cluster-peersVAYLIX_CLUSTER_PEERSStatic peers in node_id@host:port form; repeated or comma-delimited.
Terminal window
vaylix storage verify --data-dir /var/lib/vaylix
vaylix storage migrate --data-dir /var/lib/vaylix
  • storage verify validates current persisted storage
  • storage migrate upgrades legacy monolithic wal.log storage into the segmented WAL layout
Terminal window
vaylix pitr inspect --data-dir /var/lib/vaylix
vaylix pitr restore \
--source-dir /var/lib/vaylix \
--target-dir /tmp/vaylix-restore \
--to-sequence 1234

You can target either --to-sequence or --to-timestamp-ms.

FlagMeaning
--urlFull connection string, for example vaylix://user:password@127.0.0.1:9173.
--hostHost when --url is not used. Default 127.0.0.1.
--portPort when --url is not used. Default 9173.
--sslEnable TLS. Plain TCP is used by default.
--tls-ca-certCustom CA bundle for server verification.
--tls-client-certClient certificate chain used for mTLS. Requires TLS and --tls-client-key.
--tls-client-keyClient private key used for mTLS. Requires TLS and --tls-client-cert.
--userUsername override.
--passwordPassword override.
--disable-authSkip automatic AUTH on connect.
--outputplain, table, or json.
--disable-compressionDisable default outbound zstd frame compression.
vaylix://user:password@127.0.0.1:9173?ssl=true&output=json&compression=zstd

Supported URL query parameters:

  • ssl=true
  • output=plain|table|json
  • ca_cert=/path/to/ca.pem
  • client_cert=/path/to/client.crt
  • client_key=/path/to/client.key
  • auth=false
  • compression=none|zstd

CLI flags override values parsed from the URL.