Appearance
Configuration Commands
These commands manage SafeCall runtime configuration.
safecall config
Shows current configuration in a grouped, human-readable format.
Usage
bash
sudo ./util.sh config showNotes
- Reads from
main.config.jsonorconfig/main.config.json. - Groups keys by logical area (server, auth, bridge, MQTT, etc).
safecall config edit
Opens configuration in an editor.
Usage
bash
sudo ./util.sh config editBehavior
- Uses
$EDITORif set; otherwisenano. - Validates JSON before restart.
- If JSON is invalid after edit, service is not restarted.
safecall config set <key> <value>
Sets one config key and writes file back to disk.
Usage
bash
sudo ./util.sh config set server_http_port 8090
sudo ./util.sh config set server_ntfy_enabled true
sudo ./util.sh config set server_features '["bridge","safecall"]'Hidden behavior
Value type is auto-parsed:
true/false-> booleans- numeric text -> number
- values starting with
[-> JSON parse attempt - fallback -> string
If the service is active, it is restarted automatically.
safecall config reset
Resets configuration to defaults.
Usage
bash
sudo ./util.sh config resetBehavior
- Rebuilds defaults from
config/defaults.ts. - Writes config and restarts service if active.
safecall config regen-mobile-key
Regenerates server_mobile_api_key.
Usage
bash
sudo ./util.sh config regen-mobile-keyBehavior
- Creates a new 32-byte random hex key.
- Persists it in config and restarts service if running.
When to use these commands
- Use
config setfor precise, scriptable one-key changes. - Use
config editfor bulk/manual edits. - Use
regen-mobile-keywhen rotating API credentials. - Use
resetfor known-good baseline recovery.