CLI Overview
The cropscode CLI manages workers, authentication, and configuration from your terminal.
Install
Section titled “Install”The CLI is published to the GitHub Package Registry. Configure the scope, then install:
npm config set @crops-code:registry https://npm.pkg.github.comnpm install -g @crops-code/cliCommands
Section titled “Commands”| Command | Description |
|---|---|
cropscode login | Authenticate via browser OAuth or API token |
cropscode worker | Configure tenant and start the worker |
cropscode doctor | Check system health |
cropscode onboard | Guided setup wizard |
cropscode config | Manage CLI configuration |
cropscode status | Show current state |
Global Behavior
Section titled “Global Behavior”- All commands read configuration from
~/.cropscode/config.json - Credentials are stored in
~/.cropscode/credentials.json - Worker identity is stored in
~/.cropscode/worker.json
Configuration Directory
Section titled “Configuration Directory”~/.cropscode/├── credentials.json # API key + email from login├── worker.json # Worker ID, tenant, orchestrator URL└── config.json # User preferences (e.g. WORKER_NAME)