Skip to content

Commands

Mundo edited this page Apr 8, 2026 · 2 revisions

Commands

Workflow Commands

Command What it does
pnpm news Run the GitHub trending pipeline (scrape → dedup → curate → Telegram → save)
pnpm start Run KPI pipeline (GitHub fetch → manual input → diary report)
pnpm cleanup Run stale data deletion only (used by crontab/Actions)
pnpm dev Start long-running daemon (fires jobs via node-cron)

Setup Commands

Command What it does
pnpm run setup Create all database tables (one-time)
pnpm seed-mock Seed expired mock users into company DB

Development Commands

Command What it does
pnpm tsc TypeScript type check (no emit)
pnpm format Auto-format all TypeScript files with Prettier
pnpm format:check Check formatting without modifying files

CLI Flags

The entry point (src/index.ts) supports these flags:

Flag Equivalent Description
--setup pnpm run setup Initialize database tables
--cleanup pnpm cleanup Run cleanup agent only
--run pnpm start Run interactive KPI jobs
--news pnpm news Run GitHub trending pipeline
(none) pnpm dev Start the cron scheduler daemon

Clone this wiki locally