Create and initialize a new DaytonaSandbox in one step.
This is the recommended way to create a sandbox. It combines construction and initialization into a single async operation.
create(options: DaytonaSandboxOptions): Promise<DaytonaSandbox>| Name | Type | Description |
|---|---|---|
options | DaytonaSandboxOptions | Configuration options for the sandbox |
const sandbox = await DaytonaSandbox.create({
language: "typescript",
cpu: 2,
memory: 4,
});