Start a stopped workspace from the command line

Start a stopped workspace from the command line by setting the spec.started field in the DevWorkspace custom resource to true. .Prerequisites

About this task

Procedure

Run the following command to start a stopped workspace:
$ oc patch devworkspace <workspace_name> \
-p '{"spec":{"started":true}}' \
--type=merge -n <user_namespace> && \
oc wait --for=jsonpath='{.status.phase}'=Running \
dw/<workspace_name> -n <user_namespace>