doctl harness-runtime workspace create

Generated on 17 Nov 2026 from doctl version v2.5.2

Usage

doctl harness-runtime workspace create [flags]

Description

Create a persistent workspace. --size-limit-gib is required: the size limit of the workspace in GiB, a whole number from 1 to 100, and your team’s limit may be lower. The size limit cannot be changed later. --name is an optional label and is not unique.

Safe to retry. Each run sends one idempotency key, so a request that doctl repeats within the run cannot create a second workspace. doctl makes up a key unless you pass --idempotency-key. A script that re-runs the whole command must pass its own key: without one, every run is a new workspace. Within 24 hours the same key with the same size and name returns the first workspace; the same key with different values is rejected. If the workspace that key created is being deleted, the retry is refused with a conflict; try again in a moment and the key then creates a new workspace.

Example

doctl harness-runtime workspace create --size-limit-gib 10 --name notes;

Flags

Option Description
--format Columns for output in a comma-separated list. Possible values: WorkspaceID, Name, State, SizeLimitGiB, BytesUsed, AttachedSessionID, LastSavedAt, CreatedAt.
--help, -h Help for this command
--idempotency-key Key that makes a repeated create return the first workspace. Generated for you when omitted; pass your own when a script may re-run this command.
--name Optional label for the workspace. Not unique.
--no-header Return raw data with no headers
Default: false
--size-limit-gib Size limit of the workspace in GiB, a whole number from 1 to 100 (required). Cannot be changed later.
Default: 0
Command Description
doctl harness-runtime workspace Manage persistent workspaces (files kept between sessions)

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
    --region Datacenter region to address, for example 'mem1'. Selects the regional API host; defaults to ric1, which the region-less host serves. A resource is reachable only in the region that holds it.
    --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.