Skip to content

Conversation

dobrac
Copy link
Contributor

@dobrac dobrac commented Oct 2, 2025

Add template build-v2 command that uses template SDK


Note

Introduces template build-v2 (alias bd-v2) to build sandbox templates from a Dockerfile via the Template SDK, with CPU/memory and start/ready command options.

  • CLI – Template:
    • New build-v2 command (bd-v2) in packages/cli/src/commands/template/build-v2.ts using the Template SDK to build from a Dockerfile.
      • Supports --dockerfile, --cmd/--ready-cmd, --cpu-count, --memory-mb, --no-cache, and --path.
      • Validates template name and even memory-mb; reads Dockerfile via getDockerfile.
      • Builds via Template.build with apiKey, domain, optional logs, and exits on error.
      • Prints success message with Python/TypeScript usage snippets.
    • Registered command in packages/cli/src/commands/template/index.ts.
  • Release:
    • Changeset adds patch for @e2b/cli.

Written by Cursor Bugbot for commit 74f4d76. This will update automatically on new commits. Configure here.

@dobrac dobrac added the feature New feature or request label Oct 2, 2025
Copy link

linear bot commented Oct 2, 2025

Copy link

changeset-bot bot commented Oct 2, 2025

🦋 Changeset detected

Latest commit: 74f4d76

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@e2b/cli Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@dobrac dobrac force-pushed the implement-v2-of-cli-template-build-command-eng-3041 branch from 6ef4fb1 to 74f4d76 Compare October 2, 2025 15:58
@dobrac dobrac marked this pull request as ready for review October 2, 2025 16:03
@jakubno jakubno self-assigned this Oct 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants