Datatrail CLI Reference¶
This page provides documentation for the Datatrail CLI.
datatrail¶
Datatrail Command Line Interface.
Usage:
Options:
Name | Type | Description | Default |
---|---|---|---|
--help |
boolean | Show this message and exit. | False |
datatrail clear¶
Clear a dataset.
Usage:
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:
Options:
Name | Type | Description | Default |
---|---|---|---|
--help |
boolean | Show this message and exit. | False |
datatrail config get¶
Get a configuration value.
Usage:
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:
Options:
Name | Type | Description | Default |
---|---|---|---|
--site , -s |
text | Site to initialise Datatrail CLI for. | _required |
--help |
boolean | Show this message and exit. | False |
datatrail config list¶
List all configuration values.
Usage:
Options:
Name | Type | Description | Default |
---|---|---|---|
--help |
boolean | Show this message and exit. | False |
datatrail config set¶
Set a configuration value.
Usage:
Options:
Name | Type | Description | Default |
---|---|---|---|
--help |
boolean | Show this message and exit. | False |
datatrail list¶
List scopes & datasets
Usage:
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 |
--help |
boolean | Show this message and exit. | False |
datatrail ps¶
Details of a dataset.
Usage:
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 |
--help |
boolean | Show this message and exit. | False |
datatrail pull¶
Download a dataset.
Usage:
Options:
Name | Type | Description | Default |
---|---|---|---|
--directory , -d |
directory | Directory to pull data to. | None |
--cores , -c |
integer range (between 1 and 2 ) |
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 version¶
Show versions.
Usage:
Options:
Name | Type | Description | Default |
---|---|---|---|
--help |
boolean | Show this message and exit. | False |