LinuxCommandLibrary

slackcat

slackcat

TLDR

Post a file to Slack

$ slackcat --channel [channel_name] [path/to/file]
copy


Post a file to Slack with a custom filename
$ slackcat --channel [channel_name] --filename=[filename] [path/to/file]
copy


Pipe command output to Slack as a text snippet
$ [command] | slackcat --channel [channel_name] --filename=[snippet_name]
copy


Stream command output to Slack continuously
$ [command] | slackcat --channel [channel_name] --stream
copy

Help

NAME:
   slackcat - redirect a file to slack 

USAGE:
   slackcat [global options] command [command options] [arguments...] 

VERSION:
   1.7.3 

COMMANDS:
     help, h  Shows a list of commands or help for one command 

GLOBAL OPTIONS:
   --channel value, -c value    Slack channel or group to post to 
   --comment value              Initial comment for snippet 
   --configure                  Configure Slackcat via oauth 
   --filename value, -n value   Filename for upload. Defaults to current timestamp 
   --filetype value             Specify filetype for syntax highlighting 
   --list                       List team channel names 
   --noop                       Skip posting file to Slack. Useful for testing 
   --stream, -s                 Stream messages to Slack continuously instead of uploading a single snippet 
   --tee, -t                    Print stdin to screen before posting 
   --token value                Optional Slack token to use, ignoring config file 
   --username value, -u value   Stream messages as given bot user. Defaults to auth user 
   --iconemoji value, -i value  Stream messages as given bot icon emoji. Defaults to auth user's icon 
   --thread                     Send subsequent messages as threaded reply to orignial message 
   --help, -h                   show help 
   --version, -v                print the version 

Copied to clipboard