client.blueprints. Create, fetch, list, update, and delete blueprints, or iterate through every blueprint in a workspace.
blueprints.create()
Create a named blueprint from a complete definition.
Example
API reference
Arguments and options
string
required
The blueprint name.
BlueprintDefinition
required
The complete configuration. See Blueprint definitions.
OperationOptions
site to "iad" and access to "private". Blueprint sizes are resolved by the SDK and must be "s", "m", "l", or "xl". volumeSizeGB must be a non-negative safe integer.
Return value
Returns the createdBlueprint.
blueprints.get()
Fetch a blueprint by name.
Example
API reference
Arguments and options
string
required
The blueprint name.
OperationOptions
Optional cancellation signal and timeout.
Return value
Returns the matchingBlueprint.
blueprints.list()
List one page of blueprints.
Example
API reference
Arguments and options
ListBlueprintsOptions
Return value
Returns aPage<Blueprint>.
blueprints.iterate()
Iterate through all blueprints, fetching additional pages automatically.
Example
API reference
Arguments and options
Accepts thelimit, orderBy, signal, and timeoutMs list options. Do not pass a cursor because iteration manages pagination.
Return value
Returns an async iterator ofBlueprint objects.
blueprints.update()
Replace the complete definition of an existing blueprint.
Example
API reference
Arguments and options
string
required
The blueprint name.
BlueprintDefinition
required
The complete replacement definition.
OperationOptions
Optional cancellation signal and timeout.
create() apply.
Return value
Returns the updatedBlueprint.
blueprints.delete()
Delete a blueprint by name.
Example
API reference
Arguments and options
string
required
The blueprint name.
OperationOptions
Optional cancellation signal and timeout.
Return value
The promise resolves after the blueprint has been deleted.Blueprint definitions
string
required
An image name or a full image reference. Strings containing
/, @, or : are treated as full references.MachineSize
One of
"s", "m", "l", or "xl".string
The site where Devboxes are created. Defaults to
"iad".string
A description shown with the blueprint.
"private" | "workspace"
Who can use the blueprint. Defaults to
"private".Record<string, string>
Environment variables added to Devboxes.
number
Persistent volume size in GB. Must be a non-negative safe integer.
boolean | { stoppedRetentionMs?: number }
Enables ephemeral behavior. The object form sets retention after stopping.
string[]
Devbox feature names to enable.
NetworkPolicy
Egress policy for the Devbox.
number
Minimum time the Devbox remains busy.
Blueprint fields
string
required
The immutable blueprint ID.
string
required
The blueprint name.
bigint
required
The blueprint version.
Date
When the blueprint was created.
Date
When the blueprint was last updated.
BlueprintDefinition
required
The stored definition.
Page fields
Blueprint[]
required
The blueprints in this page.
string
An opaque cursor for the next page. Its absence means there are no more results.