3

Install ArgoCD CLI on Windows

 1 year ago
source link: https://www.shellhacks.com/install-argocd-cli-on-windows/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

Install ArgoCD CLI on Windows

An ArgoCD CLI is the official command-line interface for an ArgoCD.

It can be used to interact with the ArgoCD API server and manage ArgoCD applications.

In this post I will show how to download and install the latest stable version of the ArgoCD CLI on Windows through a graphical user interface (GUI), or using a command-line prompt (CMD) or PowerShell.

Cool Tip: Install Minikube on Windows! Read More →

Install ArgoCD CLI on Windows

To install the ArgoCD CLI on Windows, firstly download the argocd-windows-amd64.exe executable for Windows from the latest release page:

install-argocd-cli-on-windows_download-argocd-cli.png

Open a user’s home folder by typing %USERPROFILE% in the address bar of a “File Explorer”:

install-argocd-cli-on-windows_open-user-home-folder.png

In the user’s home create a bin folder, move the argocd-windows-amd64.exe there and rename it to the argocd.exe:

install-argocd-cli-on-windows_move-argocd-to-bin.png

Start the environment variables editor – press the ⊞ Win keybutton to open the “Start” menu, type in envi and click on “Edit environment variables for your account”.

The environment variables editor can also be launched with the following command from the CMD or PowerShell:

C:\> rundll32 sysdm.cpl,EditEnvironmentVariables

Add the bin folder to a Path environment variable:

xinstall-argocd-cli-on-windows_add-to-path-700x366.png.pagespeed.ic.dfFz3lzuyy.png

Install ArgoCD CLI on Windows using CMD or PowerShell

Alternatively the ArgoCD CLI can be installed on Windows from the CMD or PowerShell using the commands below.

To download the latest stable version of the argocd for Windows, execute the commands below either from the CMD or PowerShell:

C:\> curl -LO "https://github.com/argoproj/argo-cd/releases/latest/download/argocd-windows-amd64.exe"

Create a %USERPROFILE%\bin folder, add it to the current user’s %PATH%, move the argocd-windows-amd64.exe there and rename it to the argocd.exe :

C:\> mkdir "%USERPROFILE%\bin"
C:\> setx path "%PATH%;%USERPROFILE%\bin"
C:\> move argocd-windows-amd64.exe "%USERPROFILE%\bin\argocd.exe"

To verify the ArgoCD CLI installation – open the new CMD or PowerShell window and execute the following commands:

C:\> where.exe argocd
- sample output -
C:\Users\%USERNAME%\bin\argocd.exe

C:\> argocd version --client
- sample output -
argocd: v2.7.10+469f257
  BuildDate: 2023-07-31T22:22:19Z
  GitCommit: 469f25753b2be7ef0905a11632a6382060bcae99
  GitTreeState: clean
  GoVersion: go1.19.11
  Compiler: gc
  Platform: windows/amd64
Was it useful? Share this post with the world!

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK