3.3. 在 Windows 上安装 Red Hat OpenShift GitOps CLI
对于 Windows,您可以将 GitOps argocd CLI 下载为压缩 zip 存档。
流程
从以下位置之一下载您的操作系统和架构的 GitOps
argocdCLI:- Red Hat Developer 内容网关
操作系统 架构 archive Windows
x86_64
argocd-windows-amd64.zip注意较新版本的 CLI 工具与旧版本的 Red Hat OpenShift GitOps 服务器兼容,反之亦然。
- 使用 ZIP 程序解压存档。
运行以下命令,将二进制文件移到
PATH环境变量的目录中:C:\> move argocd.exe <directory>安装 GitOps
argocdCLI 后,运行以下命令来验证其是否可用:$ 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: windows/amd64 ExtraBuildInfo: openshift-gitops-version: 1.19.0, release: 0015022024其中:
ExtraBuildInfo: openshift-gitops-version- 指定由红帽构建的 Red Hat OpenShift GitOps 的构建信息。