cfcli gen auto-complete
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). |
Last updated on
Was this page helpful?
Powered by DeveloperHub
Next to read:
cfcli gen doc© 2026 Lightbits Labs™
Lightbits Kubernetes CSI Quick Start Guide
Lightbits CSI Plugin Guide
Lightbits vCenter Configuration Guide
Lightbits OpenStack Driver Support
Lightbits OpenStack Driver - Legacy Support
Lightbits DMS Guide
Lightbits Cluster Federation
Proxmox Plugin
Intelligent Cluster Management (ICM)