Skip to content

Latest commit

 

History

History
41 lines (26 loc) · 1.17 KB

README.md

File metadata and controls

41 lines (26 loc) · 1.17 KB

slacksend

Send messages to an incoming webhook via the command line. Useful if you want to automate sending messages via Slack.

Usage

Examples

Mac / Linux

./slacksend --secret <secret> --channel "alerts" --text "this message is sent by slacksend."

Windows

.\slacksend.exe --secret <secret> --channel "alerts" --text "this message is sent by slacksend."

Flags

  • secret: The secret part of your Incoming Webhook URL. You can get it from the API Guide. Format: T00000000/B00000000/XXXXXXXXXXXXXXXXXXXXXXXX
  • channel: Optional. If not set, messages will be sent to channel general. # prefix is optional.
  • text: the message's text

Installation

Download the latest release (Windows, Mac or Linux): https://github.com/ReneGa/slacksend/releases

If you have Go installed, you can also use go get.

go get -u github.com/ReneGa/slacksend

This downloads and compiles the latest source and installs the binary.

Setup

Install Incoming WebHook on your Slack workspace.