/pager_cli

pagerduty cli to list/ack/resolve incidents

Primary LanguagePythonMIT LicenseMIT

Overview

pagerduty cli to list/ack/resolve incidents

This project was generated with cookiecutter using jacebrowning/template-python.

Unix Build Status Windows Build Status Coverage Status Scrutinizer Code Quality PyPI Version PyPI License

Setup

Requirements

  • Python 3.7+

Installation

Install it directly into an activated virtual environment:

$ pip install pager_cli

or add it to your Poetry project:

$ poetry add pager_cli

Usage

create a file to store your API key

cat ~/.pager_cli -p
userid: YOUR_USER_ID(eg:PBZDORP)
apikey: YOUR_API_KEY

List and ACK the incident

 # pager_cli --help
 Usage: pager_cli [OPTIONS]

   Console script for pager_cli.

   Options:
   --action TEXT  Action list/ack/resolve
   --config TEXT  config file default:~/.pager_cli
   --help         Show this message and exit.
 # pager_cli
 ⠸ Loading...
 🦾 No active incident