CLI
CLI Usage
Manage Liven from the command line.
Basic Commands
Liven provides a comprehensive CLI for managing your database server.
Start Server
liven startliven start --no-ui # Start without web interface
Stop Server
liven stop
Check Status
liven status
Shows server status including PID, ports, active connections, and broadcast subscribers.
Query Operations
List Streams
liven listliven list --auth-key YOUR_AUTH_KEY
Interactive Query Shell
liven vibeliven vibe --auth-key YOUR_AUTH_KEY
Tail Stream
liven tail "stream_name"liven tail "stream_name" --format jsonliven tail "stream_name" --auth-key YOUR_AUTH_KEY
Data Management
Import Data
liven import --path data.jsonlliven import --path data.jsonl --dry-runliven import --path data.jsonl --auth-key YOUR_AUTH_KEY
Export Data
liven export --stream "stream_name" --path output.jsonlliven export --all --path all_data.jsonlliven export --stream "stream_name" --auth-key YOUR_AUTH_KEY
Security Management
Reset Authentication Key
liven reset-key
Warning: This will invalidate all existing authentication keys and generate a new root key.
Advanced Usage
Environment Variables
# Set log level (info, debug, trace)RUST_LOG=debug liven start# Custom data directoryLIVEN_DATA_DIR=/custom/path liven start# Custom configuration fileliven start --config /path/to/liven.toml
Service Management
Liven integrates with system services for production deployments:
Linux (systemd)
# Install servicesudo cp liven.service /etc/systemd/system/sudo systemctl daemon-reloadsudo systemctl enable livensudo systemctl start liven# View logsjournalctl -u liven -f# Manage servicesudo systemctl stop livensudo systemctl restart livensudo systemctl status liven
macOS (launchd)
# Install launchd servicesudo cp com.livendb.liven.plist /Library/LaunchDaemons/sudo launchctl load /Library/LaunchDaemons/com.livendb.liven.plistsudo launchctl start com.livendb.liven# View logstail -f /usr/local/var/log/liven/stdout.log
Windows
# Using NSSM (recommended)nssm install Liven "C:\liven\liven.exe" startnssm set Liven AppStdout "C:\liven\logs\stdout.log"nssm set Liven AppStderr "C:\liven\logs\stderr.log"nssm start Liven# Using built-in service managersc create Liven binPath= "C:\liven\liven.exe start"sc start Liven