Skip to main content

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

Metadata

Release files for uptime-kuma-cli 0.2.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for uptime-kuma-cli 0.2.2
File Size Uploaded
uptime_kuma_cli-0.2.2.tar.gz 5.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for uptime-kuma-cli 0.2.2
File Interpreter ABI Platform
uptime_kuma_cli-0.2.2-py3-none-any.whl Python 3 none any Details

Total release size: 12.0 kB

Release files / uptime_kuma_cli-0.2.2.tar.gz

Download URL uptime_kuma_cli-0.2.2.tar.gz
Size 5.8 kB
Tags Source
SHA-256 checksum
How to use checksums
44844db311bea8021bd9da5ecae310917f6596e4cabb7b9ee65f49fe5652d479
BLAKE2b-256 checksum
How to use checksums
c76b5abb7649d99ee20f19097eddaf05edf42b65543b6fe68860acb65e4631f1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Mar 30, 2026.

Transparency log

Release files / uptime_kuma_cli-0.2.2-py3-none-any.whl

Download URL uptime_kuma_cli-0.2.2-py3-none-any.whl
Size 6.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7922098f7bd2044a1e696895ca3bfd1a9ee93459a26a023879d94da10327b6d8
BLAKE2b-256 checksum
How to use checksums
8cdec35f9b9f8643d5470bde162fe8c3d289921f077c257fd6f9ff9a6c86c93e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Mar 30, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.2.2 This release

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page