Skip to content

CLI Reference

bash
npm start -- <command> [options]

index

Discover and extract new records for a dataset.

bash
npm start -- index \
  --topic <string> \
  --schema <path> \
  --output <dataset-name> \
  [--max-iterations <number>] \
  [--max-depth <number>] \
  [--crawl4ai <url>]
OptionDescriptionDefault
--topicResearch topic for the agentrequired
--schemaPath to schema .ts filerequired
--outputDataset name to store resultsrequired
--max-iterationsMax agent loop iterations40
--max-depthMax crawl depth for link following3
--crawl4aiCrawl4AI base URLhttps://crawl.naszilla.ch

update

Refresh tracked fields in an existing dataset.

bash
npm start -- update \
  --input <dataset-name> \
  --schema <path> \
  [--crawl4ai <url>]
OptionDescriptionDefault
--inputDataset name to updaterequired
--schemaPath to schema .ts filerequired
--crawl4aiCrawl4AI base URLhttps://crawl.naszilla.ch

Filtering is only available via the REST API (POST /jobs/update with a filter body param), not the CLI.

Examples

bash
# Index mobile plans
npm start -- index \
  --topic "Swiss mobile plans" \
  --schema schemas/mobile.ts \
  --output mobile-plans \
  --max-iterations 60

# Update all rows
npm start -- update \
  --input mobile-plans \
  --schema schemas/mobile.ts