slackcat

Post code snippets and files directly to Slack from the CLI

brewmacoslinux
Try with needOr install directly
Source

About

Command-line utility for posting snippets to Slack

Commands

slackcat

Examples

Post a file to Slack$ slackcat -c #general myfile.txt
Pipe command output directly to Slack$ cat logfile.log | slackcat -c #logs
Post with a custom title and message$ slackcat -c #dev -t 'Error Report' -m 'Check this error:' error.log