Before you begin
Use the v0.13 CLI and authenticate. Run workspace-management and recipe commands from your local terminal. Commands identified as running inside a workspace require its console terminal or SSH session. Replace example resource IDs with the values returned for your account.Workspace Lifecycle
Every workspace moves through a predictable set of states:A stopped workspace retains its disk contents. You can restart it at any time without losing files or installed packages.
Creating a Workspace
Use the Rigbox CLI to create a workspace. Replace<WORKSPACE_NAME> with a name of your choice (for example, my-project):
--name is required. Omit the resource flags to use the selected template’s defaults. If requested resources are below the template or catalog floor, Rigbox raises them before creating the workspace. rig workspace new prints the new workspace’s ID, status, and connection info on stdout.
For the underlying HTTP shape, see Create Workspace in the API reference.
Quick Deploy with a Template
If you don’t need custom sizing, deploy from a pre-configured template in one command:rig workspace spawn creates the workspace, starts it, and waits until it’s ready - all in one call. See Images & Templates for the list of templates, or Quick Deploy for the API.
Starting a Workspace
Boot a previously-stopped workspace and wait for it to becomerunning:
rig workspace start polls the workspace status internally and returns once the VM is up. If a stopped workspace is below its template or catalog resource floor, Rigbox raises the stored resources before booting. Add --wait-for-apps to wait for workspace apps to report active before the command returns. For scripting, rig workspace ls prints the current state. See Start Workspace for the API form.
rig workspace restart stops a running workspace, starts it again, and waits the same way.
Workspace is ready
Oncerunning, you can SSH in, expose ports, install catalog apps, and more. rig workspace spawn, start, and restart set up SSH access from your machine when the workspace comes up and print the command, so ssh <WORKSPACE_NAME> connects.
Stopping a Workspace
Stopping a workspace shuts down the VM but preserves the disk. You can restart it later.Resizing a Workspace
You can change the RAM, vCPU count, and disk size of a workspace. The workspace must be stopped first.Environment Variables
Set workspace environment variables. The API saves them and updates guest configuration files for a running workspace; existing processes must reload their configuration or restart to use new values.Live Metrics
Read the latest CPU, RAM, and disk metrics. Repeat the command when you need a new sample.--output json and pipe to jq:
Logs
Read workspace logs or follow the log stream:/logs/stream returns Server-Sent Events.
Deleting a Workspace
Complete Example: Spawn a Workspace
End-to-end with a single command -rig workspace spawn creates the workspace, boots it, and waits until it’s ready:
rig workspace ssh-info --workspace demo-workspace prints the full connection details.
Verify and troubleshoot
Inspectrig workspace ls and rig workspace services --workspace WORKSPACE_ID. For installed apps, check their status and health before opening the returned URL. A created resource or running VM does not by itself prove the application is ready.
For failures, start with runtime logs, health checks, or resource exhaustion.
Next Steps
- Images & Templates - choose the right base image
- Expose Ports & Route Apps - make services accessible at
*.rigbox.dev - Catalog Apps - install VS Code, Jupyter, and more in one call