CLI configuration and project files
Configure the Monito CLI host and authentication with environment variables, inspect stored values, and locate your config file.
Config File
The CLI stores its configuration at:
~/.config/monito/config.jsonIf XDG_CONFIG_HOME is set, it uses $XDG_CONFIG_HOME/monito/config.json instead.
The config file contains:
{
"token": "your-auth-token",
"user": {
"id": "user-id",
"email": "you@example.com",
"name": "Your Name"
},
"host": "https://monito.dev"
}Commands
Print the config file path:
monito config pathGet a config value:
monito config get host
monito config get userSet a config value (currently only host is settable):
monito config set host https://your-instance.example.comEnvironment Variables
| Variable | Description | Default |
|---|---|---|
MONITO_TOKEN | Auth token (overrides stored config) | — |
MONITO_HOST | API host URL | https://monito.dev |
XDG_CONFIG_HOME | Base config directory | ~/.config |
Environment variables always take priority over the config file.