- using the CLI
- manually using the SDK
CLI
You can use the E2B CLI to create a new template.1
Install the E2B CLI
Install the latest version of the E2B CLI
2
Initialize a new template
3
Follow the prompts
Follow the prompts to create a new template.
4
Done
Check the generated
README.md file to see how to build and use your new template.Manual
Install the packages
Requires the E2B SDK version at least 2.3.0
.env file
Create a new template file
Create a template file with the following name and contentCreate a development build script
Create a production build script
Build the template
Build the development templateCreate a new Sandbox from the Template
The template name is the identifier that can be used to create a new Sandbox.