https://github.com/peterjaap/pushover-cli
Yet another Pushover command line tool
https://github.com/peterjaap/pushover-cli
cli command-line-tool console-application php pushover
Last synced: 9 months ago
JSON representation
Yet another Pushover command line tool
- Host: GitHub
- URL: https://github.com/peterjaap/pushover-cli
- Owner: peterjaap
- License: mit
- Created: 2018-08-12T12:00:17.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2019-10-12T18:28:13.000Z (over 6 years ago)
- Last Synced: 2025-10-10T18:15:56.038Z (9 months ago)
- Topics: cli, command-line-tool, console-application, php, pushover
- Language: PHP
- Homepage:
- Size: 11.7 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# pushover-cli
Yet another [Pushover](https://www.pushover.net) CLI tool.
## Installation
Download the phar file:
```
wget https://github.com/peterjaap/pushover-cli/releases/download/0.1.1/pushover-cli.phar
```
Chmod it & move it:
```
chmod +x pushover-cli.phar
mv pushover-cli.phar /usr/local/bin/
```
Add alias to your `~/.bashrc` / `~/.zshrc` file (optional);
```
alias po=pushover-cli.phar send
```
Send it!
```
po "#sendit"
```
## Configuration
1. Download the Pushover app in the [iOS App Store](https://itunes.apple.com/nl/app/pushover-notifications/id506088175?mt=8) or the [Google Play Store](https://play.google.com/store/apps/details?id=net.superblock.pushover&hl=nl)
1. Create an account from the app or at [Pushover.net](https://www.pushover.net).
1. Create an application in the [Pushover dashboard](https://pushover.net/apps/build) (name it 'CLI', for example).
1. Create a `.pushover.yaml` file in your home dir (`~/.pushover.yaml`) and fill it with your user and app token;
```
user: USER_TOKEN_HERE
app: APP_TOKEN_HERE
```
## How to use
```
$ pushover-cli.phar help send
Usage:
send [options] [--] []
Arguments:
message The body of the message to be sent [default: ""]
Options:
-t, --title[=TITLE] The title of the message to be sent
-l, --link[=LINK] The link that accompanies the message
-p, --priority[=PRIORITY] The priority the message is to be sent with (0 is default, 1 is ignore quiet hours, 2 is repeat until acknowledged) [default: 0]
--token[=TOKEN] The app token to be used - find in Pushover dashboard
--user[=USER] The user token to be used - find in Pushover dashboard
-h, --help Display this help message
-q, --quiet Do not output any message
-V, --version Display this application version
--ansi Force ANSI output
--no-ansi Disable ANSI output
-n, --no-interaction Do not ask any interactive question
-lt, --link-title[=LINK-TITLE] The title for the link that accompanies the message
-v|vv|vvv, --verbose Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
Help:
Send a message to Pushover
```
If no title is given, the name of the application will be used.