Skip to content

Install the CLI

The CLI is served by your Shield360 platform, so machines download it from the same server they report to. Replace https://app.shield360.ai with your own address if you self-host.

Terminal window
curl -fsSL https://app.shield360.ai/api/cli/install.sh | SHIELD360_INSTALL_KEY=<key> sh
Terminal window
$env:SHIELD360_INSTALL_KEY = "<key>"
iwr -useb https://app.shield360.ai/api/cli/install.ps1 | iex
Terminal window
sh cli/scripts/install-local.sh

The install scripts also enrol the machine, start the collector and add coding-agent hooks. Get the install key from Visibility → Setup. For a binary without the enrolment, download it from Visibility → Setup or from /api/cli/download/<target>. See Deploy the collector for every target, MDM rollout and multi-user machines.

MethodInstall locationPATH handling
macOS / Linux script~/.shield360/bin/shield360Prints a PATH-add hint if the directory isn’t on $PATH
Windows script%USERPROFILE%\.shield360\bin\shield360.exeUpdates user-scope PATH automatically - open a new terminal to pick it up
From source~/.shield360/bin/shield360Add it to $PATH if not already
Environment variablePurposeDefault
SHIELD360_INSTALL_KEYOrganisation install key used to enrol the machine (required)none
SHIELD360_URLServer to download from and enrol withThe server that served the script
SHIELD360_INSTALL_DIRTarget install directory$HOME/.shield360/bin

If you have the repository checked out and Go installed, build a local binary:

Terminal window
sh cli/scripts/install-local.sh

This builds with go build -trimpath -ldflags "-s -w" from cli/cmd/shield360 and installs to ~/.shield360/bin/shield360.

Terminal window
shield360 version
# shield360 v1.2.3 (abc1234)
shield360 doctor
# Prints resolved config, dials your OTLP endpoint, lists installed plugins

The shield360 binary is never touched by shield360 coding uninstall (which only removes vendor plugin manifests). Remove the binary the way you installed it:

Terminal window
shield360 collector uninstall # stop background reporting
rm ~/.shield360/bin/shield360 # remove the binary

On Windows, run shield360 collector uninstall, then delete %USERPROFILE%\.shield360\bin\shield360.exe.