settings command
Customize the settings of the Tethys Portal.
usage: tethys settings [-h] [-s SET_KWARGS SET_KWARGS] [-g [GET_KEY]]
[-r RM_KEY] [--generate-salt-key] [--overwrite]
Named Arguments
- -s, --set
Key Value pairs to add to the settings in the portal_config.yml file. Hierarchical keys can be specified with dot notation. (e.g. DATABASES.default.NAME)
- -g, --get
Retrieve the resolved value of a key from settings if it exists. Otherwise, attempt to return the value of the key from the portal_config.yml
- -r, --rm, --remove
Removes a key from the portal_config.yml file if it exists. Hierarchical keys can be specified with dot notation. (e.g. DATABASES.default.NAME)
- --generate-salt-key
Generate a new SALT_KEY and write it to the settings in the portal_config.yml file.
Default:
False- --overwrite
Overwrite an existing SALT_KEY without prompting. Use with --generate-salt-key.
Default:
False