wer import
Import a workstation from a previously exported file.
Usage
wer import <file> [flags] Description
The import command reads a previously exported .werexport file
and imports the workstation back into werkr. If the export file is encrypted, you will be
prompted for the password. The imported workstation will be created in your local werkr
environment.
Use - as the file argument to read from stdin (cannot be combined with
--password-stdin). If a workstation with the same name already exists, you
must delete it first before importing.
Arguments
| Argument | Description |
|---|---|
file | Path to the .werexport file, or - to read from stdin |
Flags
| Flag | Description |
|---|---|
--password-stdin | Read decryption password from stdin (for scripting) |
--no-password | Import without decryption (for unencrypted exports) |
--mode | Override spec.mode on imported workstations. owner (default) gives werkr full control to manage the workstation lifecycle. observe makes werkr only monitor the workstation without making changes - useful for connecting to a workstation managed by another werkr instance |
Examples
# Import a workstation (prompts for password)
wer import my-vm.werexport
# Import with password from stdin
echo "my-secret-password" | wer import --password-stdin my-vm.werexport
# Import an unencrypted export
wer import --no-password my-vm.werexport
# Import from stdin
cat my-vm.werexport | wer import -
# Import and set mode to observe
echo "my-secret-password" | wer import --password-stdin --mode observe my-vm.werexport