LinuxCommandLibrary

slackcat

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 sends to Slack. It pipes output to channels.
Command output to Slack. Integrate with scripts.
File uploads supported. Share snippets.
Stream mode available. Continuous output.
Tee mode preserves output. Send and display.

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)

Copied to clipboard