A beautiful Python CLI tool for the Pingera Platform - built with typer and rich, distributed via pip and based on Pingera SDK.
- 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: Seamlessly integrates with Pingera SDK for managing and running checks (statuspages and other coming soon)
- 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
Install Pingera Platform CLI using pip:
pip install pingera-cliBefore 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-herepngr checks listpngr checks get <check-id>pngr checks create \
--name "My Website" \
--type web \
--url https://example.com \
--interval 300pngr checks results <check-id>pngr checks run custom \
--type web \
--url https://example.com \
--name "Quick Test"# 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# 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 sec123abc456pngr checks list-regionspngr checks list-regions --check-type webThe CLI stores configuration in ~/.config/pingera-cli/config.json. You can manage settings with:
# Show current configuration
pngr config show
# Set default output format
pngr config set output_format jsonThe CLI supports multiple output formats:
- table (default): Human-readable tables
- json: JSON format for scripting
- yaml: YAML format
# JSON output
pngr checks list --output json
# YAML output
pngr checks list --output yaml- Pingera Platform: https://pingera.ru
- Web Application: https://app.pingera.ru
- Documentation: https://docs.pingera.ru
# 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/This project is licensed under the MIT License - see the LICENSE file for details.
Contributions are welcome! Please feel free to submit a Pull Request.
- Issues: GitHub Issues
- Documentation: Pingera CLI Docs
- Platform Support: app.pingera.ru