---
title: influx completion
description: The influx completion command outputs influx shell completion scripts for a specified shell (bash or zsh).
url: https://docs.influxdata.com/influxdb3/cloud-serverless/reference/cli/influx/completion/
estimated_tokens: 808
product: InfluxDB Cloud Serverless
version: cloud-serverless
---

# influx completion

-   influx CLI 2.0.0+

The `influx completion` command outputs `influx` shell completion scripts for a specified shell (`bash` or `zsh`).

## Usage

```
influx completion [bash|zsh] [flags]
```

## Flags

| Flag |  | Description |
| --- | --- | --- |
| -h | --help | Help for the completion command |

## Install completion scripts

Add the appropriate installation command below to your `.bashrc` or `.zshrc`.

#### Completion snippets in .bashrc or .zshrc

<!-- Tabbed content: Select one of the following options -->

**bash:**

```sh
# macOS
$ source $(brew --prefix)/etc/bash_completion.d
$ source <(influx completion bash)

# Ubuntu
$ source /etc/bash_completion.d
$ source <(influx completion bash)
```

**zsh:**

```sh
# macOS
$ source <(influx completion zsh)

# Ubuntu
$ source <(influx completion zsh)
```

<!-- End tabbed content -->

#### Related

-   [influx CLI—Provide required authentication credentials](/influxdb3/cloud-serverless/reference/cli/influx/#provide-required-authentication-credentials)
-   [influx CLI—Provide required authentication credentials](/influxdb3/cloud-serverless/reference/cli/influx/#provide-required-authentication-credentials)
