Redis Cloud¶
Redis Cloud is Redis's fully managed database service. redisctl provides complete CLI access to the Redis Cloud API.
Three-Tier Access¶
graph LR
A[API Layer] --> B[Commands]
B --> C[Workflows]
style A fill:#e5c07b,color:#000
style B fill:#98c379,color:#000
style C fill:#61afef,color:#000
1. API Layer¶
Direct REST access for scripting and automation:
2. Commands¶
Human-friendly commands for day-to-day operations:
redisctl cloud subscription list
redisctl cloud database create --subscription 123 --data @db.json --wait
3. Workflows¶
Multi-step operations:
Key Concepts¶
Subscriptions¶
Subscriptions are the top-level container for databases. They define:
- Cloud provider (AWS, GCP, Azure)
- Region
- Memory allocation
- Networking configuration
Databases¶
Databases run within subscriptions. Each database has:
- Memory limit
- Modules (RedisJSON, RediSearch, etc.)
- Persistence settings
- Access credentials
Tasks¶
Most operations are async and return task IDs. Use --wait to block until completion.
Authentication¶
Getting API Keys
Get your API keys from app.redislabs.com under Access Management > API Keys.
Quick Examples¶
# List subscriptions
redisctl cloud subscription list -o table
# Create database and wait
redisctl cloud database create \
--subscription 123456 \
--name cache \
--memory-limit-in-gb 1 \
--wait
# Get database connection info
redisctl cloud database get 123456 789 \
-o json -q '{endpoint: publicEndpoint, password: password}'
# Set up VPC peering
redisctl cloud vpc-peering create \
--subscription 123456 \
--data @peering.json \
--wait
Command Groups¶
Next Steps¶
- Workflows - Multi-step operations
- Cloud Cookbook - Practical recipes