redisctl
A unified command-line interface for managing Redis Cloud and Redis Enterprise deployments through their REST APIs.
Features
- Unified Interface - Single CLI for both Redis Cloud and Redis Enterprise
- Support Package Management - Generate, optimize, and upload diagnostic packages to Redis Support
- Async Operations - Full support for long-running operations with
--wait
flags - Explicit Commands - Clear separation between Cloud and Enterprise operations
- Multiple Output Formats - JSON, YAML, and Table output with JMESPath filtering
- Profile Management - Secure credential storage with environment variable support
Installation
Homebrew (macOS/Linux)
From Binary Releases
Download the latest release for your platform from the releases page.
From Cargo
Using Docker
Quick Start
1. Configure Authentication
# Redis Cloud
# Redis Enterprise
Or use profiles for multiple environments:
# Create a profile with plaintext storage (default)
# Create a profile with secure OS keyring storage (recommended)
# Use the profile
Profile Storage
Profiles are stored in:
- Linux/macOS:
~/.config/redisctl/config.toml
- Windows:
%APPDATA%\redis\redisctl\config.toml
Secure Credential Storage
When compiled with the secure-storage
feature, redisctl can store sensitive credentials in your OS keyring:
- macOS: Keychain
- Windows: Windows Credential Store
- Linux: Secret Service (GNOME Keyring, KWallet)
To use secure storage:
# Install with secure storage support
# Create profile with keyring storage
# The config file will contain references like:
# api_key = "keyring:prod-api-key"
# api_secret = "keyring:prod-api-secret"
Example configuration file:
= "cloud-prod"
[]
= "cloud"
= "${REDIS_CLOUD_API_KEY}"
= "${REDIS_CLOUD_API_SECRET}"
[]
= "enterprise"
= "https://localhost:9443"
= "admin@redis.local"
= "${REDIS_ENTERPRISE_PASSWORD}"
= true
2. Verify Setup & First Commands
# Test your connection
# View your configuration
# Common first commands
# Get detailed output
|
# Create resources and wait for completion
3. Generate and Upload Support Packages
Generate diagnostic support packages for Redis Enterprise clusters and optionally upload them directly to Redis Support:
# Generate cluster support package
# Generate optimized package (reduces size by ~20-30%)
# Generate and upload to Redis Support (Files.com)
# Upload without saving locally
# Optimize and upload in one command
# Database-specific support package
# Store Files.com API key securely (requires secure-storage feature)
Using with Docker
# Run commands directly with Docker
# Use local config file
# Development environment with test cluster
See the Docker documentation for advanced usage.
Documentation
For comprehensive documentation including:
- Detailed configuration options
- Complete command reference
- Async operation handling
- Output formatting and filtering
- Troubleshooting guides
Visit the full documentation.
Development
Building from Source
Running Tests
Contributing
Contributions are welcome! Please see the contributing guidelines in the documentation.
License
Licensed under either of:
- Apache License, Version 2.0 (LICENSE-APACHE)
- MIT license (LICENSE-MIT)
at your option.