Skip to main content
Blaxel CLI (bl) is a command line tool to interact with the Blaxel APIs.

Install

To install Blaxel CLI with Homebrew, make sure Homebrew is installed on your machine. Homebrew 6.0.0+ requires explicit trust for non-official taps, so use the fully qualified formula name below. We are currently in the process of supporting additional installers. Check out the cURL method down below for general installation.
Install Blaxel CLI by running the following command in a terminal:
Install Blaxel CLI by running the following command in a terminal (non-sudo alternatives below):
If you need a non-sudo alternative (it will ask you questions to configure):
If you need to install a specific version (e.g. v0.1.21):
Install Blaxel CLI by running the following command in a terminal (non-sudo alternatives below):
If you need a non-sudo alternative (it will ask you questions to configure):
If you need to install a specific version (e.g. v0.1.21):
Run the following command in PowerShell:
Alternatively, you can use Windows Subsystem for Linux (WSL) and follow the Linux installation instructions.

Update

Update Blaxel CLI by running the following command in a terminal:
If you need to update to a specific version (e.g. v0.1.21):
You can also upgrade using Homebrew:
Update Blaxel CLI by running the following command in a terminal:
If you need to update to a specific version (e.g. v0.1.21):
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.

Shell autocompletion

To enable shell autocompletion for Blaxel CLI commands, run one of the following:

Get started

First, create a workspace on the Blaxel console. Then, login to Blaxel:
If you have multiple workspaces, the one you last logged into will be used automatically in every subsequent command you run. You can login to as many workspaces as you want. To set your context to a different workspace you already logged in to, use the following command:
Basic commands to scaffold, develop, and deploy your resources:
CommandPurpose
bl newScaffold a new local project (code + blaxel.toml)
bl deployBuild image + push image + create/update resource + watch logs
bl pushBuild image + push image to Blaxel registry (no resource created or updated)
bl applyDeclarative resource creation/update using YAML files, similar to kubectl apply
bl serveLocal execution (not available for sandboxes)
bl deploy is an all-in-one command that packages local files into an image, pushes it as a template, and deploys it as a resource on Blaxel. Use the --skip-build flag to skip image rebuilding. Use bl push instead to only build and push the image. Interact with existing resources in your workspace:

Options

Last modified on July 15, 2026