docs: remove argocd installation redundant steps for Mac users (#22705)

Signed-off-by: Afzal Ansari <afzal442@gmail.com>
This commit is contained in:
Afzal Ansari
2025-04-30 03:07:54 +05:30
committed by GitHub
parent aa7f5726e8
commit ba9ad75ac7

View File

@@ -51,39 +51,19 @@ rm argocd-linux-amd64
You should now be able to run `argocd` commands.
## Mac (M1)
## Mac (Apple Silicon)
### Download With Curl
### Install via Homebrew or Curl
You can view the latest version of Argo CD at the link above or run the following command to grab the version:
You can install the CLI using `Homebrew` or a `Curl` command:
```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 argocd-darwin-arm64 https://github.com/argoproj/argo-cd/releases/download/$VERSION/argocd-darwin-arm64
```
Install the Argo CD CLI binary:
```bash
sudo install -m 555 argocd-darwin-arm64 /usr/local/bin/argocd
rm argocd-darwin-arm64
```
## Mac
### Homebrew
#### Homebrew
```bash
brew install argocd
```
### Download With Curl
#### 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:
@@ -94,14 +74,14 @@ VERSION=$(curl --silent "https://api.github.com/repos/argoproj/argo-cd/releases/
Replace `VERSION` in the command below with the version of Argo CD you would like to download:
```bash
curl -sSL -o argocd-darwin-amd64 https://github.com/argoproj/argo-cd/releases/download/$VERSION/argocd-darwin-amd64
curl -sSL -o argocd https://github.com/argoproj/argo-cd/releases/download/$VERSION/argocd-darwin-arm64
```
Install the Argo CD CLI binary:
```bash
sudo install -m 555 argocd-darwin-amd64 /usr/local/bin/argocd
rm argocd-darwin-amd64
sudo install -m 555 argocd /usr/local/bin/argocd
rm argocd
```
After finishing either of the instructions above, you should now be able to run `argocd` commands.