wer create

Create a resource from command line flags.

Usage

wer create <type> <name> [flags]

Description

The create command creates a new resource using command line flags without needing a YAML file. You specify the resource type, name, and configuration via flags. This is a convenient alternative to writing a YAML file and using wer apply.

Supported resource types are workstation (or ws) and workstationconfig (or wc).

Arguments

Argument Description
type The type of resource to create (workstation or workstationconfig)
name The name for the new resource

Flags (Workstation)

Flag Description
--provider Cloud provider (default: gcp)
--machine-type Machine type (e.g., e2-medium)
--region Region (e.g., us-central1)
--disk-size Disk size (e.g., 50GB)
--os Operating system (default: debian-13)

Flags (WorkstationConfig)

Flag Description
--packages Comma-separated list of packages to install
--selector Label selector as key=value pairs

Common Flags

Flag Description
-l, --labels Labels as key=value pairs
--wait Wait for the resource to reach its expected status
--wait-timeout Maximum time to wait (e.g., 30s, 5m). 0 means no timeout

Examples

# Create an AWS workstation
wer create workstation my-vm --provider=aws --region=us-east-1 --machine-type=t2.micro

# Create a GCP workstation
wer create workstation my-vm --provider=gcp --machine-type=e2-medium --region=us-central1

# Create with labels and wait until running
wer create workstation my-vm --provider=aws -l team=platform --wait

# Create a workstation config with packages and a selector
wer create workstationconfig dev-tools --packages=vim,tmux --selector=team=platform