@undp-data/geohub-cli
TypeScript icon, indicating that this package has built-in type declarations

2.0.5 • Public • Published

geohub-cli

This repository is to manage CLI tools for geohub

Usage

$geohub -h
Usage: geohub [options] [command]

Options:
  -v, --version     output the version number
  -h, --help        display help for command

Commands:
  stac [options]    scan STAC collections to register metadata into PostgreSQL database.
  help [command]    display help for command
  • Register STAC collections
$geohub stac -h
Usage: geohub stac [options]

scan STAC collections to register metadata into PostgreSQL database.

Options:
  -d, --database <dsn>   PostgreSQL database connection string
  -s, --stac <stac>      STAC API root URL. e.g., https://planetarycomputer.microsoft.com/api/stac/v1
  -o, --output [output]  Output directory for temporary working folder (default: "tmp")
  -h, --help             display help for command

For example

# to register STAC by Microsoft Planetary Computer
geohub stac -d <database connection string> -s https://planetarycomputer.microsoft.com/api/stac/v1

# to register STAC by Earth Search
geohub stac -d <database connection string> -s https://earth-search.aws.element84.com/v0/

Readme

Keywords

Package Sidebar

Install

npm i @undp-data/geohub-cli

Weekly Downloads

1

Version

2.0.5

License

BSD-3-Clause

Unpacked Size

109 kB

Total Files

119

Last publish

Collaborators

  • mustafa.saifee
  • iferencik
  • thuhadev
  • j_igarashi