datalad catalog-add
Synopsis
datalad catalog-add [-h] [-c CATALOG] [-m METADATA] [-F CONFIG_FILE] [--version]
Description
Add metadata to an existing catalog
Optionally, a dataset-level configuration file can be provided (defaults to the catalog-level config if not provided)
Examples
Add metadata from file to an existing catalog:
% datalad catalog-add -c /tmp/my-cat -m path/to/metadata.jsonl
Add metadata as JSON string to an existing catalog:
% datalad catalog-add -c /tmp/my-cat -m '{"my":"metadata"}'
Add metadata as subject to a dataset-level configuration:
% datalad catalog-add -c /tmp/my-cat -F path/to/dataset_config_file.json
Options
-h, --help, --help-np
show this help message. --help-np forcefully disables the use of a pager for displaying the help message
-c CATALOG, --catalog CATALOG
Location of the existing catalog.
-m METADATA, --metadata METADATA
The metadata records to be added to the catalog. Multiple input types are possible: - a path to a file containing JSON lines - JSON lines from STDIN - a JSON serialized string.
-F CONFIG_FILE, --config-file CONFIG_FILE
Path to config file in YAML or JSON format. Default config is read from: 'datalad_catalog/config/config.json'.
--version
show the module and its version which provides the command