Slack Messaging
Send messages and upload files to Slack channels and users with the slack CLI.
When to use
Posting to a channel, DMing a user, replying in a thread, or sharing a file to Slack.
Commands
slack chat send --channel "#general" --text "Hello team"
slack chat send --channel "@username" --text "Hey!" # DM
slack chat send --channel "#dev" --text "*Bold* and _italic_" # Markdown
slack chat send --channel "#general" --thread-ts "1234567890.123456" --text "Reply"
slack files upload --channel "#general" --file ./report.pdf --title "Weekly Report"
slack channels list
Guidelines
- Confirm the target channel/user before sending.
- Use
#channel-namefor channels,@usernamefor DMs. - Use threads for follow-ups; keep messages concise.
- Avoid bulk sending in tight loops — rate limits apply.