CLI
Search the physical world and follow dataset changes from your terminal. Human-readable by default, JSON with --json.
- Package
- @outerview/cli
- Command
outerview- Version
- 0.2.0
- Requires
- Node 18+
Install
Run it once with npx, or install it globally to get the outerview command.
npx @outerview/cli discover "public parks in Brooklyn"
npm install -g @outerview/cli
Sign in
Create a key
Open API keys in the console and create one.
Save it
outerview login # Paste your key (ov_…): ******** # ✓ Signed in. 4,000 credits available.
The key is saved to ~/.outerview/config.json (readable only by you). OUTERVIEW_API_KEY in the environment always wins, which is what you want in CI. outerview logout removes the saved key.
Run a search
outerview discover "EV chargers along I-80 in Nebraska" --limit 5 --answer
1 Tesla Supercharger Charging station · 2100 N Lincoln Ave
41.13652, -100.77032
2 Electrify America Charging station · 4720 Hwy 30
40.69811, -99.08187
…
5 results in Nebraska · https://outerview.ai/discover/eabf9ebb-…Commands
| Command | What it does |
|---|---|
outerview login [--key ov_…] | Verify and save an API key. |
outerview logout | Remove the saved key. |
outerview discover "<question>" [--limit n] [--answer] [--focus id] [--json] | Search. One credit per call. |
outerview result <id> [--json] | Print a stored Discover result. |
outerview artifacts [name] [--type t] [--json] | Find datasets and their ids. |
outerview stream <dataset> [--region id] [--since iso] [--follow] [--cursor c] [--json] | Print new changes in a dataset; --follow keeps polling. |
outerview stream subscribe <dataset> --webhook https://… | Push changes to a webhook. |
outerview stream list | pause id | resume id | delete id | Manage webhook subscriptions. |
outerview usage | Credit balance. |
outerview help | All commands and flags. |
Datasets can be given by name ("building permit") or id; names resolve to the closest streamable match from outerview artifacts.
JSON and piping
--json prints the raw API response. stream --json prints one event per line (NDJSON), with progress messages on stderr so pipes stay clean.
# Save a GeoJSON file outerview discover "hospitals in Lisbon" --limit 50 --json | jq .data.geojson > hospitals.geojson # Names only outerview discover "ports on the Baltic Sea" --json | jq -r '.data.geojson.features[].properties.name' # Tail a dataset forever and keep only addresses outerview stream "building permit" --follow --json | jq -r .feature.properties.address
Following a dataset
# Changes from the last day, then stop outerview stream "building permit" --since 2026-12-01T00:00:00Z # … Caught up. Resume with --cursor eyJiaW5kaW5nIjoi… # Pick up exactly where you left off outerview stream "building permit" --cursor eyJiaW5kaW5nIjoi… # Keep polling every 30 seconds outerview stream "building permit" --follow --interval 30 # Or have Outerview push changes to you outerview stream subscribe "building permit" --webhook https://your-app.com/webhooks/outerview
Verify webhook signatures with the SDK's verifyWebhook, or see Stream API for the scheme.
Environment variables
| Variable | Description |
|---|---|
OUTERVIEW_API_KEY | API key. Overrides the saved key. |
OUTERVIEW_BASE_URL | API host. Default https://api.outerview.ai. |
NO_COLOR | Disable colored output. |
Troubleshooting
| Message | Fix |
|---|---|
| Not signed in | Run outerview login or set OUTERVIEW_API_KEY. |
| A valid Outerview API key is required | The key was revoked or mistyped. Create a new one under API keys. |
| Add credits to your developer wallet | Top up under Billing. Stream and lookups stay free. |
| Too many requests | Wait a minute; limits are 60 requests per minute per workspace. |
| Cursor expired | Cursors last seven days. Start again without --cursor (or with --since). |