# grepai completion

> CLI reference for grepai completion

## grepai completion

Generate shell completion scripts

### Synopsis

Generate shell completion scripts for grepai.

Zsh:

  # Method 1: eval (add to ~/.zshrc)
  eval "$(grepai completion zsh)"

  # Method 2: Oh-My-Zsh
  mkdir -p ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/grepai
  grepai completion zsh > ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/grepai/_grepai
  # Then add "grepai" to plugins=(...) in ~/.zshrc

  # Method 3: Manual fpath
  grepai completion zsh > "${fpath[1]}/_grepai"
  # Then restart your shell

Bash:

  # Linux
  grepai completion bash > /etc/bash_completion.d/grepai

  # macOS (requires bash-completion@2)
  grepai completion bash > $(brew --prefix)/etc/bash_completion.d/grepai

Fish:

  grepai completion fish > ~/.config/fish/completions/grepai.fish

PowerShell:

  grepai completion powershell | Out-String | Invoke-Expression


### Options

```
  -h, --help   help for completion
```

### SEE ALSO

* [grepai](/grepai/commands/grepai/)	 - Semantic code search CLI
* [grepai completion bash](/grepai/commands/grepai_completion_bash/)	 - Generate bash completion script
* [grepai completion fish](/grepai/commands/grepai_completion_fish/)	 - Generate fish completion script
* [grepai completion powershell](/grepai/commands/grepai_completion_powershell/)	 - Generate powershell completion script
* [grepai completion zsh](/grepai/commands/grepai_completion_zsh/)	 - Generate zsh completion script

###### Auto generated by spf13/cobra on 30-Oct-2026
