github.com/argoproj/argo-cd/v3@v3.2.1/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  #### Download latest stable version
    41  
    42  You can download the latest stable release by executing below steps:
    43  
    44  ```bash
    45  VERSION=$(curl -L -s https://raw.githubusercontent.com/argoproj/argo-cd/stable/VERSION)
    46  curl -sSL -o argocd-linux-amd64 https://github.com/argoproj/argo-cd/releases/download/v$VERSION/argocd-linux-amd64
    47  sudo install -m 555 argocd-linux-amd64 /usr/local/bin/argocd
    48  rm argocd-linux-amd64
    49  ```
    50  
    51  You should now be able to run `argocd` commands.
    52  
    53  
    54  ## Mac (Apple Silicon)
    55  
    56  ### Install via Homebrew or Curl
    57  
    58  You can install the CLI using `Homebrew` or a `Curl` command:
    59  
    60  #### Homebrew
    61  
    62  ```bash
    63  brew install argocd
    64  ```
    65  
    66  #### Download With Curl
    67  
    68  You can view the latest version of Argo CD at the link above or run the following command to grab the version:
    69  
    70  ```bash
    71  VERSION=$(curl --silent "https://api.github.com/repos/argoproj/argo-cd/releases/latest" | grep '"tag_name"' | sed -E 's/.*"([^"]+)".*/\1/')
    72  ```
    73  
    74  Replace `VERSION` in the command below with the version of Argo CD you would like to download:
    75  
    76  ```bash
    77  curl -sSL -o argocd https://github.com/argoproj/argo-cd/releases/download/$VERSION/argocd-darwin-arm64
    78  ```
    79  
    80  Install the Argo CD CLI binary:
    81  
    82  ```bash
    83  sudo install -m 555 argocd /usr/local/bin/argocd
    84  rm argocd
    85  ```
    86  
    87  After finishing either of the instructions above, you should now be able to run `argocd` commands.
    88  
    89  
    90  ## Windows
    91  
    92  ### Download With PowerShell: Invoke-WebRequest
    93  
    94  You can view the latest version of Argo CD at the link above or run the following command to grab the version:
    95  
    96  ```powershell
    97  $version = (Invoke-RestMethod https://api.github.com/repos/argoproj/argo-cd/releases/latest).tag_name
    98  ```
    99  
   100  Replace `$version` in the command below with the version of Argo CD you would like to download:
   101  
   102  ```powershell
   103  $url = "https://github.com/argoproj/argo-cd/releases/download/" + $version + "/argocd-windows-amd64.exe"
   104  $output = "argocd.exe"
   105  
   106  Invoke-WebRequest -Uri $url -OutFile $output
   107  ```
   108  Also please note you will probably need to move the file into your PATH.
   109  Use following command to add Argo CD into environment variables PATH
   110  
   111  ```powershell
   112  [Environment]::SetEnvironmentVariable("Path", "$env:Path;C:\Path\To\ArgoCD-CLI", "User")
   113  ```
   114  
   115  
   116  After finishing the instructions above, you should now be able to run `argocd` commands.