Shell Completions¶
Enable tab completion for redisctl commands.
Generate Completions¶
Supported shells: bash, zsh, fish, powershell
Installation¶
Usage¶
After installation, press Tab to complete:
# Complete commands
redisctl ent<Tab>
# → redisctl enterprise
# Complete subcommands
redisctl enterprise cl<Tab>
# → redisctl enterprise cluster
# Complete options
redisctl enterprise cluster get --<Tab>
# → --output --query --profile ...
Homebrew Users¶
If you installed via Homebrew, completions may be automatically available. If not:
# Bash
echo 'source $(brew --prefix)/etc/bash_completion.d/redisctl' >> ~/.bashrc
# Zsh
echo 'source $(brew --prefix)/share/zsh/site-functions/_redisctl' >> ~/.zshrc
Troubleshooting¶
Completions Not Working¶
-
Verify the file was created:
-
Check your shell's completion system is enabled:
-
Restart your shell or source the completion file.
Zsh: Command Not Found: compinit¶
Add to your ~/.zshrc: