Skip to main content

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.

PyPI version Python Support License: MIT

✨ 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, incident templates) 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:

  1. Get your API key: Visit app.pingera.ru and create an API token in your account settings
  2. Login to the CLI:
    pngr auth login --api-key your-api-key-here
    
  3. 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

# Reuse saved incident and maintenance templates
pngr pages incidents templates list --page-id <page-id>
pngr pages incidents create --page-id <page-id> --template <template-id>
pngr pages incidents schedule-maintenance --page-id <page-id> --start +24h --template <template-id>

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

🛠️ 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

Metadata

Release files for pingera-cli 0.3.0

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

Source distribution (sdist)

Source distribution for pingera-cli 0.3.0
File Size Uploaded Provenance Actions
pingera_cli-0.3.0.tar.gz 145.0 kB With provenance Details for pingera_cli-0.3.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pingera-cli 0.3.0
File Interpreter ABI Platform Actions
pingera_cli-0.3.0-py3-none-any.whl Python 3 none any Details for pingera_cli-0.3.0-py3-none-any.whl

Total release size: 290.2 kB

Release files / pingera_cli-0.3.0.tar.gz

Download URL pingera_cli-0.3.0.tar.gz
Size 145.0 kB
Tags Source
SHA-256 checksum
How to use checksums
27c8c26632bb5c5a746738d16bcaca6fcaf3fa054dd5bcc3f22076141b4786bc
BLAKE2b-256 checksum
How to use checksums
29cd7f51a9d646c3d4036df6deeff232766820bab6e6360bad37fa9245f0f612
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 Nov 8, 2026.

Transparency log

Release files / pingera_cli-0.3.0-py3-none-any.whl

Download URL pingera_cli-0.3.0-py3-none-any.whl
Size 145.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
dc70642a8fb6833a893cb6537bebaae87c510cea12e14f5ca8a868aa5c360da8
BLAKE2b-256 checksum
How to use checksums
117436126d7d184b932b8524926748dfd5ccde605b810adb798936b9144392fd
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 Nov 8, 2026.

Transparency log

Security for pingera-cli 0.3.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.

Select from 2 files

Attestation for pingera_cli-0.3.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 Nov 8, 2026.

Transparency log

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

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