Slack Web API CLI wrapper powered by @slack/web-api.
List all available Slack methods:
slack-api listCall a method:
slack-api auth.test --token xoxb-...
slack-api conversations.list --token xoxb-... --param limit=50
slack-api chat.postMessage --token xoxb-... --input '{"channel":"C123","text":"hello"}'| Flag | Description |
|---|---|
--token <token> |
Slack API token (or set SLACK_TOKEN env) |
--input <json> |
JSON object passed as method arguments |
--input-file <path> |
Read JSON input from a file |
--param KEY=VALUE |
Set individual parameters (repeatable) |
- Method names use Slack's dot notation (
chat.postMessage,conversations.list, etc.) --paramvalues are auto-parsed:true/false→ boolean, digits → number,{}/[]→ JSON--tokenis passed to theWebClientconstructor; method arguments come from--input/--param
MIT. See LICENSE.