Blaxel CLI is a command line tool to interact with the Blaxel APIs.

Install

Update

Shell autocompletion

To enable shell autocompletion for Blaxel CLI commands, run one of the following:
echo 'eval "$(bl completion zsh)"' >> ~/.zshrc

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:
bl login
In case you have multiple workspaces, the one you logged in to will be used automatically in every command you used with our CLI. You can login to as much workspace as you want To set your context to a different workspace you already logged in to, use 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