2019-12-09 16:36:33 +00:00
# Installation
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.
2021-05-24 16:42:32 +00:00
## Linux and WSL
### Homebrew
```bash
brew install argocd
```
### Download With Curl
2019-12-09 16:36:33 +00:00
2021-06-25 09:39:09 +00:00
#### Download latest version
2019-12-09 16:36:33 +00:00
```bash
2021-06-25 09:39:09 +00:00
curl -sSL -o /usr/local/bin/argocd https://github.com/argoproj/argo-cd/releases/latest/download/argocd-linux-amd64
chmod +x /usr/local/bin/argocd
2019-12-09 16:36:33 +00:00
```
2021-06-25 09:39:09 +00:00
#### Download concrete version
2019-12-09 16:36:33 +00:00
2021-06-25 09:39:09 +00:00
Set `VERSION` replacing `<TAG>` in the command below with the version of Argo CD you would like to download:
2019-12-09 16:36:33 +00:00
```bash
2021-06-25 09:39:09 +00:00
VERSION=< TAG > # Select desired TAG from https://github.com/argoproj/argo-cd/releases
curl -sSL -o /usr/local/bin/argocd https://github.com/argoproj/argo-cd/releases/download/$VERSION/argocd-linux-amd64
2019-12-09 16:36:33 +00:00
chmod +x /usr/local/bin/argocd
```
You should now be able to run `argocd` commands.
## Mac
### Homebrew
```bash
2020-09-03 21:44:55 +00:00
brew install argocd
2019-12-09 16:36:33 +00:00
```
### Download With Curl
You can view the latest version of Argo CD at the link above or run the following command to grab the version:
```bash
VERSION=$(curl --silent "https://api.github.com/repos/argoproj/argo-cd/releases/latest" | grep '"tag_name"' | sed -E 's/.*"([^"]+)".*/\1/')
```
Replace `VERSION` in the command below with the version of Argo CD you would like to download:
```bash
curl -sSL -o /usr/local/bin/argocd https://github.com/argoproj/argo-cd/releases/download/$VERSION/argocd-darwin-amd64
```
Make the `argocd` CLI executable:
```bash
chmod +x /usr/local/bin/argocd
```
After finishing either of the instructions above, you should now be able to run `argocd` commands.
2020-10-05 06:53:33 +00:00
## Windows
2021-07-13 17:02:03 +00:00
### Download With PowerShell: Invoke-WebRequest
2020-10-05 06:53:33 +00:00
You can view the latest version of Argo CD at the link above or run the following command to grab the version:
```powershell
$version = (Invoke-RestMethod https://api.github.com/repos/argoproj/argo-cd/releases/latest).tag_name
```
Replace `$version` in the command below with the version of Argo CD you would like to download:
```powershell
$url = "https://github.com/argoproj/argo-cd/releases/download/" + $version + "/argocd-windows-amd64.exe"
$output = "argocd.exe"
Invoke-WebRequest -Uri $url -OutFile $output
```
Also please note you will probably need to move the file into your PATH.
After finishing the instructions above, you should now be able to run `argocd` commands.