Skip to main content

Send messages to slack from command line

Project description

Send messages to Slack from command line.


date | slacker -c slack_channel -t slack_token

The Slack token can be called from an enviroment variable, called SLACK_TOKEN.

You can set SLACK_TOKEN in your ~/.bashrc

# ~/.bashrc
export SLACK_TOKEN="slack_token_string"
date | slacker -c slack_channel

Send message to user:

date | slacker -u user_name

Upload file to channel:

date | slacker -c slack_channel -f image.png

Add sender name and emoji avatar:

date | slacker -n SlackerBot -i :dancer:


pip install slacker-cli

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

slacker-cli-0.4.2.tar.gz (3.8 kB view hashes)

Uploaded source

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