$ argocd completion bash > argocd_bash_completion
The Red Hat OpenShift GitOps For more information about the support scope of Red Hat Technology Preview features, see Technology Preview Features Support Scope. |
You can configure the GitOps argocd
CLI to enable tab completion.
After you install the GitOps argocd
CLI, you can enable tab completion to automatically complete argocd
commands or suggest options when you press Tab.
Tab completions only exist for the Bash shell. |
You must have the GitOps argocd
CLI tool installed.
You must have bash-completion
installed on your local system.
The following procedure enables tab completion for the Bash shell.
Save the Bash completion code to a file:
$ argocd completion bash > argocd_bash_completion
Copy the file to /etc/bash_completion.d/
:
$ sudo cp argocd_bash_completion /etc/bash_completion.d/
Alternatively, you can save the file to a local directory and source it from your .bash_profile
file instead.
Tab completion is enabled when you open a new terminal.