pagerduty cli to list/ack/resolve incidents
This project was generated with cookiecutter using jacebrowning/template-python.
- Python 3.7+
Install it directly into an activated virtual environment:
$ pip install pager_cli
or add it to your Poetry project:
$ poetry add pager_cli
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