wer export

Export a resource to a YAML file for backup or sharing.

Usage

wer export <resource-type> <name> -o <file>

Description

The export command writes the YAML definition of a resource to a file. This is useful for creating backups, sharing configurations with teammates, or migrating resources between machines. The exported file can later be imported with wer import or applied with wer apply.

Flags

Flag Description
-o, --output Path to the output file (required)

Examples

# Export a workstation definition to a file
wer export workstation my-dev -o my-dev.yaml

# Export a workstation config
wer export workstationconfig default-config -o config-backup.yaml

# Export an SSH key resource
wer export sshkey my-key -o sshkey-backup.yaml