olostep.
On install, a postinstall step downloads the matching binary from the package’s GitHub releases. If that fails, confirm a release exists for this package version and your platform, then reinstall.
Install
Requirements: Node.js 16+ (only fornpm / npx; the CLI itself is a native binary).
API key
SetOLOSTEP_API_KEY in your environment, or in a .env file in the directory where you run olostep.
Create keys: Olostep API Keys.
Output
| Flag | Behavior |
|---|---|
--out <path> | Write JSON to a file (parent dirs created if needed). |
--out - | Write JSON to stdout only (UTF-8, indented). Good for pipes and subprocess capture. |
--out, files go under output/ (see Default --out paths).
Commands
Useolostep <command> --help for every option. Most commands accept --timeout (HTTP, seconds).
map: discover URLs
| Option | Description |
|---|---|
--out | File path or - |
--top-n | Max URLs |
--search-query | Guide discovery |
--include-subdomain / --no-include-subdomain | Subdomains |
--include-url / --exclude-url | Repeatable patterns |
--cursor | Pagination |
--top-n, not --limit (removed).
answer: researched answer
Polls until the answer is ready.
| Option | Description |
|---|---|
--out | File or - |
--json-format | Optional structured output hint (JSON object string) |
--poll-interval / --poll-timeout | Polling (seconds) |
--json-format, not --model (removed).
scrape: one URL
Formats: html, markdown, text, json, raw_pdf, screenshot (comma-separated; default markdown).
| Option | Description |
|---|---|
--formats | Comma-separated |
--country | Country code |
--wait-before-scraping | Ms to wait before scrape |
--payload-json | Advanced options as JSON object string |
--payload-file | Same, from file (not together with --payload-json) |
scrape-get: by scrape ID
crawl: site crawl
Retrieve formats: markdown, html, json.
Notable flags: --max-pages, --max-depth, --include-subdomain, --include-external, --include-url, --exclude-url, --search-query, --top-n, --webhook, --crawl-timeout, --follow-robots-txt / --ignore-robots-txt, --formats, --pages-limit, --pages-search-query, --poll-seconds, --poll-timeout, --dry-run (print payload, no request).
batch-scrape: CSV
CSV columns: custom_id or id, and url.
| Option | Description |
|---|---|
--formats | markdown, html, json |
--country | Optional |
--parser-id | Structured extraction parser |
--poll-seconds, --log-every, --items-limit | Polling / paging |
--dry-run | Print payload only |
batch-update: batch metadata
Requires one of --metadata-json or --metadata-file (JSON object).
Default --out paths
When --out is omitted:
| Command | Default |
|---|---|
map | output/map.json |
answer | output/answer.json |
scrape | output/scrape.json |
scrape-get | output/scrape_get.json |
crawl | output/crawl_results.json |
batch-scrape | output/batch_results.json |
batch-update | output/batch_update.json |
Global flags
| Flag | Description |
|---|---|
-V, --version | Version |
-h, --help | Help |