From 2061366dc73e8f005bb7114b32657108a3b289fa Mon Sep 17 00:00:00 2001
From: "slack-cli-releaser[bot]"
<122933866+slack-cli-releaser[bot]@users.noreply.github.com>
Date: Wed, 3 Jun 2026 13:58:38 +0000
Subject: [PATCH] chore: release slack-cli v4.2.0
---
.../installing-the-slack-cli-for-mac-and-linux.md | 8 ++++----
docs/guides/installing-the-slack-cli-for-windows.md | 4 ++--
docs/reference/commands/slack_api.md | 10 +++++++++-
docs/reference/errors.md | 6 ++++++
4 files changed, 21 insertions(+), 7 deletions(-)
diff --git a/docs/guides/installing-the-slack-cli-for-mac-and-linux.md b/docs/guides/installing-the-slack-cli-for-mac-and-linux.md
index a5ad3de8..053db03d 100644
--- a/docs/guides/installing-the-slack-cli-for-mac-and-linux.md
+++ b/docs/guides/installing-the-slack-cli-for-mac-and-linux.md
@@ -99,11 +99,11 @@ Manual installation allows you to customize certain paths used when installing t
**2\. Download the** `slack` **CLI installer for your environment.**
-🍎 ⚡️ [**Download for macOS Apple Silicon (.tar.gz)**](https://downloads.slack-edge.com/slack-cli/slack_cli_4.1.0_macOS_arm64.tar.gz)
+🍎 ⚡️ [**Download for macOS Apple Silicon (.tar.gz)**](https://downloads.slack-edge.com/slack-cli/slack_cli_4.2.0_macOS_arm64.tar.gz)
-🍏 🪨 [**Download for macOS Intel (.tar.gz)**](https://downloads.slack-edge.com/slack-cli/slack_cli_4.1.0_macOS_amd64.tar.gz)
+🍏 🪨 [**Download for macOS Intel (.tar.gz)**](https://downloads.slack-edge.com/slack-cli/slack_cli_4.2.0_macOS_amd64.tar.gz)
-🐧 💾 [**Download for Linux (.tar.gz)**](https://downloads.slack-edge.com/slack-cli/slack_cli_4.1.0_linux_64-bit.tar.gz)
+🐧 💾 [**Download for Linux (.tar.gz)**](https://downloads.slack-edge.com/slack-cli/slack_cli_4.2.0_linux_64-bit.tar.gz)
**3\. Add the** `slack` **CLI to your path.**
@@ -121,7 +121,7 @@ We recommend using an alias if another `slack` binary exists. To do this, change
```sh
$ slack version
-Using slack v4.1.0
+Using slack v4.2.0
```
diff --git a/docs/guides/installing-the-slack-cli-for-windows.md b/docs/guides/installing-the-slack-cli-for-windows.md
index 1014c161..9ba2e3cd 100644
--- a/docs/guides/installing-the-slack-cli-for-windows.md
+++ b/docs/guides/installing-the-slack-cli-for-windows.md
@@ -102,7 +102,7 @@ Manual installation allows you to customize certain paths used when installing t
**2\. Download the** `slack` **CLI installer for your environment.**
- Windows (.zip)
+ Windows (.zip)
**3\. Add the** `slack` **CLI to your path.**
@@ -118,7 +118,7 @@ We recommend using an alias if another `slack` binary exists. To do this, change
```pwsh
$ slack version
-Using slack v4.1.0
+Using slack v4.2.0
```
diff --git a/docs/reference/commands/slack_api.md b/docs/reference/commands/slack_api.md
index 30e4e8bf..753faa24 100644
--- a/docs/reference/commands/slack_api.md
+++ b/docs/reference/commands/slack_api.md
@@ -21,7 +21,11 @@ Token resolution (in priority order):
2. --app flag Install app and use bot token (in project)
3. SLACK_BOT_TOKEN env var Bot token (set during slack deploy)
4. SLACK_USER_TOKEN env var User token
- 5. App prompt (in project) Select installed app and use bot token
+ 5. App prompt (in project) Select installed app or "No app"
+
+If no token is available, the request is sent without authentication.
+Use --no-auth to skip authentication entirely and send the request without
+a token.
See all methods at: https://docs.slack.dev/reference/methods
@@ -38,6 +42,7 @@ slack api [key=value ...] [flags]
-i, --include include HTTP status code and response headers in output
--json string JSON request body (uses Bearer token in Authorization header)
-X, --method string HTTP method for the request (default "POST")
+ --no-auth skip authentication (send request without a token)
```
## Global flags
@@ -112,6 +117,9 @@ $ slack api users.list
# Get a user's profile
$ slack api users.profile.get user=U0123456
+# Validate Block Kit blocks (no auth required)
+$ slack api blocks.validate --no-auth blocks='[{"type":"section","text":{"type":"mrkdwn","text":"Hello"}}]'
+
# Open a modal view
$ slack api views.open trigger_id=T0123456 view={...}
diff --git a/docs/reference/errors.md b/docs/reference/errors.md
index 5a0a3b44..a484c3b5 100644
--- a/docs/reference/errors.md
+++ b/docs/reference/errors.md
@@ -1156,6 +1156,12 @@ Read about manifest sourcing with the `slack manifest info --help` command
---
+### no_app_selected {#no_app_selected}
+
+**Message**: No app selected
+
+---
+
### no_file {#no_file}
**Message**: Couldn't upload your bundled code to server