Monito CLI

Configuration

Configure the Monito CLI behavior.

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-cli config path

Get a config value:

monito-cli config get host
monito-cli config get user

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

monito-cli 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