Skip to content

v0.1.9

Choose a tag to compare

@Cluas Cluas released this 14 Apr 04:53

What's New

File Management Commands

New slackctl file subcommand group with full file CRUD operations:

  • file upload — Upload files/images to channels or threads using Slack V2 API. Supports stdin piping (-).
  • file download — Download files with authenticated requests. --url-only for metadata only.
  • file list — List files with --channel, --user, --types filters and pagination.
  • file info — Get detailed file metadata.
  • file delete — Delete files.

Examples

# Upload a file to a channel
slackctl file upload ./report.pdf "#general" --title "Report" --message "Weekly report"

# Pipe from stdin
cat output.log | slackctl file upload - "#ops" --filename "build.log"

# Download a file
slackctl file download F0123ABC --output ./downloaded.png

# List images in a channel
slackctl file list --channel "#general" --types images --limit 10