# completion

> Generate a shell completion script with Shoplazza CLI so your shell auto-completes its commands, subcommands, and flags as you type them.

Generate shell completion scripts for auto-completing commands, flags, and arguments.



```shell
shoplazza completion <shell>
```

Supported shells: `bash`, `zsh`, `fish`, `powershell`.

### Installation

**zsh** — add to `~/.zshrc`:

```shell
eval "$(shoplazza completion zsh)"
```

**bash** — add to `~/.bashrc` or `~/.bash_profile`:

```shell
eval "$(shoplazza completion bash)"
```

**fish** — save to completions directory:

```shell
shoplazza completion fish > ~/.config/fish/completions/shoplazza.fish
```

**powershell** — add to `$PROFILE`:

```powershell
shoplazza completion powershell | Out-String | Invoke-Expression
```
