Skip to main content

bl push

Build and push a container image to the Blaxel registry

Synopsis

Build and push a container image to the Blaxel registry without creating a deployment. This command packages your code, uploads it, and builds a container image that is stored in the workspace registry. Unlike ‘bl deploy’, this command does NOT create or update any resource (agent, function, sandbox, or job). The process includes:
  1. Reading configuration from blaxel.toml
  2. Packaging source code (respects .blaxelignore)
  3. Uploading to Blaxel’s build system via presigned URL
  4. Building container image
  5. Streaming build logs until the image is ready
If the blaxel.toml contains an ‘image’ field pointing to a registry image (e.g. docker.io/myorg/myapp:latest), the platform will pull the image and transform it for the target runtime via metamorph. If the same image was already built, the build is triggered again by default. Use —skip-build to skip the build if the image was already built. Use —memory and —volume (MiB) to size the temporary build or import worker. These flags override [build].memoryMb and [build].volumeMb in blaxel.toml. Omitting both uses project settings or platform defaults; —volume 0 requests memory-backed scratch. These settings do not change runtime resources. For private registries, supply credentials via —registry-cred or —docker-config.

Examples

Options

Options inherited from parent commands

SEE ALSO

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