Pingera Platform CLI 🚀
A beautiful Python CLI tool for the Pingera Platform - built with typer and rich, distributed via pip and based on Pingera SDK.
✨ Features
- Beautiful Terminal Output: Powered by Rich library for colorful, formatted output
- Modern CLI Interface: Built with Typer for intuitive command-line interactions
- Pingera Platform Integration: Manage checks, uptime and performance analytics, alert rules and channels, and status pages (components, incidents, maintenance, postmortems) through the Pingera SDK
- Cross-Platform: Works on Windows, macOS, and Linux
- Easy Installation: Simple pip install with all dependencies managed
- Configuration Management: Flexible configuration with environment variables and config files
- Secrets Management: Manage organization secrets for monitoring checks
🚀 Installation
Install Pingera Platform CLI using pip (requires Python 3.10+):
pip install pingera-cli
The CLI is built on pingera-sdk 1.2+, which is installed automatically.
🔐 Authentication
Before using the CLI, you need to authenticate with the Pingera Platform:
- Get your API key: Visit app.pingera.ru and create an API token in your account settings
- Login to the CLI:
pngr auth login --api-key your-api-key-here
- Verify authentication:
pngr auth status
Alternatively, you can set the API key as an environment variable:
export PINGERA_API_KEY=your-api-key-here
📖 Basic Usage
List all monitoring checks
pngr checks list
Get details of a specific check
pngr checks get <check-id>
Create a new web check
pngr checks create \
--name "My Website" \
--type web \
--url https://example.com \
--interval 300
Schedule a check with cron
# Run on weekdays at 09:00 instead of a fixed interval
pngr checks create --name "Morning check" --type web --url https://example.com --cron "0 9 * * 1-5"
# Switch an existing check between cron and interval scheduling
pngr checks update <check-id> --cron "*/15 * * * *"
pngr checks update <check-id> --interval 300
Get check results
pngr checks results <check-id>
Uptime and performance
# Uptime over the last 7 days, with hour-by-hour detail
pngr checks uptime <check-id> --from 7d --hourly
# p95/p99 response times per region
pngr checks response-times <check-id> --from 24h
# Success rate per region across all checks
pngr checks stats --from 7d
Run an on-demand check
pngr checks run custom \
--type web \
--url https://example.com \
--name "Quick Test"
Manage check groups
# List all check groups
pngr checks groups list
# Create a new group
pngr checks groups create \
--name "Production APIs" \
--description "Critical production endpoints" \
--color "#FF5733"
# Assign a check to a group
pngr checks assign-group check_123 --group-id group_456
# Remove a check from its group
pngr checks assign-group check_123 --group-id null
Alerts
# Create a notification channel and a rule that alerts after 3 consecutive failures
pngr alerts channels create --name "On-call" --email oncall@example.com
pngr alerts rules create --name "API down" --check <check-id> --count 3 --channel <channel-id>
# See what is firing and acknowledge it
pngr alerts list --status firing
pngr alerts ack <alert-id>
Status pages
# Post an incident and follow-up updates
pngr pages incidents create --page-id <page-id> --name "API errors" --status investigating --impact major
pngr pages incidents updates add <incident-id> --page-id <page-id> --status resolved --body "Fixed"
# Schedule maintenance
pngr pages incidents schedule-maintenance --page-id <page-id> --name "DB upgrade" --start +24h --end +26h
# Component uptime for the whole page
pngr pages components uptime-report --page-id <page-id> --from 2026-01-01
See docs/cli-commands.md for the full command reference.
Secrets Management
# List organization secrets
pngr secrets list
# Create a new secret
pngr secrets create "DATABASE_PASSWORD"
# Update a secret's value
pngr secrets update sec123abc456
# Delete a secret
pngr secrets delete sec123abc456
List available regions
pngr checks list-regions
Filter regions by check type
pngr checks list-regions --check-type web
🔧 Configuration
The CLI stores configuration in ~/.config/pingera-cli/config.json (or $XDG_CONFIG_HOME/pingera-cli/config.json). You can manage settings with:
# Show current configuration
pngr config --show
# Set the default output format
pngr config --output-format json
# Point the CLI at a different API endpoint
pngr config --base-url https://api.pingera.ru
📊 Output Formats
The CLI supports multiple output formats:
- table (default): Human-readable tables
- json: JSON format for scripting
- yaml: YAML format
--output/-o is a global option, so it goes before the command. It applies to that invocation only; use pngr config --output-format to change the default.
# JSON output
pngr -o json checks list
# YAML output
pngr -o yaml checks list
In json/yaml mode, stdout contains only the data, and status messages go to stderr, so output can be piped safely (for example, pngr -o json checks list | jq '.checks[].id').
🌐 Platform Links
- Pingera Platform: https://pingera.ru
- Web Application: https://app.pingera.ru
- Documentation: https://docs.pingera.ru
🛠️ Development
# Clone the repository
git clone https://github.com/pingera/pingera-cli.git
cd pingera-cli
# Install in development mode
pip install -e .
# Test the CLI (after installation)
pngr --help
# Run tests
python -m pytest tests/
Releasing
Bump __version__ in pingera_cli/__init__.py, merge to main, then push a matching tag:
git tag v0.2.0 && git push origin v0.2.0
The release workflow runs the tests, builds the package, publishes it to PyPI (Trusted Publishing) and creates a GitHub release.
📝 License
This project is licensed under the MIT License - see the LICENSE file for details.
🤝 Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
📞 Support
- Issues: GitHub Issues
- Documentation: Pingera CLI Docs
- Platform Support: app.pingera.ru
Metadata
Release files for pingera-cli 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pingera_cli-0.2.0.tar.gz | 138.8 kB | With provenance | Details for pingera_cli-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pingera_cli-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for pingera_cli-0.2.0-py3-none-any.whl |
Total release size: 278.5 kB
Release files / pingera_cli-0.2.0.tar.gz
| Download URL | pingera_cli-0.2.0.tar.gz |
|---|---|
| Size | 138.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0d000a387aa7a5bf2fef57871d94fe759e97d74f78ac7dbecf898ebdd2c0e0c4
|
|
BLAKE2b-256 checksum How to use checksums |
4cb56e0721446009f1eab7108e817727b79a5b5735610034172de7f5f729fcf4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Oct 28, 2026.
Transparency logRelease files / pingera_cli-0.2.0-py3-none-any.whl
| Download URL | pingera_cli-0.2.0-py3-none-any.whl |
|---|---|
| Size | 139.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1a1efdeb49df8cfee19126c67e0d99601b89b87a20d4fa083ded29ef8fe4c3ee
|
|
BLAKE2b-256 checksum How to use checksums |
369de18b471d5ae1669a8b536407adec20df1423ede7900f28271d90252e4a6a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Oct 28, 2026.
Transparency logSecurity for pingera-cli 0.2.0
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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for pingera_cli-0.2.0.tar.gz
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 Oct 28, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.