redisctl
A unified CLI for Redis Cloud and Redis Enterprise REST APIs with comprehensive async operation support.
Features
- Unified Interface - Single CLI for both Redis Cloud and Redis Enterprise
- Async Operations - Full support for long-running operations with
--wait
flags - Smart Routing - Automatically detects which API to use based on context
- Multiple Output Formats - JSON, YAML, and Table output with JMESPath filtering
- Secure Configuration - Profile-based auth with environment variable support
- Comprehensive Coverage - Full API coverage for both platforms
Installation
# Install from crates.io
# Or build from source
Quick Start
Configure Authentication
Create ~/.config/redisctl/config.toml
:
[]
= "cloud"
= "your-api-key"
= "your-secret-key"
[]
= "enterprise"
= "https://cluster:9443"
= "admin@example.com"
= "your-password"
= "cloud"
Or use environment variables:
# Redis Cloud
# Redis Enterprise
Basic Usage
Database Operations
# List databases
# Create database with async wait
# Update database with wait
# Different output formats with filtering
|
# Delete database with force and wait
Output Formats
# JSON output (default)
# YAML output
# Human-readable table
# Filter with JMESPath
# Combine with jq for advanced processing
|
Profile Management
# List all profiles
# Set default profile
# Get specific profile settings
# Set profile values
# Remove profile
# Use specific profile for a command
Environment Variables
Cloud Configuration
REDIS_CLOUD_API_KEY
- API key for authenticationREDIS_CLOUD_API_SECRET
- API secret for authenticationREDIS_CLOUD_API_URL
- Custom API URL (optional)
Enterprise Configuration
REDIS_ENTERPRISE_URL
- Cluster API URLREDIS_ENTERPRISE_USER
- Username for authenticationREDIS_ENTERPRISE_PASSWORD
- Password for authenticationREDIS_ENTERPRISE_INSECURE
- Allow insecure TLS (true/false)
General Configuration
REDISCTL_PROFILE
- Default profile to useRUST_LOG
- Logging level (error, warn, info, debug, trace)
Documentation
For comprehensive documentation, see the mdBook documentation:
- Getting Started - Installation and configuration
- CLI Reference - Complete command reference
- Async Operations - Using
--wait
flags - Examples - Common use cases and patterns
- API Reference - Complete command reference
Development
This project provides Rust client libraries for both APIs:
[]
= "0.2" # Redis Cloud API client
= "0.2" # Redis Enterprise API client
See CONTRIBUTING.md for development guidelines.
License
This project is licensed under the MIT License - see LICENSE file for details.