| Crates.io | solt |
| lib.rs | solt |
| version | 0.1.0 |
| created_at | 2025-07-06 07:01:26.375059+00 |
| updated_at | 2025-07-06 07:01:26.375059+00 |
| description | A comprehensive Redis CLI management tool |
| homepage | |
| repository | https://github.com/Execute-Soft/solt |
| max_upload_size | |
| id | 1739873 |
| size | 159,749 |
A comprehensive Redis CLI management tool built in Rust that provides powerful Redis administration capabilities with a modern, user-friendly interface.
git clone <repository-url>
cd solt
cargo build --release
cargo install --path .
# Connect to default Redis instance
solt connect
# Connect to specific Redis instance
solt connect --host redis.example.com --port 6379 --password mypassword
# Test connection only
solt connect --test
# List all keys
solt keys
# List keys with pattern
solt keys "user:*"
# Detailed key information
solt keys --detailed
# Count keys only
solt keys --count
# Get string value
solt get mykey
# Get with pretty JSON formatting
solt get mykey --pretty
# Get hash field
solt get myhash --hash-field "key:field"
# Get list range
solt get mylist --list-range "0-10"
# Set string value
solt set mykey "my value"
# Set with TTL
solt set mykey "my value" --ttl 3600
# Set hash field
solt set myhash --hash-field "key:field:value"
# Push to list
solt set mylist "new item" --push-list "right"
# Add to set
solt set myset --add-set "new member"
# Add to sorted set
solt set myzset --add-zset "member:10.5"
# Real-time monitoring
solt monitor
# Show slow log
solt monitor --slowlog
# Show connected clients
solt monitor --clients
# Delete single key
solt delete mykey
# Delete by pattern (with confirmation)
solt delete --pattern "temp:*" --confirm
# Flush current database
solt delete --flush-db --confirm
# Show current configuration
solt config --show
# Add new environment
solt config --add-env production
# Set default environment
solt config --set-default production
# Set output format
solt config --output-format json
The configuration is stored in ~/.solt/config.toml:
default_environment = "dev"
history_size = 1000
output_format = "table"
[environments.dev]
name = "dev"
host = "localhost"
port = 6379
password = ""
db = 0
timeout = 30
tls = false
[environments.production]
name = "production"
host = "redis.prod.com"
port = 6379
password = "secret"
db = 0
timeout = 30
tls = true
favorites = [
"user:profile:*",
"session:*",
"cache:*"
]
# Bulk delete keys
solt bulk delete "temp:*" --confirm
# Copy keys between databases
solt copy source_key dest_key --source-env dev --dest-env staging
# Export to JSON
solt export json --output data.json --pattern "user:*"
# Export to CSV
solt export csv --output data.csv --pattern "session:*"
# Show cluster nodes
solt cluster --nodes
# Show cluster slots
solt cluster --slots
# Subscribe to channel
solt pubsub --subscribe "notifications"
# Publish message
solt pubsub --publish "notifications" "Hello World!"
connect - Connect to Redis instanceconfig - Manage configurationskeys - List and inspect keysinspect - Detailed key inspectionget - Get values from keysset - Set values in keysdelete - Delete keyssearch - Search keys by patternfilter - Filter keys by criteriamonitor - Real-time monitoringstats - Get Redis statisticsdebug - Debug operationsbulk - Bulk operationscopy - Copy between databasesbackup - Backup operationsexport - Export datapubsub - Pub/Sub operationscluster - Cluster operationssentinel - Sentinel operationsfavorites - Manage favoriteshistory - Command history# 1. Connect to development Redis
solt connect --environment dev
# 2. List all keys
solt keys
# 3. Get specific user data
solt get "user:123" --pretty
# 4. Set cache data
solt set "cache:user:123" '{"name":"John","email":"john@example.com"}' --ttl 3600
# 5. Monitor operations
solt monitor
# 1. Connect to production
solt connect --environment prod
# 2. Check memory usage
solt stats --memory
# 3. Monitor slow queries
solt monitor --slowlog --slowlog-count 20
# 4. Check connected clients
solt monitor --clients
# 5. Export data for analysis
solt export json --output backup.json --pattern "user:*"
The application provides comprehensive error handling:
MIT License - see LICENSE file for details.
For issues and questions:
Solt - Redis CLI Management Tool - Making Redis administration simple and powerful! 🚀