[FEATURE] Add shell completion support (bash/zsh/fish) for claude CLI
Resolved 💬 3 comments Opened May 10, 2026 by mtoumi990 Closed May 10, 2026
Feature Request
Add a built-in shell completion generator for the claude CLI, similar to how other CLI tools handle this:
kubectl completion zshgh completion -s zshhelm completion bash
Proposed command
claude completion bash
claude completion zsh
claude completion fish
Usage
# zsh
source <(claude completion zsh)
# bash
source <(claude completion bash)
Why
Claude Code has a growing number of subcommands (agents, auth, mcp, plugin, project, install, ultrareview, etc.) and flags (--model, --effort, --print, --worktree, --mcp-config, etc.). Tab completion would make the CLI significantly more discoverable and faster to use, especially for less frequently used options.
Environment
- Platform: macOS (darwin)
- Version: 2.1.138
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗