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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file uptime_kuma_cli-0.1.2.tar.gz.
File metadata
- Download URL: uptime_kuma_cli-0.1.2.tar.gz
- Upload date:
- Size: 4.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
06e6d33006b83269975f348ab31ee03b43eb1587617c38c4149ff1bf672d1fb9
|
|
| MD5 |
a7a56675eb202f90d72f5e877ac8d89d
|
|
| BLAKE2b-256 |
c50099247ffe68ddaaf632061cdb5bf0554f13c81257002595352bbdd4a10967
|
Provenance
The following attestation bundles were made for uptime_kuma_cli-0.1.2.tar.gz:
Publisher:
publish.yml on leaperone/uptime-kuma-cli
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
uptime_kuma_cli-0.1.2.tar.gz -
Subject digest:
06e6d33006b83269975f348ab31ee03b43eb1587617c38c4149ff1bf672d1fb9 - Sigstore transparency entry: 1196772305
- Sigstore integration time:
-
Permalink:
leaperone/uptime-kuma-cli@cd07a1e42bbc6bcdcbe13e9c4db55abbcc552f79 -
Branch / Tag:
refs/tags/v0.1.2 - Owner: https://github.com/leaperone
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@cd07a1e42bbc6bcdcbe13e9c4db55abbcc552f79 -
Trigger Event:
release
-
Statement type:
File details
Details for the file uptime_kuma_cli-0.1.2-py3-none-any.whl.
File metadata
- Download URL: uptime_kuma_cli-0.1.2-py3-none-any.whl
- Upload date:
- Size: 5.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4d7205aa10272f0fd7d429958f8d6915aa051ecad26dcec429892272a229d952
|
|
| MD5 |
f0085e48df638a8ea884068f58819f59
|
|
| BLAKE2b-256 |
84985b69bf89c5094b5d471bf2105ff18cd8ade1910e82003deb717b87e88fac
|
Provenance
The following attestation bundles were made for uptime_kuma_cli-0.1.2-py3-none-any.whl:
Publisher:
publish.yml on leaperone/uptime-kuma-cli
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
uptime_kuma_cli-0.1.2-py3-none-any.whl -
Subject digest:
4d7205aa10272f0fd7d429958f8d6915aa051ecad26dcec429892272a229d952 - Sigstore transparency entry: 1196772371
- Sigstore integration time:
-
Permalink:
leaperone/uptime-kuma-cli@cd07a1e42bbc6bcdcbe13e9c4db55abbcc552f79 -
Branch / Tag:
refs/tags/v0.1.2 - Owner: https://github.com/leaperone
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@cd07a1e42bbc6bcdcbe13e9c4db55abbcc552f79 -
Trigger Event:
release
-
Statement type: