InfluxDB Docs

influx completion

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

Usage

influx completion [bash|zsh] [flags]

Flags

FlagDescription
-h--helpHelp for the completion command

Install completion scripts

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

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

# Ubuntu
$ source /etc/bash-completion
$ source <(influx completion bash)
# macOS
$ source <(influx completion zsh)

# Ubuntu
$ source <(influx completion zsh)

New! Cloud or OSS?