datalad catalog-set

Synopsis

datalad catalog-set [-h] [-c CATALOG] [-i DATASET_ID] [-v DATASET_VERSION] [--reckless RECKLESS] [--version] property

Description

Utility for setting various properties of a catalog, based on the specified property ('home' or 'config')

Used to set the catalog home page, or to reset config at catalog- or dataset-level. (Note: the latter is not fully supported yet and will yield an error result)

Examples

Set the home page of an existing catalog:

% datalad catalog-set -c /tmp/my-cat -i abcd -v 1234 home

Set a new home page of an existing catalog, where the home page has previously been set:

% datalad catalog-set -c /tmp/my-cat -i efgh -v 5678 --reckless overwrite home

Options

property

The property to set in the catalog. Should be one of 'home' or 'config'.

-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.

-i DATASET_ID, --dataset-id DATASET_ID

The unique identifier of a dataset.

-v DATASET_VERSION, --dataset-version DATASET_VERSION

The unique version of a dataset.

--reckless RECKLESS

Set the property in a potentially unsafe way. Supported modes are: ["overwrite"]: if the property is already set, overwrite it.

--version

show the module and its version which provides the command

Authors

datalad is developed by DataLad Developers <team@datalad.org>.