Roboflow CLI
$ roboflow Official Low RiskRoboflow CLI (roboflow, bundled with the roboflow Python package) downloads versioned vision datasets in YOLO/COCO/VOC formats (roboflow download), uploads annotated imagery, and runs cloud or local inference (roboflow infer). Global --json (-j) and --quiet (-q) flags make its output cleanly parseable by agents.
pip install roboflow roboflow download extracts multi-gigabyte dataset archives directly to local disk and roboflow infer reads local image files directly.
Agent-Readiness Checklist
Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.
FCRS-1.0 6-Dimension Breakdown
Global --json (-j), --quiet (-q), --workspace (-w), and --api-key (-k) work across subcommands.
- Global
--json/-jand--quiet/-qflags - Headless auth via
ROBOFLOW_API_KEYor--api-key
Scoped workspace/API-key flags and mostly read/download operations, though upload and hosted infer lack --dry-run.
- Explicit
--workspaceand--api-keyoverrides prevent wrong-workspace writes - No
--dry-runon dataset uploads
Installable via pip install roboflow across macOS, Linux, and Windows with moderate imaging dependencies.
- Standard PyPI package
roboflow
Covers workspace/project listing, versioned dataset exports in 20+ CV formats, uploads, and inference in one clean CLI.
- Supports
download,upload,infer,project, andworkspace
Official Roboflow client repository (roboflow/roboflow-python) under Apache-2.0.
- Official
roboflow/roboflow-pythonrepo under Apache-2.0
Clear CLI reference at docs.roboflow.com documenting global flags and subcommands.
- Official CLI reference at docs.roboflow.com
Security, Auth & Guardrails
Reads ROBOFLOW_API_KEY env var, explicit --api-key (-k) flag, or saved credentials in ~/.config/roboflow/config.json.
Apache-2.0 open-source CLI; Roboflow Cloud offers a free tier with usage-based billing for hosted inference and training.
# Roboflow CLI (roboflow) Agent Rules - Always pass `--json --quiet` on `roboflow` commands for clean machine-readable output. - Provide `ROBOFLOW_API_KEY` via env var or `--api-key` rather than interactive `roboflow login`. - Specify an explicit target directory when running `roboflow download` to avoid cluttering the repo root.
Agent-Ready Command Recipes
Safe Read-Only Queries
roboflow infer ./image.jpg -m my-project/3 --json --quiet
Runs inference on a local image and returns clean JSON bounding boxes without progress bars.
Controlled Writes & Previews
roboflow download my-workspace/my-project/3 -f yolov8 ./dataset --json --quiet
Downloads and unpacks version 3 of the dataset into ./dataset and emits JSON summary metadata.
Strengths for Agents
- + Global
--json(-j) and--quiet(-q) flags work uniformly across all subcommands. - + Supports
ROBOFLOW_API_KEYand--workspaceoverrides for safe multi-project automation.
Caveats & Pitfalls
- ! No
--dry-runpreview before uploading images viaroboflow upload. - ! Large dataset exports via
roboflow downloadcan consume significant local disk space.