Directory Compare FCRS-1.0 /llms.txt
← Back to Directory

Slack CLI

$ slack Official Med Risk
Slack · Workspace & SaaS · Apache-2.0 · macos / linux / windows

Slack 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.

FCRS-1.0 Score
81 /100
Good
Medium Confidence
Zero-Friction Install
brew install --cask slack-cli
CLI vs MCP Decision Hybrid (CLI + MCP)

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

— JSON Output
— Field Filtering
✓ Non-Interactive
— Dry-Run
— Read-Only Mode
— NO_COLOR Clean
✓ Self-Describing
— Official SKILL.md

Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.

FCRS-1.0 6-Dimension Breakdown

Agent-Readiness 19 / 25

Supports --token, --team, and --skip-update for scripting, though output is mostly human-oriented text and some commands prompt interactively.

  • slack manifest validate exits non-zero on schema errors
  • Lacks universal --json flag across subcommands
Trust & Safety 20 / 25

Scopes operations to explicit app/workspace tokens and provides manifest validate before deployment.

  • slack auth list shows active workspace bindings
  • slack deploy --hide-triggers reduces unintended trigger prompts
Setup & Portability 12 / 15

Single Go binary distributed via Homebrew cask (--cask slack-cli) and GitHub releases; Deno runtime needed for workflow apps.

  • Note: brew install slack installs the GUI app, requiring --cask slack-cli
Utility & Efficiency 13 / 15

Primary official workflow for Slack automation apps, datastore queries, and trigger management.

  • Manages Slack-hosted Deno apps, triggers, and manifests end to end
Maintenance & Lineage 9 / 10

Official Slack repository (slackapi/slack-cli) maintained under Apache-2.0.

  • Official Slack GitHub organization
Docs & Verifiability 8 / 10

Clear command reference in Slack API automation documentation.

  • Official command reference at api.slack.com/automation/cli/commands

Security, Auth & Guardrails

Auth Modes
OAuth Browser Env API Key Config File
Credential Storage

Stores workspace service tokens in ~/.slack/credentials.json or accepts --token for CI/headless execution.

Side Effects
Read-Only Local Write Remote Write
Cost & Quotas

CLI is free (Apache-2.0); Slack-hosted Deno functions require a paid Slack plan.

Copyable Guardrail for CLAUDE.md / AGENTS.md
# 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

List authenticated Slack workspaces
slack auth list

Displays currently authorized workspaces, user IDs, and token expiration status.

Validate local Slack app manifest
slack manifest validate

Validates the project's Slack app manifest against Slack's schema without deploying.

Controlled Writes & Previews

Deploy Slack app to workspace
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 validate provides fast pre-deployment schema verification.
  • + Clean --token and --team flags 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 slack collides with the desktop client—must use brew install --cask slack-cli.

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI