AgroPlan AI CLI (v1.0.48) is a command-line tool for running the AgroPlan AI agricultural planning system locally. It uses genetic algorithms to optimize crop planting and provides a local FastAPI backend for faster performance (~0.1s vs ~0.3s+ on Render). The CLI is written in TypeScript and requires Bun ≥ 1.0 and Python ≥ 3.8. It copies the backend to ~/.agroplan, creates a Python virtual environment, and manages the local server (start/stop/status/logs). The frontend auto-detects local vs Render API. Designed for daily development with hybrid architecture.
npm install agroplan-ai-cliNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Installation (via Bun, not npm), setup, start local server, open browser, monitor, and stop. Demonstrates all primary commands.
Install Bun from bun.sh first, then use 'bun add -g agroplan-ai-cli'.
Ensure Python 3.8+ is installed and accessible as 'python3' or 'python'.
Kill existing process (e.g., 'pkill -f fastapi') and remove PID file: rm ~/.agroplan/agroplan-api.pid
Use a supported OS or run inside a compatible VM/container.
Install Bun: curl -fsSL https://bun.sh/install | bash
Install Python 3.8+ and ensure it is added to PATH.
Stop the conflicting process or run 'agroplan serve off' to clean up.
Run 'bun add -g agroplan-ai-cli' to install.