hmcs config
Manage Desktop Homunculus app configuration.
Quick Examples
hmcs config list
hmcs config get port
hmcs config set port 3200
hmcs config set mods_dir /Users/me/.homunculus/mods
list
Syntax
hmcs config list
Arguments
This subcommand takes no arguments.
Examples
Success:
KEY VALUE
mods_dir /Users/me/.homunculus/mods
port 3100
Failure example:
[stderr]
...failed to parse ~/.homunculus/config.toml...
Behavior
- Loads config from
~/.homunculus/config.toml. - Prints a table with KEY and VALUE columns sorted by key.
- If no config file exists, defaults are used.
Related
get
Syntax
hmcs config get <key>
Arguments
| Name | Required | Description |
|---|---|---|
key | Yes | Config key to read. |
Examples
Success:
hmcs config get port
3100
Failure example:
hmcs config get foo
[stderr]
error: unknown config key 'foo'. ...valid keys: mods_dir, port
Behavior
- Current keys are
mods_dirandport. - Exits non-zero for unknown keys.
Related
set
Syntax
hmcs config set <key> <value>
Arguments
| Name | Required | Description |
|---|---|---|
key | Yes | Config key to write (mods_dir or port). |
value | Yes | New value. Parsed as TOML literal when possible. |
Examples
Success:
hmcs config set port 3200
hmcs config set mods_dir /Users/me/.homunculus/mods
Failure example (unknown key):
hmcs config set foo bar
[stderr]
error: unknown config key 'foo'. ...valid keys: mods_dir, port
Failure example (invalid type):
hmcs config set port not_a_number
[stderr]
error: invalid value for 'port': ...
Behavior
- Reads current config, applies one key change, then writes back.
- Value parsing order:
- Parse as TOML literal (for numbers, booleans, quoted strings).
- If parsing fails, treat the value as a plain string.
- Exits non-zero when validation fails.