cfcli gen auto-complete

AI Tools

Generates a shell autocompletion script for cfcli.

Synopsis

Generates a shell autocompletion script for cfcli.

Note that the current version supports Bash only. This should work for *nix systems with Bash installed.

By default, the file is written directly to /etc/bash_completion.d for convenience, and the command may need superuser rights, e.g.:

$ sudo cfcli gen autocomplete Add "--completionfile=_path_to_file" flag to set alternative file-path and name.

Log out and in again to reload the completion scripts, or just source them in directly:

$ . _etc_bash_completion
cfcli gen autocomplete [flags]

Examples:

# Create a bash completion file cfcli gen autocomplete --completionfile=_path_to_file

Flag

Short

Type

Default

Description

-completionfile


string

"/etc/bash_completion.d/cfcli.sh"

Auto completion file.

--help

-h

bool


Help for autocomplete.

--type


string

”bash”

Auto complete file type (currently only bash-supported).


On This Page