Install hn-get
You need Node.js 24.11 or newer. Run hn-get without installing anything globally:
npx hn-get helpInstall it when you use it often:
npm install --global hn-gethn-get --versionJSON is the default output. This keeps commands easy to pipe into jq, another script, or an agent.
hn-get frontpage --limit 30hn-get search "sqlite" --sort points --since 30dhn-get item 40956979 --comments --depth 2hn-get user pg --submitted-limit 20Use --format markdown for readable output, --format compact for small JSON, or --format ndjson for one object per line.
hn-get show --sort points --format markdownhn-get newest --format ndjson