#
Installing the Baselime CLI
The Baselime CLI is the primary way to interact with Baselime and your serverless observability data. It allows you to connect your serverless applications, query and explore your data, and set up integrations with your tools.
You can install the Baselime CLI using one of the following methods:
#
Installing
#
Installing with Homebrew (for MacOS)
- Make sure you have Homebrew installed on your system. If you don't, you can install it by following the instructions here.
- Run the following commands to add the Baselime tap to your Homebrew installation:
brew tap baselime/tap
brew install baselime
#
Installing with curl (for MacOS and Linux)
- Run the following command to download and install the Baselime CLI:
- MacOS
curl -s https://get.baselime.io | bash
- Linux
curl -s https://get.baselime.io | sudo bash
#
Installing with npm (for MacOS, Linux, and Windows)
- Make sure you have npm installed on your system. If you don't, you can install it by following the instructions here.
- Run the following command to install the Baselime CLI:
npm install @baselime/cli -g
#
Downloading the binary (for MacOS, and Linux)
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
To verify that the Baselime CLI has been installed correctly, run the following command:
baselime --version
You should see the version number of the Baselime CLI that you installed.
If you encounter any issues during the installation process, please don't hesitate to contact us.
#
Authenticating the CLI
Before you can use the Baselime CLI, you must authenticate it with your Baselime account. To do this, run the following command:
baselime login
This command opens a new browser window and asks you to sign in to your Baselime account. Once you sign in, the CLI is authenticated and you can start using it to interact with your Baselime account.
#
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