Registry / devops / agroplan-ai-cli

agroplan-ai-cli

JSON →
library1.0.48jsnpmunverified

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-cli
INSTALL
IMPORT
SIG · AGROPLAN-AI-CLI
A
agroplan-ai-cli
devopsjavascriptv1.0.48
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

CLI entry
bun add -g agroplan-ai-cli
npm install -g agroplan-ai-cli
This package is distributed exclusively for Bun (see engines.bun). npm install will fail or produce unexpected results.

Installation (via Bun, not npm), setup, start local server, open browser, monitor, and stop. Demonstrates all primary commands.

# Install CLI globally using Bun (required) bun add -g agroplan-ai-cli # Setup local API environment (creates ~/.agroplan/backend, .venv, installs Python deps) agroplan setup # Start local server (FastAPI on localhost:8000) agroplan serve on # Open AgroPlan AI in browser (auto-detects local API) agroplan open # Check server status and logs agroplan serve status agroplan serve logs # Stop server agroplan serve off
Debug
Known issues
breakingPackage requires Bun ≥ 1.0 — npm/yarn installation will fail or break.
fix
Install Bun from bun.sh first, then use 'bun add -g agroplan-ai-cli'.
affects: >=1.0.0
gotchaBackend requires Python ≥ 3.8 and virtualenv support on PATH.
fix
Ensure Python 3.8+ is installed and accessible as 'python3' or 'python'.
affects: >=1.0.0
gotcha'agroplan serve on' may fail if port 8000 is already in use or if previous PID file exists at ~/.agroplan/agroplan-api.pid
fix
Kill existing process (e.g., 'pkill -f fastapi') and remove PID file: rm ~/.agroplan/agroplan-api.pid
affects: >=1.0.0
gotchaThe CLI only runs on Windows, macOS, or Linux; no FreeBSD or other Unix support.
fix
Use a supported OS or run inside a compatible VM/container.
affects: >=1.0.0
Errors
Common errors & fixes
bun: command not found
Bun is not installed on the system.
fix
Install Bun: curl -fsSL https://bun.sh/install | bash
Error: Python not found. Please install Python >= 3.8
Python is not available on PATH or version < 3.8.
fix
Install Python 3.8+ and ensure it is added to PATH.
Error: Port 8000 already in use
Another process is using the required port or a stale PID file exists.
fix
Stop the conflicting process or run 'agroplan serve off' to clean up.
agroplan: command not found
CLI not installed globally or not on PATH.
fix
Run 'bun add -g agroplan-ai-cli' to install.
Upgrade
Version history
1.0.48latest on npm
Audit
Dependencies
bunrequiredRuntime requirement: the CLI is distributed via bun and uses bun add -g for installation. Bun ≥ 1.0 required.
pythonrequiredBackend requires Python ≥ 3.8 to create virtual environment and run FastAPI server.
Agent activity
48 hits · last 30 days
node
42
Amazon
1
OpenAI (training)
1
Resources
agroplan-ai-cli — npm install agroplan-ai-cli · libregistry