Usage

Connect to your Slack

This will open up your default browser for the Slack OAuth flow. The token will be written into ~/.slackpipe. It will attempt to get your username via the Slack API once it has a token, if it cannot it will ask what your username is.

bash
slackpipe configure

Upload a file to a particular channel

bash
slackpipe -c 'debugging' /path/to/file.go

Override the filename of the uploaded file

bash
slackpipe -c 'debugging' -f a-better-name.go /path/to/file.go

Pipe the output from a command to a Slack channel

We provide a filename as we wouldn't know what it should be for piped data. In this example, the filetype will be autodetected.

bash
docker ps -a --size --format json | slackpipe -c 'debugging' -f docker-containers.txt

Add a comment to the uploaded file

bash
slackpipe --channel='debugging' --comment "A comment to add to the uploaded file" /path/to/file.go

See the full usage info

bash
slackpipe --help