Command line

Command-line interface

Search catalogs and inspect collections from your terminal.

Run superstac from your terminal. Install it and save the complete sample as superstac.yml.

Global options

OptionMeaning
--config PATHConfiguration path; default superstac.yml. The basename must remain superstac.yml or superstac.yaml.
--jsonStructured JSON output.
-v, --verboseDebug logging.
-q, --quietWarning-level logging; conflicts with verbose.
--help, --versionCommand help or binary version.
superstac search -c sentinel-2-l2a -b 6.0,49.0,7.0,50.0 -l 10
superstac search -c sentinel-2-l2a -c landsat-c2-l2 -l 5
superstac search -c sentinel-2-l2a --id scene-id
OptionMeaning
-c, --collection IDCanonical collection ID; repeatable. Omit for no collection filter.
-b, --bbox W,S,E,NFour comma-separated coordinates.
-d, --datetime VALUEDatetime instant or interval forwarded to the catalog.
-l, --limit NMaximum items per catalog; default 10.
--id IDItem ID; repeatable.

For negative coordinates, use an equals sign: --bbox=-10,35,5,45. To sort, add --sortby=-datetime for newest first or --sortby=eo:cloud_cover for lowest cloud cover first. You can repeat --sortby; ordering applies within each catalog. The CLI does not accept intersects.

Collection discovery

# All discovered collections and their catalogs
superstac collections

# Collection IDs advertised by one catalog
superstac collections earth-search

# Full collection document
superstac collections earth-search sentinel-2-l2a

JSON and logs

superstac --json search -c sentinel-2-l2a -l 5
RUST_LOG=superstac_search=debug superstac search -c sentinel-2-l2a

The JSON response contains items and metadata. Each entry in items contains the STAC record under item, plus catalog_id and seen_in to show where it came from. See results for an example.

Logs and ingestion progress go to stderr, leaving stdout available for JSON. Keep the two streams separate when piping into jq or another parser. --quiet reduces logging but still allows warnings.

RUST_LOG overrides the CLI-selected logging level when logging is enabled. A successful exit code can still come with failed catalogs. Check metadata.failures to see whether any catalog searches failed.

See GeoParquet inventories to save metadata, search it locally, and update saved inventories.

On this page