Skip to content

Send Slack messages to an incoming webhook via the command line

License

Notifications You must be signed in to change notification settings

ReneGa/slacksend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Send Slack messages to an incoming webhook via the command line

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages