wer apply
Apply a configuration from a file to create or update resources.
Usage
wer apply -f <file> Description
The apply command reads a YAML configuration file and creates or updates
the resources defined within it. This is the declarative way to manage werkr resources,
similar to kubectl apply. Supported resource types include
Workstation, WorkstationConfig, SSHKey, and
ProviderConfig.
If a resource with the same name already exists, it will be updated to match the configuration in the file. If it does not exist, it will be created.
Flags
| Flag | Description |
|---|---|
-f, --file | Path to the YAML configuration file (required) |
Examples
# Apply a workstation configuration from a file
wer apply -f workstation.yaml
# Apply a provider config
wer apply -f provider.yaml
# Apply an SSH key definition
wer apply -f sshkey.yaml