This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!
Project Description

Interact with Slack from the command line.

This was initially a fork of but the two projects have now considerably diverged.


pip install slack-cli

Note that slack-cli is compatible with Python 2.7+ and Python 3.4+.

You should obtain an API token from Slack. This token can passed as an option to the CLI (see below) or stored in an environment variable.

You may set SLACK_TOKEN in your ~/.bashrc:

# ~/.bashrc
export SLACK_TOKEN="slack_token_string"


Send message to channel, group or user

Post to @general from stdin:

date | slack-pipe -t slack_token general

In the following examples we assume the SLACK_TOKEN environment variable is properly defined.

Post to channel:

slack-send "Hello world" general

Send message to user:

date | slack-pipe username

Upload file to channel @random:

slack-upload lolcat.png random

Send non-formatted message to channel:

cat | slack-pipe general

Send the result of a command to John:

slack-run "git status" john

Stream content in real time

The slack-stream command was written to emulate the behaviour of tail -f:

slack-stream general username groupname
Release History

Release History


This version

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

Download Files

Download Files

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

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
slack-cli-0.2.0.tar.gz (4.1 kB) Copy SHA256 Checksum SHA256 Source Mar 24, 2016

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting