Skip to main content
Reader ships with a CLI for quick scrapes, crawls, and scripting workflows. After npm install @vakra-dev/reader, you can run reader directly if you have it in your PATH, or invoke it via npx reader / node node_modules/.bin/reader.

Scrape a single URL

Outputs JSON to stdout with the default format (markdown) and all metadata.

Write output to a file

Multiple URLs in parallel

-c 3 sets concurrency. The output is a single JSON file with all results in an array.

Choose formats

Content cleaning flags

Force an engine

Use a proxy

Crawl

Flags:

Verbose output

Enables Pino logging so you can see which engine won, how long it took, and any retry behavior.

Piping to other tools

CLI always outputs JSON. Pipe it to jq for further processing:

Exit codes

  • 0 - all URLs scraped successfully
  • 1 - one or more URLs failed (details in the JSON errors field)
Useful in shell scripts:

Where to go next

Daemon Mode

Keep a warm browser pool for faster repeat CLI calls.