CLI User Guide

CLI User Guide#

Make sure you correctly followed instructions on Configure EODAG.

Then you can start playing with it:

  • Run eodag --help to display all the available options and commands:

$ eodag --help
Usage: eodag [OPTIONS] COMMAND1 [ARGS]... [COMMAND2 [ARGS]...]...

  Earth Observation Data Access Gateway: work on EO products from any provider

Options:
  -v, --verbose  Control the verbosity of the logs. For maximum verbosity,
                 type -vvv
  --help         Show this message and exit.

Commands:
  discover  Fetch providers to discover product types
  download  Download a list of products from a serialized search result...
  list      List supported product types
  search    Search satellite images by their product types, instrument,...
  version   Print eodag version and exit
  • Each command has its own help, see for instance the help of the list command with eodag list --help.

  • By default the command line interface of eodag is set to the minimum verbosity level. You can print more log messages by adding -v to eodag master command. The more v given (up to 3), the more verbose the tool is. This feature comes in handy when you want to inspect an error or an unexpected behaviour. 4 different verbosity levels are offered to you:

eodag list
eodag -v list
eodag -vv list
eodag -vvv list

Download#

$ eodag download --help
Usage: eodag download [OPTIONS]

  Download a list of products from a serialized search result or STAC items
  URLs/paths

  Examples:

    eodag download --search-results /path/to/search_results.geojson

    eodag download --stac-item https://example.com/stac/item1.json --stac-item
    /path/to/item2.json

Options:
  --search-results FILE   Path to a serialized search result
  --stac-item TEXT        URL/path of a STAC item to download (multiple values
                          accepted)
  -f, --conf PATH         File path to the user configuration file with its
                          credentials, default is ~/.config/eodag/eodag.yml
  --quicklooks            Download only quicklooks of products instead full
                          set of files
  --output-dir DIRECTORY  Products or quicklooks download directory (Default:
                          local temporary directory)
  --help                  Show this message and exit.
  • To download the result of a previous call to search:

eodag download --conf my_conf.yml --search-results my_search.geojson
  • To download STAC items from their URL or path:

eodag download --stac-item https://foo/collections/bar/items/item-1-id --stac-item /path/to/item2.json
  • Using commands chaining, download can also directly be executed after a search in a single command:

eodag search --productType S2_MSI_L1C --bbox 1 43 2 44 --start 2025-03-01 download

Product Types#

$ eodag list --help
Usage: eodag list [OPTIONS]

  List supported product types

Options:
  -p, --provider TEXT             List product types supported by this
                                  provider
  -i, --instrument TEXT           List product types originating from this
                                  instrument
  -P, --platform TEXT             List product types originating from this
                                  platform
  -t, --platformSerialIdentifier TEXT
                                  List product types originating from the
                                  satellite identified by this keyword
  -L, --processingLevel TEXT      List product types of processing level
  -S, --sensorType TEXT           List product types originating from this
                                  type of sensor
  --no-fetch                      Do not fetch providers for new product types
  --help                          Show this message and exit.
  • To list all available product types and supported providers:

eodag list
  • To list available product types on a specified supported provider:

eodag list -p creodias
  • By default, list command will also fetch for new product types, which may be slow depending on the network status. To skip fetching, use the following option:

eodag list --no-fetch
  • EODAG can fetch providers (all or only a given one) to discover available product types, using the following command. It will store result in a JSON file (defaults to ext_product_types.json):

$ eodag discover --help
Usage: eodag discover [OPTIONS]

  Fetch providers to discover product types

Options:
  -p, --provider TEXT  Fetch only the given provider
  --storage FILE       Path to the file where to store external product types
                       configuration (.json extension will be automatically
                       appended to the filename). DEFAULT:
                       ext_product_types.json
  --help               Show this message and exit.

Examples:

eodag discover
eodag discover -p planetary_computer
eodag discover -p planetary_computer --storage my_product_types_conf.json

This file can then be used in EODAG using the environment variable EODAG_EXT_PRODUCT_TYPES_CFG_FILE.

Please note that if you did not customize EODAG with new providers settings, this command should not be useful. For more information on the product types discovery mechanism, please see Python API User Guide / Providers and products / Product types discovery.