CLI Reference
The Workrock CLI (workrock) is your Swiss Army knife for building apps.
Commands
Section titled “Commands”workrock login
Section titled “workrock login”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.
workrock link
Section titled “workrock link”Links the current directory to a Marketplace application.
- Usage: Run this inside your app’s root folder.
- Result: Creates a
workrock.jsonfile containing yourclient_idandapp_id.
workrock sandbox
Section titled “workrock sandbox”Manages your isolated development stores.
--create <name>: Provisions a new sandbox organization seeded with mock data.- Selection: Running
workrock sandboxwithout arguments allows you to choose which sandbox is “active” for tunneling.
workrock dev
Section titled “workrock dev”Starts local development and establishes a secure tunnel.
- Port: Defaults to
3000. Use-por--portto override. - Tunnel: Forwards traffic from
http://localhost:porttohttps://client-id.workrock.in. - Platform Sync: Automatically updates your active Sandbox to point its application windows to the tunnel URL.
Configuration File
Section titled “Configuration File”You can manually inspect or edit your CLI configuration at:
~/.workrock/config.json