Skip to content

CLI Overview

The cropscode CLI manages workers, authentication, and configuration from your terminal.

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
CommandDescription
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
  • All commands read configuration from ~/.cropscode/config.json
  • Credentials are stored in ~/.cropscode/credentials.json
  • Worker identity is stored in ~/.cropscode/worker.json
~/.cropscode/
├── credentials.json # API key + email from login
├── worker.json # Worker ID, tenant, orchestrator URL
└── config.json # User preferences (e.g. WORKER_NAME)
Getting Started Concepts Guides CLI Self-Hosting Reference Links