bash

nctl completion bash

Completion Bash Command

Generate the autocompletion script for the bash shell.

nctl completion bash [flags]

The generated autocompletion script depends on the bash-completion package. If it is not installed already, install it via the OS’s package manager.

To load completions in the current shell session, execute the following command:

source <(nctl completion bash)

To load completions for every new session, execute once:

Linux:

nctl completion bash > /etc/bash_completion.d/nctl

MacOS:

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

A new shell is needed for this setup to take effect.

Command Options

Flags Shorthand Description
--help -h help for bash
--no-descriptions disable completion descriptions