Skip to main content
You are currently viewing documentation for version 2.5.0 of the E2B SDK (Python).View the latest version of this page.

Template

Synchronous template builder for E2B sandboxes.

build

Build and deploy a template to E2B infrastructure. Arguments:
  • template: The template to build
  • alias: Alias name for the template
  • cpu_count: Number of CPUs allocated to the sandbox
  • memory_mb: Amount of memory in MB allocated to the sandbox
  • skip_cache: If True, forces a complete rebuild ignoring cache
  • on_build_logs: Callback function to receive build logs during the build process
  • api_key: E2B API key for authentication
  • domain: Domain of the E2B API Example