Overview
Authentication API
Management API
- bl apply
- Bl metrics
- bl get
- bl get agents
- Bl get environments
- bl get functions
- bl get integrationconnections
- Bl get locations
- bl get jobs
- bl get models
- bl get policies
- bl get sandboxes
- bl delete
- bl delete agent
- bl delete function
- bl delete integrationconnection
- bl delete job
- bl delete model
- bl delete policy
- bl delete sandbox
Blaxel CLI
Interact with Blaxel through a command line interface.
Blaxel CLI is a command line tool to interact with the Blaxel APIs.
Install
Install Blaxel CLI by running the two following commands successively in a terminal:
brew tap blaxel-ai/blaxel
brew install blaxel
Install Blaxel CLI by running the following command in a terminal (alternatives below):
curl -fsSL \
https://raw.githubusercontent.com/blaxel-ai/toolkit/main/install.sh \
| BINDIR=/usr/local/bin sudo -E sh
If you need to specify a version (e.g. v0.1.21):
curl -fsSL \
https://raw.githubusercontent.com/blaxel-ai/toolkit/main/install.sh \
| VERSION=v0.1.21 BINDIR=/usr/local/bin sudo -E sh
Install Blaxel CLI by running the following command in a terminal (alternatives below):
curl -fsSL \
https://raw.githubusercontent.com/blaxel-ai/toolkit/main/install.sh \
| BINDIR=/usr/local/bin sudo -E sh
If you need to specify a version (e.g. v0.1.21):
curl -fsSL \
https://raw.githubusercontent.com/blaxel-ai/toolkit/main/install.sh \
| VERSION=v0.1.21 BINDIR=/usr/local/bin sudo -E sh
For the most reliable solution, we recommend adapting the aforementioned Linux commands by using Windows Subsystem for Linux.
First install WSL (Windows Subsystem for Linux) if not already installed. This can be done by:
- Opening PowerShell as Administrator
- Running:
wsl --install -d Ubuntu-20.04
- Restarting the computer
- From the Microsoft Store, install the Ubuntu app
- Run the command line using the aforementioned Linux installation process. Make sure to install using sudo.
Update
brew upgrade blaxel
Update Blaxel CLI by running the following command in a terminal (alternatives below):
curl -fsSL \
https://raw.githubusercontent.com/blaxel-ai/toolkit/main/install.sh \
| BINDIR=/usr/local/bin sudo -E sh
If you need to specify a version (e.g. 0.1.21):
curl -fsSL \
https://raw.githubusercontent.com/blaxel-ai/toolkit/main/install.sh \
| VERSION=v0.1.21 BINDIR=$HOME/.local/bin sh
Update Blaxel CLI by running the following command in a terminal (alternatives below):
curl -fsSL \
https://raw.githubusercontent.com/blaxel-ai/toolkit/main/install.sh \
| BINDIR=/usr/local/bin sudo -E sh
If you need to specify a version (e.g. 0.1.21):
curl -fsSL \
https://raw.githubusercontent.com/blaxel-ai/toolkit/main/install.sh \
| VERSION=v0.1.21 BINDIR=$HOME/.local/bin sh
For the most reliable solution, we recommend adapting the aforementioned Linux commands by using Windows Subsystem for Linux.
First make sure WSL (Windows Subsystem for Linux) is installed if not already. This can be done by:
- Opening PowerShell as Administrator
- Running:
wsl --install -d Ubuntu-20.04
- Restarting the computer
- From the Microsoft Store, install the Ubuntu app
- Run the command line using the aforementioned Linux installation process. Make sure to install using sudo.
Get started
To get started with Blaxel CLI, your must first create a workspace on the Blaxel console. Then, login to Blaxel using this command. Find your workspace ID in the top left sidebar corner of Blaxel Console:
bl login <<WORKSPACE-ID>>
You will be prompted to finish login using either an API key, or through your browser.
Set a workspace to use as a context for the session by using the following command:
bl workspaces your-workspace
### You can retrieve the list of all your workspaces by running:
bl workspaces
You can now run any command to interact with Blaxel resources in your workspace. For example, to list agents:
bl get agents
Options
-h, --help Get the help for Blaxel
-w, --workspace string Specify the Blaxel workspace to work on.
-o, --output string Output format. One of: pretty, yaml, json, table
-v, --verbose Enable verbose output
Was this page helpful?