Send messages to an incoming webhook via the command line. Useful if you want to automate sending messages via Slack.
./slacksend --secret <secret> --channel "alerts" --text "this message is sent by slacksend.".\slacksend.exe --secret <secret> --channel "alerts" --text "this message is sent by slacksend."secret: The secret part of your Incoming Webhook URL. You can get it from the API Guide. Format:T00000000/B00000000/XXXXXXXXXXXXXXXXXXXXXXXXchannel: Optional. If not set, messages will be sent to channelgeneral.#prefix is optional.text: the message's text
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/slacksendThis downloads and compiles the latest source and installs the binary.
Install Incoming WebHook on your Slack workspace.