Skip to content

Commit

Permalink
DOCS-1116: Update viam CLI brew install (#1820)
Browse files Browse the repository at this point in the history
  • Loading branch information
andf-viam authored Sep 13, 2023
1 parent 443ce80 commit c0a7833
Showing 1 changed file with 13 additions and 25 deletions.
38 changes: 13 additions & 25 deletions docs/manage/CLI.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,48 +29,35 @@ viam.component.servo.v1.ServoService.MoveRequest

You can download the Viam CLI executable using one of the options below.
Select the tab for your platform and architecture.

{{% alert title="Tip" color="tip" %}}
You can use the `uname -m` command to determine your system architecture.
{{% /alert %}}
If you are on Linux, you can use the `uname -m` command to determine your system architecture.

{{< tabs >}}
{{% tab name="Linux aarch64" %}}

To download the Viam CLI on a Linux computer with the `aarch64` architecture, run the following commands:

```{class="command-line" data-prompt="$"}
sudo curl -o /usr/local/bin/viam https://storage.googleapis.com/packages.viam.com/apps/viam-cli/viam-cli-stable-linux-arm64
sudo chmod a+rx /usr/local/bin/viam
```

{{% /tab %}}
{{% tab name="Linux x86_64" %}}
{{% tab name="macOS" %}}

To download the Viam CLI on a Linux computer with the `amd64` (Intel `x86_64`) architecture, run the following commands:
To download the Viam CLI on a macOS computer, run the following commands:

```{class="command-line" data-prompt="$"}
sudo curl -o /usr/local/bin/viam https://storage.googleapis.com/packages.viam.com/apps/viam-cli/viam-cli-stable-linux-amd64
sudo chmod a+rx /usr/local/bin/viam
brew tap viamrobotics/brews
brew install viam
```

{{% /tab %}}
{{% tab name="macOS arm64" %}}
{{% tab name="Linux aarch64" %}}

To download the Viam CLI on a macOS computer with the `arm64` (Apple Silicon) architecture, run the following commands:
To download the Viam CLI on a Linux computer with the `aarch64` architecture, run the following commands:

```{class="command-line" data-prompt="$"}
sudo curl -o /usr/local/bin/viam https://storage.googleapis.com/packages.viam.com/apps/viam-cli/viam-cli-stable-darwin-arm64
sudo curl -o /usr/local/bin/viam https://storage.googleapis.com/packages.viam.com/apps/viam-cli/viam-cli-stable-linux-arm64
sudo chmod a+rx /usr/local/bin/viam
```

{{% /tab %}}
{{% tab name="macOS x86_64" %}}
{{% tab name="Linux x86_64" %}}

To download the Viam CLI on a macOS computer with the `amd64` (Intel `x86_64`) architecture, run the following commands:
To download the Viam CLI on a Linux computer with the `amd64` (Intel `x86_64`) architecture, run the following commands:

```{class="command-line" data-prompt="$"}
sudo curl -o /usr/local/bin/viam https://storage.googleapis.com/packages.viam.com/apps/viam-cli/viam-cli-stable-darwin-amd64
sudo curl -o /usr/local/bin/viam https://storage.googleapis.com/packages.viam.com/apps/viam-cli/viam-cli-stable-linux-amd64
sudo chmod a+rx /usr/local/bin/viam
```

Expand All @@ -95,7 +82,8 @@ echo 'export PATH="$HOME/go/bin:$PATH"' >> ~/.bashrc
{{% /tab %}}
{{< /tabs >}}

To later update the Viam CLI tool, you can use the steps above to reinstall the latest version.
To later update the Viam CLI tool on Linux, use the steps above to reinstall the latest version.
to later update the Viam CLI tool on macOS, run `brew upgrade viam`.

## Authenticate

Expand Down

0 comments on commit c0a7833

Please sign in to comment.