cflare completion

Shell Autocompletions

CLI UX

Generate high-speed tab autocompletions for Bash, Zsh, and Fish shells.

$ cflare completion [bash|zsh|fish]

📖 Full Explanation

Max out terminal productivity with intelligent command and flag tab completion. \1 generates optimized scripts for your active shell, giving you instant tab suggestions for all 28+ subcommands and flags.

⚙️ Command Options & Flags

Option / Flag Description Default
bash Generate Bash completion script for ~/.bashrc -
zsh Generate Zsh completion script for ~/.zshrc -
fish Generate Fish completion script for ~/.config/fish/completions/cflare.fish -

🔬 Technical Corollary & Edge Mechanics

Outputs a native shell completion function compatible with \1 in Zsh, \1 in Bash, and Fish's completion engine.

🎯 Real-World DevOps Use Cases

Zsh Autocompletion Setup

Enable tab completions in macOS or modern Linux Zsh shells with one command.

$ eval "$(cflare completion zsh)"

Persistent Bash Autocompletion

Persist autocompletions across terminal restarts.

$ cflare completion bash >> ~/.bashrc

💻 Live Output Simulation

$ cflare completion zsh
#compdef cflare
_cflare() {
  local -a commands
  commands=(
    'ai:Run cutting-edge edge AI inference, code generation & teams'
    'traffic:Live HTTP traffic tracking for a domain'
    'shield:Manage DDoS mitigation and Under Attack mode'
    'tunnel:Zero Trust Cloudflare Tunnels'
  )
  _describe 'command' commands
}
compdef _cflare cflare