Skip to main content

CLI tool for managing Uptime Kuma monitors

Project description

uptime-kuma-cli

A command-line tool for managing Uptime Kuma monitors.

Installation

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

Configuration

Provide 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>

Commands

Server info

kuma info

List monitors

kuma list

Output 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

Get monitor details

kuma get 1

Add a monitor

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

Edit a monitor

kuma edit 1 --name "New Name"
kuma edit 1 --interval 30
kuma edit 1 --target "https://new-url.com"

Pause / Resume

kuma pause 1
kuma resume 1

Delete a monitor

kuma delete 1        # with confirmation prompt
kuma delete 1 -y     # skip confirmation

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

uptime_kuma_cli-0.1.1.tar.gz (4.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

uptime_kuma_cli-0.1.1-py3-none-any.whl (5.1 kB view details)

Uploaded Python 3

File details

Details for the file uptime_kuma_cli-0.1.1.tar.gz.

File metadata

  • Download URL: uptime_kuma_cli-0.1.1.tar.gz
  • Upload date:
  • Size: 4.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.0 {"installer":{"name":"uv","version":"0.10.0","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for uptime_kuma_cli-0.1.1.tar.gz
Algorithm Hash digest
SHA256 25dfa347f7df458a818ac4911ff8be96f24939771bbc41a70ece3680a41988d0
MD5 d76468a41f02b94170ee646b6acb9aca
BLAKE2b-256 f7b8687aee12adac2b19b2c532cfa80c91970f7f0ddde6ac53350a73b0d1980c

See more details on using hashes here.

File details

Details for the file uptime_kuma_cli-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: uptime_kuma_cli-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 5.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.0 {"installer":{"name":"uv","version":"0.10.0","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for uptime_kuma_cli-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c1c67d0f91595fc32d70d90140ed4928a007706b51af6123d1bdc6c2e185b23e
MD5 f1f5f50ca60a5643f94cd0f96f6c4e15
BLAKE2b-256 68a035eed03125752ed0bac8031f26c615c7740952bedbf4410ba803c73e25ee

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page