wer export
Export a workstation to an encrypted file for backup or migration.
Usage
wer export workstation <name> [flags] Description
The export command exports a workstation with all its data, including internal
state and SSH keys. The export is encrypted by default with a randomly generated 32-character
password that is printed to stderr. This is useful for creating backups, migrating
workstations between machines, or sharing configurations with teammates.
The exported file uses the .werexport format and can be imported back with
wer import. Export is currently only supported for workstations.
Arguments
| Argument | Description |
|---|---|
type | Resource type - must be workstation (or ws) |
name | The name of the workstation to export |
Flags
| Flag | Description |
|---|---|
-o, --output | Output file path (default: stdout) |
--password-stdin | Read encryption password from stdin instead of auto-generating one |
--no-password | Disable encryption (not recommended - the export contains SSH keys) |
Examples
# Export a workstation (password auto-generated, printed to stderr)
wer export workstation my-vm -o my-vm.werexport
# Export with a specific password
echo "my-secret-password" | wer export workstation my-vm --password-stdin -o my-vm.werexport
# Export without encryption (not recommended)
wer export workstation my-vm --no-password -o my-vm.werexport