Skip to content

CLI Reference

The Workrock CLI (workrock) is your Swiss Army knife for building apps.

Authenticates your local machine with the Workrock Marketplace.

  • Process: Opens a browser window for login and captures a token via a local callback.
  • Storage: Tokens are saved in ~/.workrock/config.json.

Links the current directory to a Marketplace application.

  • Usage: Run this inside your app’s root folder.
  • Result: Creates a workrock.json file containing your client_id and app_id.

Manages your isolated development stores.

  • --create <name>: Provisions a new sandbox organization seeded with mock data.
  • Selection: Running workrock sandbox without arguments allows you to choose which sandbox is “active” for tunneling.

Starts local development and establishes a secure tunnel.

  • Port: Defaults to 3000. Use -p or --port to override.
  • Tunnel: Forwards traffic from http://localhost:port to https://client-id.workrock.in.
  • Platform Sync: Automatically updates your active Sandbox to point its application windows to the tunnel URL.

You can manually inspect or edit your CLI configuration at: ~/.workrock/config.json