#
[Deprecated] Installing the Baselime CLI
The Baselime CLI enables you to interact with Baselime and your observability data through the command line.
#
Installing
- Installing with Homebrew
terminal
brew tap baselime/tap
brew install baselime
- Installing with
curl
terminal
curl -s https://get.baselime.io | bash
- Installing with
npm
terminal
npm install @baselime/cli -g
- Installing with
curl
terminal
curl -s https://get.baselime.io | sudo bash
- Installing with
npm
terminal
npm install @baselime/cli -g
- Installing with
npm
terminal
npm install @baselime/cli -g
Optionally, you can download the latest version of the Baselime CLI binary from the releases page on GitHub.
- Download the binary for your operating system and architecture (e.g.,
baselime_linux_x64
orbaselime_darwin_x64
). - Unzip the tarball with
tar -xf baselime-<os>-<arch>-<version>.tar.gz
- Make the binary executable with
chmod +x baselime
. - Move the binary to a directory in your
PATH
, such as/usr/local/bin
, withmv baselime /usr/local/bin/baselime
.
note
On some systems, you might need to run these commands with sudo
.
#
Verifying the installation
Verify that the Baselime CLI was installed with:
terminal
baselime --version
#
Authenticating the CLI
Before you can use the Baselime CLI, you must authenticate it with your Baselime account.
terminal
baselime login
To use the Baselime CLI in non-interactive evironments, such as in CI pipelines, set the BASELIME_API_KEY
environment variable to your Baselime API key and the CLI will use it for all commands.
#
Updating the Baselime CLI
To update the Baselime CLI to the latest version, use one of the following commands depending on how you originally installed it:
- If you installed with
brew
, runbrew upgrade @baselime/cli
- If you installed with
curl
, runbaselime upgrade
- If you installed with
npm
, runnpm update -g @baselime/cli