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.2.0.tar.gz (4.8 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.2.0-py3-none-any.whl (5.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: uptime_kuma_cli-0.2.0.tar.gz
  • Upload date:
  • Size: 4.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for uptime_kuma_cli-0.2.0.tar.gz
Algorithm Hash digest
SHA256 a556a5d9b11fc46e5ec5f14a65d1e75e198d87bf9b8ae6c5e487ae437724ee41
MD5 40ea49e17b93e59fb17ecbc986c8f398
BLAKE2b-256 76ee00bb26f608ba59e106b2073350629b7348a55d389f16173c51a13267f72e

See more details on using hashes here.

Provenance

The following attestation bundles were made for uptime_kuma_cli-0.2.0.tar.gz:

Publisher: publish.yml on leaperone/uptime-kuma-cli

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

File hashes

Hashes for uptime_kuma_cli-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 574c9deb8438584259d7fa2268c86f69abd88a7ccdda183c5a28331f509d991b
MD5 cd0382fc69764b2853a68fef185cee8e
BLAKE2b-256 08e43dbe285a0711498f26e54563ddae25b6b61db5e5537845884f1bcaedece8

See more details on using hashes here.

Provenance

The following attestation bundles were made for uptime_kuma_cli-0.2.0-py3-none-any.whl:

Publisher: publish.yml on leaperone/uptime-kuma-cli

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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