github.com/argoproj/argo-cd/v2@v2.10.9/docs/cli_installation.md (about) 1 # Installation 2 3 You can download the latest Argo CD version from [the latest release page of this repository](https://github.com/argoproj/argo-cd/releases/latest), which will include the `argocd` CLI. 4 5 ## Linux and WSL 6 7 ### ArchLinux 8 9 ```bash 10 pacman -S argocd 11 ``` 12 13 ### Homebrew 14 15 ```bash 16 brew install argocd 17 ``` 18 19 ### Download With Curl 20 21 #### Download latest version 22 23 ```bash 24 curl -sSL -o argocd-linux-amd64 https://github.com/argoproj/argo-cd/releases/latest/download/argocd-linux-amd64 25 sudo install -m 555 argocd-linux-amd64 /usr/local/bin/argocd 26 rm argocd-linux-amd64 27 ``` 28 29 #### Download concrete version 30 31 Set `VERSION` replacing `<TAG>` in the command below with the version of Argo CD you would like to download: 32 33 ```bash 34 VERSION=<TAG> # Select desired TAG from https://github.com/argoproj/argo-cd/releases 35 curl -sSL -o argocd-linux-amd64 https://github.com/argoproj/argo-cd/releases/download/$VERSION/argocd-linux-amd64 36 sudo install -m 555 argocd-linux-amd64 /usr/local/bin/argocd 37 rm argocd-linux-amd64 38 ``` 39 40 You should now be able to run `argocd` commands. 41 42 43 ## Mac (M1) 44 45 ### Download With Curl 46 47 You can view the latest version of Argo CD at the link above or run the following command to grab the version: 48 49 ```bash 50 VERSION=$(curl --silent "https://api.github.com/repos/argoproj/argo-cd/releases/latest" | grep '"tag_name"' | sed -E 's/.*"([^"]+)".*/\1/') 51 ``` 52 53 Replace `VERSION` in the command below with the version of Argo CD you would like to download: 54 55 ```bash 56 curl -sSL -o argocd-darwin-arm64 https://github.com/argoproj/argo-cd/releases/download/$VERSION/argocd-darwin-arm64 57 ``` 58 59 Install the Argo CD CLI binary: 60 61 ```bash 62 sudo install -m 555 argocd-darwin-arm64 /usr/local/bin/argocd 63 rm argocd-darwin-arm64 64 ``` 65 66 67 ## Mac 68 69 ### Homebrew 70 71 ```bash 72 brew install argocd 73 ``` 74 75 ### Download With Curl 76 77 You can view the latest version of Argo CD at the link above or run the following command to grab the version: 78 79 ```bash 80 VERSION=$(curl --silent "https://api.github.com/repos/argoproj/argo-cd/releases/latest" | grep '"tag_name"' | sed -E 's/.*"([^"]+)".*/\1/') 81 ``` 82 83 Replace `VERSION` in the command below with the version of Argo CD you would like to download: 84 85 ```bash 86 curl -sSL -o argocd-darwin-amd64 https://github.com/argoproj/argo-cd/releases/download/$VERSION/argocd-darwin-amd64 87 ``` 88 89 Install the Argo CD CLI binary: 90 91 ```bash 92 sudo install -m 555 argocd-darwin-amd64 /usr/local/bin/argocd 93 rm argocd-darwin-amd64 94 ``` 95 96 After finishing either of the instructions above, you should now be able to run `argocd` commands. 97 98 99 ## Windows 100 101 ### Download With PowerShell: Invoke-WebRequest 102 103 You can view the latest version of Argo CD at the link above or run the following command to grab the version: 104 105 ```powershell 106 $version = (Invoke-RestMethod https://api.github.com/repos/argoproj/argo-cd/releases/latest).tag_name 107 ``` 108 109 Replace `$version` in the command below with the version of Argo CD you would like to download: 110 111 ```powershell 112 $url = "https://github.com/argoproj/argo-cd/releases/download/" + $version + "/argocd-windows-amd64.exe" 113 $output = "argocd.exe" 114 115 Invoke-WebRequest -Uri $url -OutFile $output 116 ``` 117 Also please note you will probably need to move the file into your PATH. 118 Use following command to add Argo CD into environment variables PATH 119 120 ```powershell 121 [Environment]::SetEnvironmentVariable("Path", "$env:Path;C:\Path\To\ArgoCD-CLI", "User") 122 ``` 123 124 125 After finishing the instructions above, you should now be able to run `argocd` commands.