Skip to content

Instantly share code, notes, and snippets.

View laubstein's full-sized avatar

Thiago Laubstein laubstein

View GitHub Profile
@laubstein
laubstein / uptime-kuma-cli.py
Created April 29, 2026 16:44 — forked from rkok/uptime-kuma-cli.py
Uptime Kuma "API" CLI
#!/usr/bin/env python3
"""
uptime-kuma-cli.py — Manage Uptime Kuma monitors via direct SQLite DB manipulation.
Workflow: stop container → write DB → start container.
Reads (--list, --export) do NOT stop/start the container — DB is opened read-only.
Usage:
python3 uptime-kuma-cli.py --list
python3 uptime-kuma-cli.py --add '{"name": "[vps01] foo.nl", "url": "https://foo.nl"}'