$ tar xvzf <file>
The Red Hat OpenShift GitOps For more information about the support scope of Red Hat Technology Preview features, see Technology Preview Features Support Scope. |
Use the GitOps argocd
CLI tool to configure and manage Red Hat OpenShift GitOps and Argo CD resources from the command line. The GitOps argocd
CLI is designed to make GitOps computing tasks simple and concise. You can install the CLI tool on different platforms.
Both the compressed archives and the RPMs contain the |
For Linux distributions, you can download the GitOps argocd
CLI as a tar.gz
archive.
Download the latest version of the CLI tool from the content gateway for your operating system and architecture.
Operating system | Architecture | Tarball |
---|---|---|
Linux |
x86_64, amd64 |
|
Linux on IBM zSystems and IBM® LinuxONE |
s390x |
|
Linux on IBM Power |
ppc64le |
|
Linux on ARM |
aarch64, arm64 |
|
Newer versions of the CLI tool are compatible with the older versions of Red Hat OpenShift GitOps server, but not vice versa. |
Extract the archive by running the following command:
$ tar xvzf <file>
Move the binary to a directory on your PATH
environment variable by running the following command:
$ sudo mv argocd /usr/local/bin/argocd
Make the file executable by running the following command:
$ sudo chmod +x /usr/local/bin/argocd
After you install the GitOps argocd
CLI, verify that it is available by running the following command:
$ argocd version --client
argocd: v2.9.5+f943664
BuildDate: 2024-02-15T05:19:27Z
GitCommit: f9436641a616d277ab1f98694e5ce4c986d4ea05
GitTreeState: clean
GoVersion: go1.20.10
Compiler: gc
Platform: linux/amd64
ExtraBuildInfo: openshift-gitops-version: 1.12.0, release: 0015022024 (1)
1 | The build information of Red Hat OpenShift GitOps built by Red Hat. |
For Red Hat Enterprise Linux (RHEL) version 8 or later, you can install the GitOps argocd
CLI as an RPM by using a package manager, such as yum
or dnf
. This allows the GitOps argocd
CLI version to be automatically managed by the system. For example, using a command such as dnf upgrade
upgrades all packages, including argocd
, if a new version is available.
You have an active OpenShift Container Platform subscription on your Red Hat account.
You have root or sudo
privileges on your local system.
Register with Red Hat Subscription Manager by running the following command:
# subscription-manager register
Pull the latest subscription data by running the following command:
# subscription-manager refresh
List the available subscriptions by running the following command:
# subscription-manager list --available --matches '*gitops*'
In the output for the previous command, find the pool ID for your OpenShift Container Platform subscription, and attach the subscription to the registered system by running the following command:
# subscription-manager attach --pool=<pool_id>
Enable the repositories required by Red Hat OpenShift GitOps for RHEL version 8 or later by running the following command:
Linux (x86_64, amd64)
# subscription-manager repos --enable="gitops-<gitops_version>-for-rhel-<rhel_version>-x86_64-rpms"
# subscription-manager repos --enable="gitops-1.13-for-rhel-8-x86_64-rpms"
Linux on IBM zSystems and IBM® LinuxONE (s390x)
# subscription-manager repos --enable="gitops-<gitops_version>-for-rhel-<rhel_version>-s390x-rpms"
# subscription-manager repos --enable="gitops-1.13-for-rhel-8-s390x-rpms"
Linux on IBM Power (ppc64le)
# subscription-manager repos --enable="gitops-<gitops_version>-for-rhel-<rhel_version>-ppc64le-rpms"
# subscription-manager repos --enable="gitops-1.13-for-rhel-8-ppc64le-rpms"
Linux on ARM (aarch64, arm64)
# subscription-manager repos --enable="gitops-<gitops_version>-for-rhel-<rhel_version>-aarch64-rpms"
# subscription-manager repos --enable="gitops-1.13-for-rhel-8-aarch64-rpms"
Install the openshift-gitops-argocd-cli
package by running the following command:
# yum install openshift-gitops-argocd-cli
After you install the GitOps argocd
CLI, verify that it is available by running the following command:
$ argocd version --client
argocd: v2.9.5+f943664
BuildDate: 2024-02-15T05:19:27Z
GitCommit: f9436641a616d277ab1f98694e5ce4c986d4ea05
GitTreeState: clean
GoVersion: go1.20.10
Compiler: gc
Platform: linux/amd64
ExtraBuildInfo: openshift-gitops-version: 1.12.0, release: 0015022024 (1)
1 | The build information of Red Hat OpenShift GitOps built by Red Hat. |
For Windows, you can download the GitOps argocd
CLI as a compressed zip
archive.
Download the latest version of the CLI tool from the content gateway for your operating system and architecture.
Operating system | Architecture | Tarball |
---|---|---|
Windows |
x86_64 |
|
Newer versions of the CLI tool are compatible with the older versions of Red Hat OpenShift GitOps server, but not vice versa. |
Extract the archive with a ZIP program.
Move the binary to a directory on your PATH
environment variable by running the following command:
C:\> move argocd.exe <directory>
After you install the GitOps argocd
CLI, verify that it is available by running the following command:
$ argocd version --client
argocd: v2.9.5+f943664
BuildDate: 2024-02-15T05:19:27Z
GitCommit: f9436641a616d277ab1f98694e5ce4c986d4ea05
GitTreeState: clean
GoVersion: go1.20.10
Compiler: gc
Platform: linux/amd64
ExtraBuildInfo: openshift-gitops-version: 1.12.0, release: 0015022024 (1)
1 | The build information of Red Hat OpenShift GitOps built by Red Hat. |
For macOS, you can download the GitOps argocd
CLI as a tar.gz
archive.
Download the latest version of the CLI tool from the content gateway for your operating system and architecture.
Operating system | Architecture | Tarball |
---|---|---|
macOS on Intel |
x86_64 |
|
macOS on ARM |
arm64 |
|
Newer versions of the CLI tool are compatible with the older versions of Red Hat OpenShift GitOps server, but not vice versa. |
Extract the archive by running the following command:
$ tar xvzf <file>
Move the binary to a directory on your PATH
environment variable by running the following command:
$ sudo mv argocd /usr/local/bin/argocd
Make the file executable by running the following command:
$ sudo chmod +x /usr/local/bin/argocd
After you install the GitOps argocd
CLI, verify that it is available by running the following command:
$ argocd version --client
argocd: v2.9.5+f943664
BuildDate: 2024-02-15T05:19:27Z
GitCommit: f9436641a616d277ab1f98694e5ce4c986d4ea05
GitTreeState: clean
GoVersion: go1.20.10
Compiler: gc
Platform: linux/amd64
ExtraBuildInfo: openshift-gitops-version: 1.12.0, release: 0015022024 (1)
1 | The build information of Red Hat OpenShift GitOps built by Red Hat. |