Slack CLI
$ slack Official Med RiskSlack CLI (slack) manages modern Slack app lifecycles: scaffolding projects, validating manifest definitions, managing workspace triggers, tailing activity logs, and deploying Slack-hosted Deno functions. It is built for app development rather than reading user chat messages.
brew install --cask slack-cli Use slack CLI for Slack app manifests, triggers, and deployments; use a Slack MCP server when an agent needs to read channels or post team messages.
Agent-Readiness Checklist
Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.
FCRS-1.0 6-Dimension Breakdown
Supports --token, --team, and --skip-update for scripting, though output is mostly human-oriented text and some commands prompt interactively.
slack manifest validateexits non-zero on schema errors- Lacks universal
--jsonflag across subcommands
Scopes operations to explicit app/workspace tokens and provides manifest validate before deployment.
slack auth listshows active workspace bindingsslack deploy --hide-triggersreduces unintended trigger prompts
Single Go binary distributed via Homebrew cask (--cask slack-cli) and GitHub releases; Deno runtime needed for workflow apps.
- Note:
brew install slackinstalls the GUI app, requiring--cask slack-cli
Primary official workflow for Slack automation apps, datastore queries, and trigger management.
- Manages Slack-hosted Deno apps, triggers, and manifests end to end
Official Slack repository (slackapi/slack-cli) maintained under Apache-2.0.
- Official Slack GitHub organization
Clear command reference in Slack API automation documentation.
- Official command reference at api.slack.com/automation/cli/commands
Security, Auth & Guardrails
Stores workspace service tokens in ~/.slack/credentials.json or accepts --token for CI/headless execution.
CLI is free (Apache-2.0); Slack-hosted Deno functions require a paid Slack plan.
# Slack CLI Agent Rules - Always run `slack manifest validate` before `slack deploy`. - Pass `--team` (or `--app`) explicitly in multi-workspace environments to avoid deploying to the wrong workspace. - Do not run `slack run` or `slack activity --tail` synchronously without a bounded timeout.
Agent-Ready Command Recipes
Safe Read-Only Queries
slack auth list
Displays currently authorized workspaces, user IDs, and token expiration status.
slack manifest validate
Validates the project's Slack app manifest against Slack's schema without deploying.
Controlled Writes & Previews
slack deploy --hide-triggers
Deploys updated app code and manifest to the selected workspace while skipping interactive trigger creation prompts.
Strengths for Agents
- +
slack manifest validateprovides fast pre-deployment schema verification. - + Clean
--tokenand--teamflags support CI/CD and multi-workspace separation. - + Official Apache-2.0 Go binary with active maintenance from Slack.
Caveats & Pitfalls
- ! Built for Slack app development rather than reading/sending everyday workspace messages.
- !
brew install slackcollides with the desktop client—must usebrew install --cask slack-cli.