# prb completion command reference

Generate shell completion scripts. This page documents **1 command** under `prb completion`.

Flags and examples below come from the command definitions. A **Required** flag is explicitly marked required by Cobra; an unmarked flag can still be needed by runtime validation or a non-interactive workflow. Empty strings and empty lists are registered defaults, not sample values.

Every command also inherits the [global flags](/docs/developers/cli/commands#global-flags). Run `prb <command> --help` to check your installed version. Replace placeholder IDs and names in source examples before running them. Return to the [complete CLI command reference](/docs/developers/cli/commands) to browse another command.

## Commands

| Command                             | Description                        | Usage                    | Source                                                                                                  |
| ----------------------------------- | ---------------------------------- | ------------------------ | ------------------------------------------------------------------------------------------------------- |
| [`prb completion`](#prb-completion) | Generate shell completion scripts. | `prb completion <shell>` | [View implementation](https://github.com/getprobo/probo/blob/main/pkg/cmd/completion/completion.go#L31) |

## prb completion

Generate shell completion scripts.

### Usage

```text
prb completion <shell>
```

Requires 1 positional argument.

### Additional help

```text
Generate shell completion scripts for prb.

To load completions:

Bash:
  $ source <(prb completion bash)
  # To load completions for each session, execute once:
  # Linux:
  $ prb completion bash > /etc/bash_completion.d/prb
  # macOS:
  $ prb completion bash > $(brew --prefix)/etc/bash_completion.d/prb

Zsh:
  $ source <(prb completion zsh)
  # To load completions for each session, execute once:
  $ prb completion zsh > "${fpath[1]}/_prb"

Fish:
  $ prb completion fish | source
  # To load completions for each session, execute once:
  $ prb completion fish > ~/.config/fish/completions/prb.fish

PowerShell:
  PS> prb completion powershell | Out-String | Invoke-Expression
  # To load completions for each session, execute once:
  PS> prb completion powershell > prb.ps1
```

[View command implementation](https://github.com/getprobo/probo/blob/main/pkg/cmd/completion/completion.go#L31).
