User Configuration¶
The config command group allows you to manage global user configuration settings for mcup. These settings persist
across sessions.
Known Configuration Keys¶
| Key | Description | Default Value |
|---|---|---|
java.path |
The path to the Java executable to use for running servers. | java |
logging.level |
The logging level for the CLI output (e.g., DEBUG, INFO). |
INFO |
devtools.enabled |
Enable developer tools commands (confdiff, lockermgr). |
false |
advancedmode.enabled |
Enable advanced fields in the server configuration wizard. | false |
locker.remote |
The URL of the remote locker file to use for updates. | (Standard URL) |
locker.branch |
The branch of the remote locker repository to use (if applicable). | main |
updates.check |
Enable or disable automatic update notifications on startup. | true |
updates.check_timeout |
Interval between automatic update checks (in seconds). | 86400 |
updates.channel |
Which releases to notify about: stable or all (incl. pre-releases). |
stable |
Get Configuration¶
Retrieve the value of a specific configuration key.
Arguments¶
| Argument | Description |
|---|---|
key |
The configuration key to retrieve. |
Examples¶
Get the current Java path:
Set Configuration¶
Set the value for a specific configuration key.
Arguments¶
| Argument | Description |
|---|---|
key |
The configuration key to set. |
value |
The value to assign to the key. |
Examples¶
Set the Java path to a specific executable:
Enable developer tools:
Remove Configuration¶
Remove a specific configuration key and its value. This will revert the key to its default value if one exists.
Arguments¶
| Argument | Description |
|---|---|
key |
The configuration key to remove. |
Examples¶
Remove the custom Java path setting:
Clear Configuration¶
Clear all user configuration settings, resetting them to defaults.
List Configuration¶
List all current configuration keys and their values.
Export Configuration¶
Export all current configuration settings to a JSON file. This is useful for backing up your settings or sharing them across machines.
Arguments¶
| Argument | Description |
|---|---|
destination |
The file path where the configuration will be exported to. |
Examples¶
Export configuration to the current directory:
Export configuration to a custom location:
Import Configuration¶
Import configuration settings from a JSON file, merging them into your current configuration. Keys present in the imported file will overwrite any existing values; keys not mentioned in the file are left unchanged.
Arguments¶
| Argument | Description |
|---|---|
path |
Path to the JSON configuration file to import from. |
Examples¶
Import configuration from a file:
Restore configuration from a custom location: