Release: Slack CLI v4.1.0
Version 4.1.0 of the Slack CLI has landed!
- We've added a
slack api <method>command, which allows you to call any API method directly from the Slack CLI. For example:slack api chat.postMessage channel=C123 text="hi"slack api chat.postMessage '{"channel":"C123","text":"hi"}'
- Interactive forms are now screen reader friendly when the
ACCESSIBLEenvironment variable is set, or when using the--accessibleflag. - We've added a new
env initcommand to copy a template placeholder.env.sampleor.env.examplefile to the.envfile of your project. - We've added support for the
settings.is_mcp_enabled: <bool>manifest property to enable or disable the Slack MCP Server. This causes cached values to expire and the next run attempt may surface a warning noting that app settings have changed since the last update. - We've added support for optional OAuth scopes (
bot_optionalanduser_optional) in the app manifest schema. - We've added a
SLACK_CLI_APP_ICON_PATHenvironment variable to override the icon file path used during app install and local run. When set, the specified path takes priority over the manifesticonfield and the default icon file search. A warning is displayed if the configured path does not exist. - Icon auto-detection now supports
.png,.jpg,.jpeg, and.gifformats inassets/and project root. Theassets/directory is checked before project root;.pngis preferred when multiple formats exist. - App manifest display names now preserve the original app name instead of using the kebab-case directory name during
slack create. - We've added verbose debug logging and retry support to icon upload API calls.
- We capitalized "App" in the
slack createcategory selection menu titles for more consistent title casing. - We've added more polish to outputs from the
slack createcommand section headers. - The
slack createcommand preserves path separators when a nested path is provided as the project directory. The--nameflag now only overrides the app's display name in the manifest without replacing the path argument. For example:$ slack create path/to/my-app --name "My App"
# Creates directory at ./path/to/my-app/ with manifest name "My App" - We fixed the S3
Content-MD5header when deploying a Deno app to Slack. We now remove the MD5 hash computation andContent-MD5header from S3 presigned POST uploads to avoid an error. - The Slack CLI installer now outputs the pinned version provided if a particular version is provided, rather than a version and blank space.
- The Slack CLI now avoids uploading icons for non-hosted apps that do not have the
set-iconexperiment enabled.