Skip to main content

bl new

Scaffold a new project from a template (agent, app, mcp, sandbox, job, volume-template)

Synopsis

Create a new Blaxel resource from templates. This command scaffolds a new project with the necessary configuration files, dependencies, and example code to get you started quickly. Resource Types: agent - AI agent application that can chat, use tools, and access data Use cases: Customer support bots, coding assistants, data analysts app - Web application deployed on Blaxel infrastructure Use cases: Next.js apps, web services, frontend applications mcp - Model Context Protocol server that extends agent capabilities Use cases: Custom tools, API integrations, database connectors sandbox - Isolated execution environment for testing and running code Use cases: Code execution, testing, isolated workloads job - Batch processing task that runs on-demand or on schedule Use cases: ETL pipelines, data processing, scheduled workflows, GitHub Actions runners volumetemplate - Pre-configured volume template for creating volumes Use cases: Persistent storage templates, data volume configurations Template Discovery: Use —list to see all available templates with descriptions before creating. Combine with a type argument to filter: ‘bl new agent —list’ Interactive Mode (Recommended): When called without arguments, the CLI guides you through:
  1. Choosing a resource type
  2. Selecting a template (language/framework)
  3. Naming your project directory
  4. Setting up initial configuration
Non-Interactive Mode: Use —template and —yes flags for automation and CI/CD workflows. After Creation:
  1. cd into your new directory
  2. Review and customize the generated blaxel.toml configuration
  3. Follow the resource-specific instructions printed after scaffolding
  4. Test the resource and deploy it when ready

Examples

Options

Options inherited from parent commands

SEE ALSO

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