Developer tool
Command-line interface
Query the world from your terminal, upload local spatial files, and return readable output or exact JSON.
Setup
Terminal
npm install
export OUTERVIEW_API_KEY="YOUR_OUTERVIEW_API_KEY"Run a query
The CLI provides one command: discover. Use it to explore, test, and export without writing integration code.
Examples
npm run cli -- discover "coffee shops near parks in Toronto" --limit 100
npm run cli -- discover "Find stop signs near my buildings" --file ./buildings.csv --json
npm run cli -- discover "bike parking in Montreal" --no-answerOptions
Run npm run cli -- --help for the complete option list.
--base-url URLURLOverride the API root; defaults to https://api.outerview.ai.
--api-key KEYstringSupply a key without OUTERVIEW_API_KEY.
--limit N1–2000Set the maximum number of returned GeoJSON features.
--no-answerflagSkip answer generation and return results only.
--file PATHrepeatableUpload a CSV or GeoJSON file.
--area-id UUIDUUIDConstrain discovery to a public Outerview area.
--h3-ids IDSstringConstrain discovery to one or more H3 cells.
--search-id UUIDUUIDContinue a prior query.
--timeout-ms MSintegerSet the synchronous request timeout.
--jsonflagPrint the exact API response.

