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

Install

Get started

To get started with Blaxel CLI, your must first create a workspace on the Blaxel console. Then, login to Blaxel using the following command and replacing your-workspace:

bl login your-workspace

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