Skip to main content

bl deploy

Build, push, and deploy your project to Blaxel

Synopsis

Deploy your Blaxel project to the cloud. This command packages your code, builds a container image, and deploys it to your workspace. The deployment process includes:
  1. Reading configuration from blaxel.toml
  2. Packaging source code (respects .blaxelignore)
  3. Building container image with your runtime and dependencies
  4. Uploading to Blaxel’s container registry
  5. Creating or updating the resource in your workspace
  6. Streaming build and deployment logs (interactive mode)
A blaxel.toml configuration file is required. By default, the command looks for it in the current directory. Use -d to specify a subdirectory containing the blaxel.toml (useful for monorepo setups). If the blaxel.toml contains an ‘image’ field pointing to a registry image, the platform will pull the image and transform it via metamorph before deploying. For private registries, supply credentials via —registry-cred or —docker-config. Interactive vs Non-Interactive:
  • Interactive (default): Shows live logs and deployment progress with TUI
  • Non-interactive (—yes or CI): Runs without interactive UI, suitable for automation
Environment Variables and Secrets: Use -e to load .env files or -s to pass secrets directly via command line. Secrets are injected into your container at runtime and never stored in images. Monorepo Support: Use -d to deploy a specific subdirectory, or -R to recursively deploy all projects in a monorepo (looks for blaxel.toml in subdirectories).

Examples

Options

Options inherited from parent commands

SEE ALSO

  • bl - Blaxel CLI - manage and deploy AI agents, sandboxes, and resources
Last modified on June 6, 2026