export

Export loaded entities in JSON format to stdout.

Synopsis

sieve export [-hV] [-f=<format>]

Options

Option

Default

Description

-f, --format=<format>

json

Output format (currently only json is supported)

-h, --help

Show help message and exit

-V, --version

Print version info and exit

Examples

Export all entities to a file:

java -jar sieve-cli.jar export > entities.json

Pipe to jq for pretty-printing:

java -jar sieve-cli.jar export | jq '.[0]'

Sample output:

[
  {
    "id": "36735",
    "entityType": "INDIVIDUAL",
    "listSource": "OFAC_SDN",
    "primaryName": "PUTIN, Vladimir Vladimirovich",
    "aliases": ["Vladimir PUTIN"],
    "programs": ["RUSSIA-EO14024"]
  }
]

Note

The index must be populated before exporting. Run sieve fetch first if the index is empty.