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

# ubx completion

> Generate shell completion scripts.

`ubx completion` generates shell completion scripts for bash, zsh, fish, and PowerShell.

## Usage

```bash theme={null}
ubx completion <shell>
```

## Shells

<Tabs>
  <Tab title="bash">
    ```bash theme={null}
    # Load in current session
    source <(ubx completion bash)

    # Install permanently (Linux)
    ubx completion bash > /etc/bash_completion.d/ubx

    # Install permanently (macOS + Homebrew)
    ubx completion bash > $(brew --prefix)/etc/bash_completion.d/ubx
    ```
  </Tab>

  <Tab title="zsh">
    ```bash theme={null}
    # Load in current session
    source <(ubx completion zsh)

    # Install permanently
    ubx completion zsh > "${fpath[1]}/_ubx"
    ```
  </Tab>

  <Tab title="fish">
    ```bash theme={null}
    ubx completion fish > ~/.config/fish/completions/ubx.fish
    ```
  </Tab>

  <Tab title="PowerShell">
    ```powershell theme={null}
    # Load in current session
    ubx completion powershell | Out-String | Invoke-Expression

    # Install permanently — add to $PROFILE
    ubx completion powershell > ubx.ps1
    # Then add ". /path/to/ubx.ps1" to $PROFILE
    ```
  </Tab>
</Tabs>

## What Gets Completed

* All ubx subcommands and flags
* Resource type names in `unit`, `data`, `import` blocks
* Provider names in `ubx auth` and `ubx schema` commands
* File paths for `.iac` files
