wer edit
Edit a resource in your default editor.
Usage
wer edit <type> <name> Description
The edit command opens the YAML definition of a resource in your default
editor. The editor is determined by checking: $WER_EDITOR,
$EDITOR, $VISUAL environment variables (in that order),
then platform defaults - on Linux the editor command (respects
update-alternatives), nano, or vi;
on Windows, notepad. When you save and close the editor, werkr will apply the
changes to the resource. If there is a parse or validation error, the editor is re-opened
with the error shown as a comment at the top of the file.
The resource's kind and name cannot be changed during editing.
The resourceVersion field provides optimistic concurrency - if another process
modified the resource while you were editing, the edit will fail.
Arguments
| Argument | Description |
|---|---|
type | The type of resource to edit (workstation, workstationconfig, or sshkey) |
name | The name of the resource to edit |
Examples
# Edit a workstation
wer edit workstation my-vm
# Using the short alias
wer edit ws my-vm
# Edit a workstation config
wer edit wc dev-tools
# Edit an SSH key
wer edit sk my-key