@techsnif/cli
Public CLI for TechSnif intelligence queries.
The public CLI exposes TechSnif's API-backed intelligence surface:
article
categories
feed
trending
search
summary
Install
npm install -g @techsnif/cli
Or run it without installing globally:
npx @techsnif/cli --help
Usage
These commands default to https://api.techsnif.com and support --json for scripts and agents:
techsnif article my-article-slug --format markdown --json
techsnif categories --json
techsnif feed --category AI --limit 5 --json
techsnif trending --limit 5 --json
techsnif search "AI funding" --last 7d --json
techsnif summary --topic "semiconductors" --last 7d --json
Result caps:
feed: default 10, max 50
trending: default 5, max 20
search: default 20, max 50
Local Development
pnpm techsnif --help
Override the API host for local development or staging:
pnpm techsnif trending --api-url http://localhost:4321 --json
JSON Output
Every public command supports --json and returns a stable envelope:
{
"ok": true,
"data": {},
"targetEnv": "https://api.techsnif.com"
}
For article, --format html|text|markdown controls the returned content field in both human-readable and JSON output. The default is html.
Notes
- User-facing attribution never exposes
Techmeme.
- The public CLI is intentionally API-only.
- Internal/operator workflows remain repo-local and are not part of the published package.
categories is the easiest way for agents to discover valid category values without guessing.