wer wait
Wait for a resource to reach a specified status.
Usage
wer wait <resource-type> <name> --for=<status> Description
The wait command blocks until the specified resource reaches the desired
status condition. This is particularly useful in scripts and automation, where you need
to ensure a workstation is fully running before executing subsequent commands like
wer shell or wer tmux.
Flags
| Flag | Description |
|---|---|
--for | The status condition to wait for (e.g., Running, Stopped) |
Examples
# Wait for a workstation to be running
wer wait workstation my-dev --for=Running
# Start a workstation and wait for it, then connect
wer start my-dev && wer wait workstation my-dev --for=Running && wer shell my-dev
# Wait for a workstation to stop
wer wait workstation my-dev --for=Stopped