From c0a78338a0b0fccf76b1ff5c79475cba28b23260 Mon Sep 17 00:00:00 2001 From: andf-viam <132301587+andf-viam@users.noreply.github.com> Date: Wed, 13 Sep 2023 16:06:51 -0400 Subject: [PATCH] DOCS-1116: Update viam CLI brew install (#1820) --- docs/manage/CLI.md | 38 +++++++++++++------------------------- 1 file changed, 13 insertions(+), 25 deletions(-) diff --git a/docs/manage/CLI.md b/docs/manage/CLI.md index 1ce4ab69a6..f9cf21b787 100644 --- a/docs/manage/CLI.md +++ b/docs/manage/CLI.md @@ -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 ``` @@ -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