doctl compute microvm create

Generated on 17 Nov 2026 from doctl version v2.5.2

Usage

doctl compute microvm create <microvm-name> [flags]

Aliases

c

Description

Creates a new MicroVM. Provide exactly one of --oci-ref or --checkpoint-id. When creating from an OCI ref, --region, --cpu, and --memory are required. When restoring from a checkpoint, region/size/environment may be omitted to inherit from the checkpoint.

Flags

Option Description
--auto-pause Whether the MicroVM auto-pauses after the idle timeout. Omit to keep the product default (enabled). Pass --auto-pause=false to disable
Default: false
--auto-pause-idle-timeout Idle duration before auto-pause (e.g. 5m, 30s). Can be set without --auto-pause
--auto-resume Whether the MicroVM auto-resumes on incoming HTTP traffic. Omit to keep the default (enabled). Pass --auto-resume=false to require an explicit resume
Default: false
--checkpoint-id Checkpoint UUID to restore (mutually exclusive with --oci-ref)
--cpu Number of vCPUs (required for --oci-ref; optional for --checkpoint-id)
Default: 0
--egress-allow A destination the MicroVM may connect to: an exact domain (api.example.com), a wildcard (*.example.com), or an exact IP address. Repeatable. Setting an egress flag restricts outbound traffic to HTTP and HTTPS through the platform proxy, only to the allowed destinations. Public networking only; the policy cannot be changed after create.
--egress-default-action What to do with a destination no --egress-allow rule matches: deny or allow. Defaults to deny when an egress policy is set
--env Environment variables to inject, in KEY=VALUE form. Repeatable.
--format Columns for output in a comma-separated list. Possible values: ID, Name, Region, State, Size, Networking, Source, Endpoint, Ports, Protocol, Tags, FailureReason, Created.
--help, -h Help for this command
--http-port HTTP port exposed by the MicroVM workload
Default: 0
--http-protocol HTTP protocol served by the MicroVM: http or http2
--ingress Whether to create the MicroVM with a default public URL. Pass --ingress=false to create it without one; URLs can be added later with doctl compute microvm url add.
Default: true
--memory Memory in MiB (required for --oci-ref; optional for --checkpoint-id)
Default: 0
--networking Networking mode for the MicroVM: public or vpc
--no-header Return raw data with no headers
Default: false
--oci-ref OCI reference for the workload container (mutually exclusive with --checkpoint-id)
--ports Guest ports to open for ingress. Repeatable. Defaults to just --http-port when omitted.
--region A slug specifying the region to create the MicroVM in, such as nyc1 (required for --oci-ref; optional for --checkpoint-id)
--tag Tags to apply to the MicroVM. Repeatable.
--vpc-uuid The UUID of a non-default VPC to place the MicroVM in (only valid when --networking=vpc)
Command Description
doctl compute microvm Manage MicroVMs

Global Flags

Option Description
--access-token, -t API V2 access token
--api-url, -u Override default API endpoint
--config, -c Specify a custom config file
Default:
    --context Specify a custom authentication context name
    --http-retry-max Set maximum number of retries for requests that fail with a 429 or 500-level error
    Default: 5
    --http-retry-wait-max Set the minimum number of seconds to wait before retrying a failed request
    Default: 30
    --http-retry-wait-min Set the maximum number of seconds to wait before retrying a failed request
    Default: 1
    --interactive Enable interactive behavior. Defaults to true if the terminal supports it (default false)
    Default: false
    --output, -o Desired output format [text|json]
    Default: text
    --show Reveal masked values, such as secrets, instead of hiding them. Values are unmasked automatically in CI
    Default: false
    --trace Show a log of network activity while performing a command
    Default: false
    --verbose, -v Enable verbose output
    Default: false

    We can't find any results for your search.

    Try using different keywords or simplifying your search terms.