Skip to main content

Release: Slack CLI v4.14.0

You can now search and read the Slack developer docs without leaving the CLI, pass tokens on standard input, and more:

  • We've updated the slack docs commands so you can search and read the Slack developer docs without leaving the terminal:
    • We've added the slack docs get <page> command, which prints a Slack developer docs page as markdown, returns it as JSON with --output=json, or opens it in a browser with the --output=browser flag.
    • We've updated the slack docs search command so that, when a coding agent runs it, text results link to the markdown version of each page. The agent can read the page without parsing HTML.
    • We've added the --hide-pinned flag to the slack docs search command, which leaves out the pages docs.slack.dev pins to the top of some searches.
    • We've updated the help text for the slack docs command to lead with searching the docs, and the slack --help output now shows a slack docs search example.
  • We've updated how the CLI handles tokens:
    • The --token flag now reads the token from standard input when its value is -, which keeps tokens out of shell history and process listings. This works for both the global --token flag and the slack auth login command.
    • We've added the SLACK_USER_TOKEN environment variable for hook processes, alongside the SLACK_APP_TOKEN and SLACK_BOT_TOKEN variables. It's set when you install an app that requests user scopes with the slack run, slack install, or slack deploy command.
  • We've added the --environment flag to the slack init command to choose whether an existing app added during init is saved as local or deployed, matching the slack app link command.
  • We've added the features.app_home.agent_tasks_enabled manifest property, so apps managed with the CLI can turn off the agent Tasks tab.
  • We've updated the confirmation prompts that --force already skips to suggest the --force flag when the CLI can't prompt in a non-interactive terminal. An explicit --force=false flag now answers "no" to these prompts instead of prompting.