@metaphase-tech/itspending-cli
v0.1.4
Published
Command-line tool for the public ITspending API. JSON-first, no auth, designed for agentic AI consumers.
Readme
@metaphase-tech/itspending-cli
Command-line tool for the public ITspending API. JSON-first output, no auth, no state — designed for shell pipelines and agentic AI consumers.
# One-off
npx @metaphase-tech/itspending-cli agencies
# Global install
npm i -g @metaphase-tech/itspending-cli
itspending --helpCommon commands
# Top 10 investments by FY2025 spend at the Department of Agriculture
itspending investments \
--filter agency_code=eq.5 \
--order fy2025_internal_funding.desc \
--limit 10
# Latest CIO ratings, newest first
itspending cio --filter latest_indicator=eq.true --order rated_date.desc --limit 50
# Find investments mentioning "cyber"
itspending search "cyber" --limit 20
# Bulk download a single dataset
itspending download portfolio --format json --out portfolio.json
# Or the whole bundle
itspending download allOutput formats
--format json (default), --format ndjson (one row per line), --format csv.
--out <path> writes to file instead of stdout.
License
Public-domain federal data. Software under the Protoware License v1.0.
