Release: Slack CLI v4.14.0
Slack CLI v4.14.0 added a way to search and read the Slack developer docs from the terminal. The new slack docs get command prints a docs page as markdown. Add --output=json to get JSON, or --output=browser to open the page in your browser.
slack docs search also changed. When a coding agent runs it, text results link to the markdown version of each page, so the agent can read the page without parsing HTML. A new --hide-pinned flag leaves out the pages docs.slack.dev pins to the top of some searches. For example, slack docs search "Block Kit" searches the docs, and adding --output=browser opens the results in your browser.
The release also changes how the CLI handles tokens:
- The --token flag reads the token from standard input when you pass -. That keeps it out of shell history and process listings. It works for the global flag and for slack auth login.
- Hook processes get a SLACK_USER_TOKEN environment variable alongside SLACK_APP_TOKEN and SLACK_BOT_TOKEN. It's set when you install an app that requests user scopes with slack run, slack install, or slack deploy.
A few smaller changes came with it:
- slack init has an --environment flag that saves an existing app as local or deployed, matching slack app link.
- A new manifest property, features.app_home.agent_tasks_enabled, lets CLI-managed apps turn off the agent Tasks tab.
- Confirmation prompts that --force skips now suggest that flag when the CLI can't prompt in a non-interactive terminal. An explicit --force=false answers "no" instead of prompting.