This is a cache of https://docs.openshift.com/gitops/1.14/gitops_cli_argocd/configuring-argocd-gitops-cli.html. It is a snapshot of the page at 2024-11-23T01:00:48.840+0000.
Configuring the GitOps <strong>cli</strong> | GitOps <strong>cli</strong> (argocd) reference | Red Hat OpenShift GitOps 1.14
×

The Red Hat OpenShift GitOps argocd cli tool is a Technology Preview feature only. Technology Preview features are not supported with Red Hat production service level agreements (SLAs) and might not be functionally complete. Red Hat does not recommend using them in production. These features provide early access to upcoming product features, enabling customers to test functionality and provide feedback during the development process.

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.

Enabling 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.

Prerequisites
  • You must have the GitOps argocd cli tool installed.

  • You must have bash-completion installed on your local system.

Procedure

The following procedure enables tab completion for the Bash shell.

  1. Save the Bash completion code to a file:

    $ argocd completion bash > argocd_bash_completion
  2. 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.