Use this file to discover all available pages before exploring further.
The oc CLI lets you manage OpenComputer sandboxes directly from your terminal — create sandboxes, run commands, open interactive shells, manage checkpoints, and more.
# Create a sandboxoc create# Run a command and wait for the resultoc exec sb-abc123 --wait -- echo "Hello from the cloud"# Open an interactive shelloc shell sb-abc123# Clean upoc sandbox kill sb-abc123
All commands support --json for machine-readable output:
# Get a sandbox ID programmaticallyID=$(oc create --json | jq -r '.sandboxID')# List all running sandbox IDsoc ls --json | jq -r '.[].sandboxID'# Run a command and capture the resultRESULT=$(oc exec $ID --json --wait -- npm test)echo $RESULT | jq '.exitCode'