Usage
--from:
Examples
Create a Devbox interactively
Create a named Devbox for a repository
Create a Windows Devbox
devbox image list --platform windows to see the available images. Windows Devboxes are in early access and support ephemeral Devboxes only.
Check out multiple repositories
Repeat--checkout for each repository:
Create a Devbox from a YAML specification
.json, .yaml, .yml, and .toml.
Read a specification from standard input
--from_format to select another format.
Options
Set the Devbox access mode to
private or workspace. When omitted, the workspace default applies.Create the Devbox from the latest version of the named Blueprint. This option cannot be combined with
--from or --platform.Check out this repository. Repeat the option to check out multiple repositories. When omitted, the workspace default repository applies. This option cannot be combined with
--no_checkout.Create an ephemeral Devbox whose instance and storage are discarded when it stops. Always enabled for Windows Devboxes in early access.
Load a Devbox specification from a JSON, YAML, or TOML file. Pass
- to read from standard input.Force the
--from input format to json, yaml, or toml instead of inferring it from the filename. Standard input defaults to YAML.Use a Linux image name or reference, or a managed macOS or Windows image name. When omitted, the CLI prompts for an image. This option cannot be combined with
--image_ref.Skip repository checkout, including the workspace default. This option cannot be combined with
--checkout.Select
linux, linux/amd64, macos, macos/arm64, windows, or windows/amd64. --machine_type is an alias. This option cannot be combined with --from or --blueprint.Configure
gh and Git authentication in the Devbox from the local GitHub token. Requires activation.Select
s, m, l, or xl for Linux and Windows, or m or l for macOS. When omitted, the CLI prompts for a size.Related topics
Devbox Lifecycle
Create, list, stop, and delete Devboxes.
Spec file
Every field accepted by
--from.Blueprints
Define reusable Devbox configurations.
Custom images
Build images for use with
--image.