A command-line tool for managing Uptime Kuma monitors.
Requires Python >= 3.13.
pip install uptime-kuma-cli
# Or using uv
uv tool install uptime-kuma-cli
# Or using pipx
pipx install uptime-kuma-cliProvide connection info via environment variables or CLI options:
# Environment variables (recommended)
export KUMA_URL=http://localhost:3001
export KUMA_USERNAME=admin
export KUMA_PASSWORD=yourpassword
# Or CLI options
kuma --url http://localhost:3001 -u admin -p yourpassword <command>kuma infokuma listOutput example:
ID Name Type Target Status Interval
1 Google http https://google.com UP 60s
2 Database port db.example.com:5432 DOWN 30s
3 DNS Check dns example.com:53 PAUSED 60s
kuma get 1# HTTP monitor
kuma add http "Google" "https://google.com"
# HTTP with custom interval (30s)
kuma add http "GitHub" "https://github.com" -i 30
# Ping monitor
kuma add ping "Server" "8.8.8.8"
# TCP port monitor
kuma add port "Database" "db.example.com" --port 5432
# DNS monitor
kuma add dns "DNS Check" "example.com" --dns-type A
# Keyword monitor (check if response contains a keyword)
kuma add keyword "Status Page" "https://example.com/health" -k "ok"Supported monitor types: http, ping, port, dns, keyword, push, docker, mqtt, postgres, mysql, mongodb, redis.
kuma edit 1 --name "New Name"
kuma edit 1 --interval 30
kuma edit 1 --target "https://new-url.com"kuma pause 1
kuma resume 1kuma delete 1 # with confirmation prompt
kuma delete 1 -y # skip confirmationMIT