| Crates.io | stac-cli |
| lib.rs | stac-cli |
| version | 0.5.3 |
| created_at | 2022-05-20 20:33:45.210322+00 |
| updated_at | 2025-02-20 12:50:40.814833+00 |
| description | Command line interface for stac-rs |
| homepage | https://stac-utils.github.io/stac-rs |
| repository | https://github.com/stac-utils/stac-rs |
| max_upload_size | |
| id | 590455 |
| size | 206,546 |
Command Line Interface (CLI) for STAC, named stacrs.
cargo install stac-cli
Then:
# Search
$ stacrs search https://landsatlook.usgs.gov/stac-server \
--collections landsat-c2l2-sr \
--intersects '{"type": "Point", "coordinates": [-105.119, 40.173]}' \
--sortby='-properties.datetime' \
--max-items 1000 \
items.parquet
# Translate formats
$ stacrs translate items.parquet items.ndjson
$ stacrs translate items.ndjson items.json
# Migrate STAC versions
$ stacrs translate item-v1.0.json item-v1.1.json --migrate
# Search stac-geoparquet (no API server required)
$ stac search items.parquet
# Server
$ stacrs serve items.parquet # Opens a STAC API server on http://localhost:7822
# Validate
$ stacrs validate item.json
stacrs provides the following subcommands:
stacrs search: searches STAC APIs and geoparquet filesstacrs serve: serves a STAC APIstacrs translate: converts STAC from one format to anotherstacrs validate: validates a STAC valueUse the --help flag to see all available options for the CLI and the subcommands:
This crate has two features:
pgstac: enable a pgstac backend for stacrs serve (enabled by default)This crate is part of the stac-rs monorepo, see its README for contributing and license information.