I am a user of slack
I think the desktop client is useful, but sometimes I am working on servers. There is also a browser interface and android and iPhone Clients. My objective is to read and write messages form a command line, for example inside a server environment.
So is there a command line interface frontend for slack?
13 Answers
There is no full-fledged command line interface that I know of, but there is an API, so in principle anybody could start writing one. Slackcat is a first step in that direction.
A potential alternative approach might be installing a text-mode IRC or XMPP client on your servers, and using the Slack/IRC/XMPP gateway.
EDIT/UPDATE: This answer is clearly outdated now – see the comments and other answers.
3I use this one. Try
To install, type
npm install -g slack-cliTo send a message,
slackcli -t <Slack token> -g <Slack group name> -m "Hello, World!"To send a file,
slackcli -t <Slack token> -g <Slack group name> -f <File name>To send from standard input,
cat anyFile.txt | slackcli -t <Slack token> -g <Slack group name> -cYou can even set the token as environment variable.
SET SLACK_TOKEN=<Slack token>
slackcli -g yourGroupName -m "Hello, World!" 2 Here's Slacker, a CLI for Slack using PHP. You'll need your own Slack api token and adjust the configs:
1