wer copy
Copy a resource, creating a duplicate with a new name.
Usage
wer copy <type> <name> [flags] Description
The copy command duplicates an existing resource under a new name. The
original resource is fetched, its metadata is cleaned (timestamps, version, and status are
removed), and a new name is assigned.
By default, the copy is opened in your editor for modification before being applied. Use
--no-edit to skip the editor and apply immediately. If --name is
not specified, a unique name is generated automatically (e.g., my-vm-copy,
my-vm-copy1, etc.).
Arguments
| Argument | Description |
|---|---|
type | The type of resource to copy (workstation, workstationconfig, sshkey) |
name | The name of the existing resource to copy |
Flags
| Flag | Description |
|---|---|
--name | Name for the copy. If not specified, a unique name is auto-generated |
--no-edit | Skip the editor and apply the copy immediately |
Examples
# Copy with auto-generated name (opens editor)
wer copy workstation my-vm
# Copy with a specific name (opens editor)
wer copy workstation my-vm --name my-vm-v2
# Copy without opening the editor
wer copy workstation my-vm --name my-vm-v2 --no-edit
# Copy with auto-generated name, skip editor
wer copy workstation my-vm --no-edit