> ## Documentation Index
> Fetch the complete documentation index at: https://docs.qlty.sh/llms.txt
> Use this file to discover all available pages before exploring further.

# completions

```bash lines theme={"system"}
qlty completions [OPTIONS]
```

Generate or install Qlty CLI shell completions

When the `--shell` argument is omitted, it will attempt to detect the current shell using the `$SHELL` environment variable (or an operating system check for PowerShell on Windows).

When the `--install` argument is specified, it will attempt to update the current user's shell configuration to include the tab completions. This operation involves *writing* to files like `.zshrc` but should generally be safe.

## Arguments

<AccordionGroup>
  <Accordion title="--shell <SHELL>">
    Shell to generate completions for \[possible values: bash, elvish, fish, powershell, zsh]
  </Accordion>

  <Accordion title="--install">Install completions for the given shell</Accordion>
</AccordionGroup>

## Examples

```bash Install Qlty CLI completions for the current shell lines theme={"system"}
qlty completions --install
```

```bash Generate completions for Bash (no install) lines theme={"system"}
qlty completions --shell bash
```

## See Also

* [`init`](/cli/commands/init)
* [Global Options](/cli/global-options)
