Monito CLI

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.json

If 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 path

Get a config value:

monito config get host
monito config get user

Set a config value (currently only host is settable):

monito config set host https://your-instance.example.com

Environment Variables

VariableDescriptionDefault
MONITO_TOKENAuth token (overrides stored config)—
MONITO_HOSTAPI host URLhttps://monito.dev
XDG_CONFIG_HOMEBase config directory~/.config

Environment variables always take priority over the config file.

On this page