Environment Variables
Complete reference of environment variables supported by redisctl.
Redis Cloud
| Variable |
Description |
Example |
REDIS_CLOUD_API_KEY |
API account key |
A3qcymrvqpn9rr... |
REDIS_CLOUD_SECRET_KEY |
API secret key |
S3s8ecrrnaguqk... |
REDIS_CLOUD_API_URL |
API endpoint (optional) |
https://api.redislabs.com/v1 |
Redis Enterprise
| Variable |
Description |
Example |
REDIS_ENTERPRISE_URL |
Cluster API URL |
https://cluster:9443 |
REDIS_ENTERPRISE_USER |
Username |
admin@cluster.local |
REDIS_ENTERPRISE_PASSWORD |
Password |
your-password |
REDIS_ENTERPRISE_INSECURE |
Allow self-signed certs |
true or false |
| Variable |
Description |
Example |
REDIS_ENTERPRISE_FILES_API_KEY |
Files.com API key |
your-files-api-key |
General
| Variable |
Description |
Example |
REDISCTL_PROFILE |
Default profile name |
production |
REDISCTL_OUTPUT |
Default output format |
json, yaml, table |
RUST_LOG |
Logging level |
error, warn, info, debug |
NO_COLOR |
Disable colored output |
1 or any value |
Usage Examples
Basic Setup
Debugging
# Enable debug logging
export RUST_LOG=debug
redisctl api cloud get /subscriptions
# Trace specific modules
export RUST_LOG=redisctl=debug,redis_cloud=trace
CI/CD
Precedence
From highest to lowest priority:
- Command-line flags - Always win
- Environment variables - Override profiles
- Profile settings - From config file
- Default values - Built-in defaults