Skip to main content

bl apply

Apply a configuration to a resource by file

Synopsis

Apply configuration changes to resources declaratively using YAML files. This command is similar to Kubernetes ‘kubectl apply’ - it creates resources if they don’t exist, or updates them if they do (idempotent operation). Use ‘apply’ for Infrastructure as Code workflows where you:
  • Manage resources via configuration files
  • Version control your infrastructure
  • Deploy multiple related resources together
  • Implement GitOps practices
Difference from ‘deploy’:
  • ‘apply’ manages resource configuration (metadata, settings, specs)
  • ‘deploy’ builds and uploads code as container images
For deploying code changes to agents/jobs, use ‘bl deploy’. For managing resource configuration, use ‘bl apply’. The command respects environment variables and secrets, which can be injected via -e flag for .env files or -s flag for command-line secrets.

Examples

Options

Options inherited from parent commands

SEE ALSO

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