LinuxCommandLibrary

slackcat

Pipe command output to Slack channels

TLDR

Send message

$ slackcat -c [channel] -m "[message]"
copy
Pipe to channel
$ cat [file] | slackcat -c [channel]
copy
Upload file
$ slackcat -c [channel] [file.txt]
copy
Send as snippet
$ slackcat -c [channel] --filename [code.py] [file.py]
copy
Tee mode
$ cat [file] | slackcat -c [channel] --tee
copy
Stream output
$ tail -f [log] | slackcat -c [channel] --stream
copy

SYNOPSIS

slackcat [-c channel] [-m message] [options] [file]

DESCRIPTION

slackcat pipes command-line output and files directly to Slack channels, bridging terminal workflows with team communication. It accepts input from stdin, command arguments, or file uploads, sending the content as messages or file snippets to a specified channel.
Stream mode (--stream) sends output continuously as it arrives, useful for tailing log files into Slack in real time. Tee mode (--tee) simultaneously prints output to stdout and sends it to Slack, preserving normal terminal behavior while sharing with the team.

PARAMETERS

-c CHANNEL

Target channel.
-m TEXT
Message text.
--filename NAME
Upload filename.
--tee
Also print to stdout.
--stream
Stream mode.
--noop
Dry run.

CAVEATS

Requires Slack token. API configuration needed. Rate limits apply.

HISTORY

slackcat was created to pipe command-line output directly to Slack channels for team communication.

SEE ALSO

slack(1), curl(1), tee(1)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community