Pushbullet: How to Send a message from Bash

With this simple one line of code it is possible to send a message to your Pushbullet account from the Linux terminal. This is great if you want your BASH script to message you when a specific task completes or fails.

All that is required is a Pushbullet token that you can obtain from the settings within your PushBullet Account.

This can be found here https://www.pushbullet.com/#settings

pushbullet settings

Now paste the code to your terminal replacing the pushbullettoken with your own token and changing the body and title. It is that simple, give it a try.

curl --silent -u """pushbullettoken"":" -d type="note" -d body="Body of Message" -d title="Subject Of Message" 'https://api.pushbullet.com/v2/pushes'

There is a bunch of other stuff you can do using the API. More info can be found form the Pushbullet API docs.

https://docs.pushbullet.com