Skip to main content

Command line tool for controlling PushBullet

Project description

Build Status Codecov PyPI license


$ pip install pushbullet-cli


Use Pushbullet from the command line.

First of all, set your API key by running:

$ pb set-key

Then pasting your API key at the prompt.

Push stdin to all devices:

$ echo "hello" | pb push

Push text to all devices:

$ pb push "I love burritos"

Pick a device to push to:

$ pb list-devices
# Find the index of your desired device
$ pb push -d 0 "iPhones cannot eat burritos"

Push links:

$ pb push --link

Push files:

$ pb push --file /path/to/burrito_photo.jpg

Push to all subscribers of channel:

$ pb push -c "CHANNEL" "Why burritos are better than tacos"

Send an SMS:

$ pb sms -d 0 -n +123456789 "I sense a soul in search of answers"

List your pushes:

$ pb list -c 20

To set the API key from within python:

import keyring, keyrings.alt
if isinstance(keyring.get_keyring(), keyrings.alt.file.EncryptedKeyring):
keyring.set_password("pushbullet", "cli", PUSHBULLET_KEY)


  • 1.2.2

    • Bump dependencies

    • Add support for python 3.10

  • 1.2.1

    • Bump dependencies

    • Fix #99

  • 1.2

    • Bump dependencies

  • 1.1

    • Bump keyring version (Security patches)

  • 1.0

    • Remove Python 2.7 support (Countdown)

    • Support to Click 7.0

    • Add test cases

    • Add CI build

    • Add coverage report

  • 0.7.6

    • List previous pushes (#35)

    • Avoid prompt the user when message is piped (#34)

    • Removes default title (Note) (#36)


Many thanks to the original author @r-darwish

Pull requests are welcome

Take a look at the Contributing guidelines

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pushbullet-cli-1.2.2.tar.gz (5.4 kB view hashes)

Uploaded source

Built Distribution

pushbullet_cli-1.2.2-py3-none-any.whl (6.1 kB view hashes)

Uploaded py3

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page