# Source: https://docs.vespa.ai/en/reference/clients/vespa-cli/vespa_completion_bash.html.md

# vespa completion bash

 

## vespa completion bash

Generate the autocompletion script for bash

### Synopsis

Generate the autocompletion script for the bash shell.

This script depends on the 'bash-completion' package. If it is not installed already, you can install it via your OS's package manager.

To load completions in your current shell session:

```
source <(vespa completion bash)
```

To load completions for every new session, execute once:

#### Linux:

```
vespa completion bash > /etc/bash_completion.d/vespa
```

#### macOS:

```
vespa completion bash > $(brew --prefix)/etc/bash_completion.d/vespa
```

You will need to start a new shell for this setup to take effect.

```
vespa completion bash
```

### Options

```
-h, --help help for bash
      --no-descriptions disable completion descriptions
```

### Options inherited from parent commands

```
-a, --application string The application to use (cloud only)
  -C, --cluster string The container cluster to use. This is only required for applications with multiple clusters
  -c, --color string Whether to use colors in output. Must be "auto", "never", or "always" (default "auto")
  -i, --instance string The instance of the application to use (cloud only)
  -q, --quiet Print only errors
  -t, --target string The target platform to use. Must be "local", "cloud", "hosted" or an URL (default "local")
  -z, --zone string The zone to use. This defaults to a dev zone (cloud only)
```

### SEE ALSO

- [vespa completion](vespa_completion.html) - Generate the autocompletion script for the specified shell

 Copyright © 2026 - [Cookie Preferences](#)

### On this page:

- [vespa completion bash](#vespa-completion-bash)
- [Synopsis](#synopsis)
- [Options](#options)
- [Options inherited from parent commands](#options-inherited-from-parent-commands)
- [SEE ALSO](#see-also)