Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Environment Variables

Complete reference of environment variables supported by redisctl.

Redis Cloud

VariableDescriptionExample
REDIS_CLOUD_API_KEYAPI account keyA3qcymrvqpn9rr...
REDIS_CLOUD_API_SECRETAPI secret keyS3s8ecrrnaguqk...
REDIS_CLOUD_API_URLAPI endpoint (optional)https://api.redislabs.com/v1

Redis Enterprise

VariableDescriptionExample
REDIS_ENTERPRISE_URLCluster API URLhttps://cluster:9443
REDIS_ENTERPRISE_USERUsernameadmin@cluster.local
REDIS_ENTERPRISE_PASSWORDPasswordyour-password
REDIS_ENTERPRISE_INSECUREAllow self-signed certstrue or false

General

VariableDescriptionExample
REDISCTL_PROFILEDefault profile nameproduction
REDISCTL_OUTPUTDefault output formatjson, yaml, table
RUST_LOGLogging levelerror, warn, info, debug
NO_COLORDisable colored output1 or any value

Usage Examples

Basic Setup

# Redis Cloud
export REDIS_CLOUD_API_KEY="your-key"
export REDIS_CLOUD_API_SECRET="your-secret"

# Redis Enterprise
export REDIS_ENTERPRISE_URL="https://localhost:9443"
export REDIS_ENTERPRISE_USER="admin@cluster.local"
export REDIS_ENTERPRISE_PASSWORD="password"
export REDIS_ENTERPRISE_INSECURE="true"

Debugging

# Enable debug logging
export RUST_LOG=debug
redisctl api cloud get /

# Trace specific modules
export RUST_LOG=redisctl=debug,redis_cloud=trace

CI/CD

# GitHub Actions
env:
  REDIS_CLOUD_API_KEY: ${{ secrets.REDIS_API_KEY }}
  REDIS_CLOUD_API_SECRET: ${{ secrets.REDIS_API_SECRET }}

Precedence

Environment variables are overridden by:

  1. Command-line flags (highest priority)
  2. Configuration file settings

But override:

  1. Default values (lowest priority)