slackcat
Utility for passing files and command output to Slack. More information: https://github.com/bcicen/slackcat.
-
Post a file to Slack:
slackcat --channel {{channel_name}} {{path/to/file}}
-
Post a file to Slack with a custom filename:
slackcat --channel {{channel_name}} --filename={{filename}} {{path/to/file}}
-
Pipe command output to Slack as a text snippet:
{{command}} | slackcat --channel {{channel_name}} --filename={{snippet_name}}
-
Stream command output to Slack continuously:
{{command}} | slackcat --channel {{channel_name}} --stream
License and Disclaimer
The content on this page is copyright © 2014—present the tldr-pages team and contributors.This page is used with permission under Creative Commons Attribution 4.0 International License.
While we do attempt to make sure content is accurate, there isn't a warranty of any kind.