Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions docs/guides/installing-the-slack-cli-for-mac-and-linux.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.**

Expand All @@ -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
```

</TabItem>
Expand Down
4 changes: 2 additions & 2 deletions docs/guides/installing-the-slack-cli-for-windows.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.**

<ts-icon class="ts_icon_windows"></ts-icon> &nbsp; <a href="https://downloads.slack-edge.com/slack-cli/slack_cli_4.1.0_windows_64-bit.zip"><strong>Windows (.zip)</strong></a>
<ts-icon class="ts_icon_windows"></ts-icon> &nbsp; <a href="https://downloads.slack-edge.com/slack-cli/slack_cli_4.2.0_windows_64-bit.zip"><strong>Windows (.zip)</strong></a>

**3\. Add the** `slack` **CLI to your path.**

Expand All @@ -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
```

</TabItem>
Expand Down
10 changes: 9 additions & 1 deletion docs/reference/commands/slack_api.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -38,6 +42,7 @@ slack api <method> [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
Expand Down Expand Up @@ -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={...}

Expand Down
6 changes: 6 additions & 0 deletions docs/reference/errors.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading