redisctl
A modern CLI for Redis Cloud and Redis Enterprise — Automate deployments, manage resources, and troubleshoot issues from one unified interface.
# Create a Redis Cloud subscription with one command
# Stream logs in real-time
# Generate and upload support packages
Why redisctl?
Managing Redis Cloud and Redis Enterprise through REST APIs means juggling curl commands, parsing JSON, and manually polling for operation completion. redisctl eliminates that friction.
What You Get
- One CLI for Everything — Manage both Redis Cloud and Enterprise from a single tool
- Intelligent Async Handling —
--waitflags automatically poll long-running operations - Real-Time Streaming — Tail logs and metrics with
--follow - Automated Workflows — High-level commands like
subscription-setuphandle complex tasks - Smart Output — Tables for humans, JSON for scripts, with JMESPath filtering built-in
- Production Ready — Secure credential storage, profile management, and comprehensive error handling
Quick Start
1. Install
# Homebrew (macOS/Linux)
# Cargo
# Or download from releases
# https://github.com/joshrotenberg/redisctl/releases
2. Configure
# Redis Cloud
# Redis Enterprise
3. Run Your First Commands
# List all databases
# Get cluster info in table format
# Create a database and wait for it to be ready
# Stream cluster logs
That's it! You're ready to manage your Redis deployments.
Feature Showcase
Async Operations Made Easy
No more manual polling. The --wait flag handles it automatically:
# Old way: Create and manually check status
# Wait...check status...wait...check again...
# New way: Create and wait automatically
# ✓ Database created and ready in 45s
Flexible Output Formats
# Human-friendly tables
# Machine-readable JSON
# Filter with JMESPath
High-Level Workflows
Complex multi-step operations in one command:
# Set up a complete subscription with databases, ACLs, and networking
# Results in:
# ✓ Subscription created
# ✓ VPC peering configured
# ✓ Databases provisioned
# ✓ ACL rules applied
# ✓ Ready for production
Real-Time Streaming
Monitor your infrastructure live:
# Tail cluster logs
# Watch with custom poll interval
Support Package Automation
Generate diagnostic packages and upload to Redis Support in one step:
# Generate, optimize, and upload cluster diagnostics
# Saves 20-30% space and uploads directly to Files.com
# ✓ Package generated (542 MB)
# ✓ Optimized to 389 MB
# ✓ Uploaded to Redis Support
Real-World Examples
Scenario: Deploy a New Database
# 1. Check available subscriptions
# 2. Create database config
# 3. Create and wait for provisioning
|
# Output:
# {
# "id": 67890,
# "endpoint": "redis-12345.c1.us-east-1-1.ec2.redislabs.com:12000"
# }
Scenario: Troubleshoot Cluster Issues
# 1. Check cluster health
# 2. Stream logs for errors
|
# 3. Generate support package if needed
# 4. Check specific node
Scenario: Automate Database Backups
#!/bin/bash
# backup-all-databases.sh
# Get all active databases
databases=
# Backup each one
| | while ; do
done
Scenario: Manage Active-Active (CRDB) Databases
# Create Active-Active database across multiple regions
# Add a new region
# Monitor replication status
Installation
Homebrew (macOS/Linux)
Cargo (Rust)
# Basic installation
# With secure keyring support (recommended)
Binary Releases
Download the latest release for your platform from GitHub Releases.
Binaries are available for:
- macOS (Intel and Apple Silicon)
- Linux (x86_64 and ARM64)
- Windows (x86_64)
Docker
# Run directly
# Mount config for persistent profiles
# Development environment
Configuration
Environment Variables
The fastest way to get started:
# Redis Cloud
# Redis Enterprise
# For self-signed certs
Profiles
For managing multiple environments:
# Create profiles
# List profiles
# Use a specific profile
# Set default
Secure Storage
Store credentials in your OS keyring instead of plain text:
# Requires: cargo install redisctl --features secure-storage
Config file location:
- Linux/macOS:
~/.config/redisctl/config.toml - Windows:
%APPDATA%\redis\redisctl\config.toml
Key Features
Complete API Coverage
Redis Cloud — 100% coverage of Cloud API v1:
- Subscriptions (Pro and Essentials)
- Databases (flexible and fixed)
- VPC Peering, Transit Gateway, PrivateLink, Private Service Connect
- ACLs, Users, Cloud Accounts
- Tasks and Async Operations
Redis Enterprise — 100% coverage of Enterprise API v1/v2:
- Clusters, Nodes, Shards
- Databases (BDBs), Active-Active (CRDBs)
- Users, Roles, LDAP
- Logs, Metrics, Alerts
- Support Packages, Diagnostics
Raw API Access
For any endpoint not yet wrapped in a high-level command:
# Redis Cloud
# Redis Enterprise
Advanced Output Control
# JMESPath filtering
# Multiple output formats
|
Documentation
Contributing
Contributions welcome! See our Contributing Guide.
# Clone and build
# Run tests
# Check code
License
Licensed under either of:
- Apache License, Version 2.0 (LICENSE-APACHE)
- MIT license (LICENSE-MIT)
at your option.