slack
Original:🇺🇸 English
Translated
Read Slack messages, threads, and channels via CLI. Use when asked to view Slack URLs, search Slack, or look up Slack users.
16installs
Sourcelox/slack-cli
Added on
NPX Install
npx skill4agent add lox/slack-cli slackTags
Translated version includes tags in frontmatterSKILL.md Content
View Translation Comparison →Slack CLI
A CLI for reading Slack content - messages, threads, channels, and users.
Installation
If is not on PATH, install it:
slack-clibash
brew install lox/tap/slack-cliOr:
go install github.com/lox/slack-cli@latestSee https://github.com/lox/slack-cli for setup instructions (Slack app creation and OAuth).
Available Commands
slack-cli view <url> # View any Slack URL (message, thread, or channel)
slack-cli search <query> # Search messages
slack-cli channel list # List channels you're a member of
slack-cli channel read # Read recent messages from a channel
slack-cli channel info # Show channel information
slack-cli thread read # Read a thread by URL or channel+timestamp
slack-cli user list # List users in the workspace
slack-cli user info # Show user information
slack-cli auth config # Configure Slack app credentials
slack-cli auth login # Authenticate with Slack via OAuth
slack-cli auth status # Show authentication statusCommon Patterns
View a Slack URL the user shared
bash
slack-cli view "https://workspace.slack.com/archives/C123/p1234567890" --markdownSearch for messages
bash
slack-cli search "from:@username keyword"
slack-cli search "in:#channel-name keyword"Read a channel
bash
slack-cli channel read #general --limit 50Discovering Options
To see available subcommands and flags, run on any command:
--helpbash
slack-cli --help
slack-cli view --help
slack-cli search --helpNotes
- Use flag when you need to process or quote the output
--markdown - Thread URLs with parameter are automatically detected
thread_ts - Channel names can include or omit the prefix
# - User lookup accepts both user IDs (U123ABC) and email addresses