Create a new Devbox and wait for it to reach the running state. This is the recommended way to create a devbox as it ensures it's ready to use.
Supports the convenient SDK mount syntax for StorageObjects:
mounts: [{ '/path/on/devbox': storageObject }]
Optionalparams: SDKDevboxCreateParamsParameters for creating the devbox, with SDK mount syntax support.
Optionaloptions: RequestOptions<unknown> & { polling?: Partial<PollingOptions<DevboxView>> }Request options including polling configuration.
A Devbox instance.
Create a new devbox from a blueprint ID.
The ID of the blueprint to use.
Optionalparams: Omit<DevboxCreateParams, "blueprint_id" | "blueprint_name" | "snapshot_id">Additional parameters for creating the devbox (excluding blueprint_id, snapshot_id, and blueprint_name).
Optionaloptions: RequestOptions<unknown> & { polling?: Partial<PollingOptions<DevboxView>> }Request options including polling configuration.
A Devbox instance.
Create a new devbox from a blueprint name.
The name of the blueprint to use.
Optionalparams: Omit<DevboxCreateParams, "blueprint_id" | "blueprint_name" | "snapshot_id">Additional parameters for creating the devbox (excluding blueprint_id, snapshot_id, and blueprint_name).
Optionaloptions: RequestOptions<unknown> & { polling?: Partial<PollingOptions<DevboxView>> }Request options including polling configuration.
A Devbox instance.
Create a new devbox from a snapshot.
The ID of the snapshot to use.
Optionalparams: Omit<DevboxCreateParams, "blueprint_id" | "blueprint_name" | "snapshot_id">Additional parameters for creating the devbox (excluding snapshot_id, blueprint_id, and blueprint_name).
Optionaloptions: RequestOptions<unknown> & { polling?: Partial<PollingOptions<DevboxView>> }Request options including polling configuration.
A Devbox instance.
Get a devbox object by its ID.
The ID of the devbox.
A Devbox instance.
List devboxes with optional filters (paginated).
Optionalparams: DevboxListParamsOptional filter parameters.
Optionaloptions: RequestOptions<unknown>Request options.
An array of Devbox instances.
Devbox SDK interface for managing devboxes.
Remarks
Overview
The
DevboxOpsclass provides a high-level abstraction for managing devboxes, which are isolated development environments running in Runloop's cloud infrastructure. Devboxes can be created from blueprints or snapshots, and support command execution, file operations, and lifecycle management.Usage
This interface is accessed via RunloopSDK.devbox. You should construct a RunloopSDK instance and use it from there:
Example