Skip to content

Install CLI

The cropscode CLI is the primary way to bootstrap workers and manage your connection to the orchestrator.

  • Node.js 22+ and npm 10+
  • macOS, Windows, or Linux

The CLI is published to the GitHub Package Registry. Configure the scope, then install:

Terminal window
npm config set @crops-code:registry https://npm.pkg.github.com
npm install -g @crops-code/cli
Terminal window
cropscode --version

The CLI handles:

CommandPurpose
cropscode loginAuthenticate via browser OAuth or API token
cropscode workerConfigure tenant and start the worker
cropscode doctorCheck system health
cropscode onboardGuided setup wizard
cropscode configManage CLI configuration
cropscode statusShow current state

The CLI stores files in ~/.cropscode/:

FilePurpose
credentials.jsonAPI key + email from authentication
worker.jsonWorker ID, tenant, and orchestrator URL
config.jsonUser preferences (e.g. WORKER_NAME)
Getting Started Concepts Guides CLI Self-Hosting Reference Links