Skip to content

Datatrail CLI Reference

This page provides documentation for the Datatrail CLI.

datatrail

Datatrail Command Line Interface.

Usage:

datatrail [OPTIONS] COMMAND [ARGS]...

Options:

Name Type Description Default
--help boolean Show this message and exit. False

datatrail clear

Clear a dataset.

Usage:

datatrail clear [OPTIONS] SCOPE DATASET

Options:

Name Type Description Default
--directory, -d directory Root directory to use. Default: None, will use the value set in the config. None
--clear-parents boolean Clear all empty parent directories of dataset. False
-v, --verbose integer range (0 and above) Verbosity: v=INFO, vv=DEBUG. 0
-q, --quiet boolean Set log level to ERROR. False
--force, -f boolean Will not prompt for confirmation. False
--help boolean Show this message and exit. False

datatrail config

Datatrail CLI Configuration.

For initialising and modifying the Datatrail CLI configuration file.

Usage:

datatrail config [OPTIONS] COMMAND [ARGS]...

Options:

Name Type Description Default
--help boolean Show this message and exit. False

datatrail config get

Get a configuration value.

Usage:

datatrail config get [OPTIONS] KEY

Options:

Name Type Description Default
--help boolean Show this message and exit. False

datatrail config init

Initialise configuration.

This will create a configuration file in the home directory under .datatrail. Datatrail MUST be initialised before is can be used.

Usage:

datatrail config init [OPTIONS]

Options:

Name Type Description Default
--site, -s choice (chime | canfar | kko | gbo | hco | local) Site to initialise Datatrail CLI for. Sentinel.UNSET
--help boolean Show this message and exit. False

datatrail config list

List all configuration values.

Usage:

datatrail config list [OPTIONS]

Options:

Name Type Description Default
--help boolean Show this message and exit. False

datatrail config set

Set a configuration value.

Usage:

datatrail config set [OPTIONS] KEY VALUE

Options:

Name Type Description Default
--help boolean Show this message and exit. False

datatrail doctor

Check Datatrail readiness.

Usage:

datatrail doctor [OPTIONS]

Options:

Name Type Description Default
--json boolean Output as JSON. False
--help boolean Show this message and exit. False

datatrail inventory

Build a resumable dataset file inventory.

Usage:

datatrail inventory [OPTIONS] [SCOPE]

Options:

Name Type Description Default
--match text Comma-separated terms a larger dataset must all contain. None
--parent text Start at this dataset within SCOPE. None
--output, -o file Manifest path. datatrail-inventory.json
--allow-incomplete boolean Exit successfully while unresolved entries remain. False
-v, --verbose integer range (0 and above) Verbosity: v=INFO, vv=DEBUG. 0
-q, --quiet boolean Only errors shown in logs. False
--help boolean Show this message and exit. False

datatrail list

List scopes & datasets

Usage:

datatrail list [OPTIONS] [SCOPE] [DATASETS]

Options:

Name Type Description Default
-v, --verbose integer range (0 and above) Verbosity: v=INFO, vv=DEBUG. 0
-q, --quiet boolean Only errors shown in logs. False
--write boolean Write the events to file. False
--json boolean Output as JSON. False
--match text Comma-separated, case-insensitive terms a larger dataset must all contain. None
--expand boolean Open each matched larger dataset one level and list its children. False
--recursive boolean Open each matched larger dataset through all descendant levels. False
--help boolean Show this message and exit. False

datatrail ps

Details of a dataset.

Usage:

datatrail ps [OPTIONS] SCOPE DATASET

Options:

Name Type Description Default
-s, --show-files boolean Show file names. False
-v, --verbose integer range (0 and above) Verbosity: v=INFO, vv=DEBUG. 0
-q, --quiet boolean Set log level to ERROR. False
--json boolean Output as JSON. False
--help boolean Show this message and exit. False

datatrail pull

Download a dataset.

Usage:

datatrail pull [OPTIONS] SCOPE DATASET

Options:

Name Type Description Default
--directory, -d directory Directory to pull data to. None
--specific, -s file Path to file of specific files to pull. None
--cores, -c integer range (between 1 and 32) Number of parallel fetch processes to use. 1
-v, --verbose integer range (0 and above) Verbosity: v=INFO, vv=DEBUG. 0
-q, --quiet boolean Set log level to ERROR. False
--force, -f boolean Do not prompt for confirmation. False
--help boolean Show this message and exit. False

datatrail pull-manifest

Download files from an inventory manifest.

Usage:

datatrail pull-manifest [OPTIONS] MANIFEST

Options:

Name Type Description Default
--directory, -d directory Directory to pull data to. None
--state file Transfer state path. None
--cores, -c integer range (between 1 and 32) Maximum parallel transfers. 1
-v, --verbose integer range (0 and above) Verbosity: v=INFO, vv=DEBUG. 0
--force, -f boolean Do not prompt for confirmation. False
--help boolean Show this message and exit. False

datatrail scout

Scout a dataset.

Usage:

datatrail scout [OPTIONS] [SCOPES]... DATASET

Options:

Name Type Description Default
-v, --verbose integer range (0 and above) Verbosity: v=INFO, vv=DEBUG. 0
-q, --quiet boolean Set log level to ERROR. False
--help boolean Show this message and exit. False

datatrail unregistered

Commands related to unregistered datasets.

Usage:

datatrail unregistered [OPTIONS] COMMAND [ARGS]...

Options:

Name Type Description Default
--help boolean Show this message and exit. False

Check whether an event is an unregistered dataset.

Usage:

datatrail unregistered search [OPTIONS] EVENT

Options:

Name Type Description Default
-s, --scope text Only search within this scope. Sentinel.UNSET
-p, --partial boolean Match events containing EVENT. False
-v, --verbose integer range (0 and above) Verbosity: v=INFO, vv=DEBUG. 0
-q, --quiet boolean Only errors shown in logs. False
--json boolean Output as JSON. False
--help boolean Show this message and exit. False

datatrail unregistered summary

Summarise the reasons for unregistered datasets.

Usage:

datatrail unregistered summary [OPTIONS]

Options:

Name Type Description Default
-v, --verbose integer range (0 and above) Verbosity: v=INFO, vv=DEBUG. 0
-q, --quiet boolean Only errors shown in logs. False
--help boolean Show this message and exit. False

datatrail verify

Verify registered Minoc files.

Usage:

datatrail verify [OPTIONS] SCOPE DATASET

Options:

Name Type Description Default
--json boolean Output as JSON. False
--help boolean Show this message and exit. False

datatrail version

Show versions.

Usage:

datatrail version [OPTIONS]

Options:

Name Type Description Default
--help boolean Show this message and exit. False