The [config] Command
Manage the configuration of the libra repository
Usage
libra config [OPTIONS] <key> <value_pattern>
Description
Manage configuration entries by adding, retrieving, listing, or deleting them in the repository. Supports pattern matching on key and value fields for flexible querying and deletion. Only one mode (--add, --get, --get-all, --unset, --unset-all, or --list) can be used at a time.
Arguments
-
<key>– The key string of the configuration entry, should be likeconfiguration.[name].key.
Required unless--listis used. -
<value_pattern>– The value or the pattern to match against configuration values.
Required unless--listis used.
Options
-
--add
Add a configuration entry to the database.
Requires<value_pattern>. -
--get
Get a single configuration entry matching the key and value pattern. -
--get-all
Get all configuration entries matching the key and value pattern. -
--unset
Remove a single configuration entry matching the key and value pattern. -
--unset-all
Remove all configuration entries matching the key and value pattern. -
-l,--list
List all configuration entries from the database.
Does not requirekeyorvalue_pattern. -
--name-onlyOutput only the names of config variables for --list Only valid with--list. -
-d,--default <value>
Return the given default value if no matching key is found.
Only valid with--get--get-all. -
-h,--help
Print help information.
Note:
Only one of --add, --get, --get-all, --unset, --unset-all, or --list can be used at a time. Use --default only with --get and --get-all.
Use --name-only only with --list.