Public | Automated Build

Last pushed: 4 months ago
Short Description
Send messages to Slack using your CLI
Full Description

slack_cli

Send messages to Slack using your CLI.

Usage

Usage: slack.py [OPTIONS] [MESSAGE]...

Options:
  --channel TEXT  Name of the channel to post.
  --help          Show this message and exit.

Configuration

It requires one environment variable SLACK_CLI_URL that is the URL of the webhhok (more info on how to get Slack webhook URL).

Also, you can configure the environment variable SLACK_CLI_USERNAME to send messages to this channel by default when you dont define a channel with --channel option.

Docker

The easiest way to use it is with Docker (so you don't have to install Python and/or its libraries).

You can find it on

$ docker run -e SLACK_CLI_USERNAME=$SLACK_CLI_USERNAME -e SLACK_CLI_URL=$SLACK_CLI_URL vidimensional/slack_cli message to post

May be you want to create an alias in your shell for this 😉.

# For Bash.
$ alias slack='docker run -e SLACK_CLI_USERNAME=$SLACK_CLI_USERNAME -e SLACK_CLI_URL=$SLACK_CLI_URL vidimensional/slack_cli'

Installing

If you prefer to install the command only you can do it just typing:

$ make install

and

$ make uninstall

when you're tired of it.

Docker Pull Command
Owner
vidimensional
Source Repository

Comments (0)