Skip to content

Commit ebd9ae5

Browse files
authored
chore: release slack-cli v4.1.0 (#544)
1 parent 5aa11dd commit ebd9ae5

85 files changed

Lines changed: 282 additions & 7 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

docs/guides/installing-the-slack-cli-for-mac-and-linux.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -99,11 +99,11 @@ Manual installation allows you to customize certain paths used when installing t
9999

100100
**2\. Download the** `slack` **CLI installer for your environment.**
101101

102-
🍎 ⚡️ [**Download for macOS Apple Silicon (.tar.gz)**](https://downloads.slack-edge.com/slack-cli/slack_cli_4.0.1_macOS_arm64.tar.gz)
102+
🍎 ⚡️ [**Download for macOS Apple Silicon (.tar.gz)**](https://downloads.slack-edge.com/slack-cli/slack_cli_4.1.0_macOS_arm64.tar.gz)
103103

104-
🍏 🪨 [**Download for macOS Intel (.tar.gz)**](https://downloads.slack-edge.com/slack-cli/slack_cli_4.0.1_macOS_amd64.tar.gz)
104+
🍏 🪨 [**Download for macOS Intel (.tar.gz)**](https://downloads.slack-edge.com/slack-cli/slack_cli_4.1.0_macOS_amd64.tar.gz)
105105

106-
🐧 💾 [**Download for Linux (.tar.gz)**](https://downloads.slack-edge.com/slack-cli/slack_cli_4.0.1_linux_64-bit.tar.gz)
106+
🐧 💾 [**Download for Linux (.tar.gz)**](https://downloads.slack-edge.com/slack-cli/slack_cli_4.1.0_linux_64-bit.tar.gz)
107107

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

@@ -121,7 +121,7 @@ We recommend using an alias if another `slack` binary exists. To do this, change
121121

122122
```sh
123123
$ slack version
124-
Using slack v4.0.1
124+
Using slack v4.1.0
125125
```
126126

127127
</TabItem>

docs/guides/installing-the-slack-cli-for-windows.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ Manual installation allows you to customize certain paths used when installing t
102102

103103
**2\. Download the** `slack` **CLI installer for your environment.**
104104

105-
<ts-icon class="ts_icon_windows"></ts-icon> &nbsp; <a href="https://downloads.slack-edge.com/slack-cli/slack_cli_4.0.1_windows_64-bit.zip"><strong>Windows (.zip)</strong></a>
105+
<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>
106106

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

@@ -118,7 +118,7 @@ We recommend using an alias if another `slack` binary exists. To do this, change
118118

119119
```pwsh
120120
$ slack version
121-
Using slack v4.0.1
121+
Using slack v4.1.0
122122
```
123123

124124
</TabItem>

docs/reference/commands/slack.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ slack <command> <subcommand> [flags]
1515
## Flags
1616

1717
```
18+
--accessible use accessible prompts for screen readers
1819
-a, --app string use a specific app ID or environment
1920
--config-dir string use a custom path for system config directory
2021
-e, --experiment strings use the experiment(s) in the command
@@ -41,6 +42,7 @@ $ slack docs # Open Slack developer docs
4142
## See also
4243

4344
* [slack activity](slack_activity) - Display the app activity logs from the Slack Platform
45+
* [slack api](slack_api) - Call any Slack API method
4446
* [slack app](slack_app) - Install, uninstall, and list teams with the app installed
4547
* [slack auth](slack_auth) - Add and remove local team authorizations
4648
* [slack collaborator](slack_collaborator) - Manage app collaborators

docs/reference/commands/slack_activity.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ slack activity [flags]
3636
## Global flags
3737

3838
```
39+
--accessible use accessible prompts for screen readers
3940
-a, --app string use a specific app ID or environment
4041
--config-dir string use a custom path for system config directory
4142
-e, --experiment strings use the experiment(s) in the command
Lines changed: 125 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,125 @@
1+
# `slack api`
2+
3+
Call any Slack API method
4+
5+
## Description
6+
7+
Call any Slack API method directly.
8+
9+
The method argument is the Slack API method name (e.g., "chat.postMessage").
10+
Parameters are passed as key=value pairs, a JSON body, or via flags.
11+
12+
Body format is auto-detected from positional arguments:
13+
- Multiple key=value args: form-encoded (token in request body)
14+
- Single arg starting with { or [: JSON (Bearer token in header)
15+
- No args: token sent in Authorization header
16+
17+
Use --json to explicitly send a JSON body, or --data for a form-encoded body string.
18+
19+
Token resolution (in priority order):
20+
1. --token flag Explicit token value
21+
2. --app flag Install app and use bot token (in project)
22+
3. SLACK_BOT_TOKEN env var Bot token (set during slack deploy)
23+
4. SLACK_USER_TOKEN env var User token
24+
5. App prompt (in project) Select installed app and use bot token
25+
26+
See all methods at: https://docs.slack.dev/reference/methods
27+
28+
```
29+
slack api <method> [key=value ...] [flags]
30+
```
31+
32+
## Flags
33+
34+
```
35+
--data string form-encoded request body string (e.g. "key1=val1&key2=val2")
36+
-H, --header strings additional HTTP headers (format: "Key: Value")
37+
-h, --help help for api
38+
-i, --include include HTTP status code and response headers in output
39+
--json string JSON request body (uses Bearer token in Authorization header)
40+
-X, --method string HTTP method for the request (default "POST")
41+
```
42+
43+
## Global flags
44+
45+
```
46+
--accessible use accessible prompts for screen readers
47+
-a, --app string use a specific app ID or environment
48+
--config-dir string use a custom path for system config directory
49+
-e, --experiment strings use the experiment(s) in the command
50+
-f, --force ignore warnings and continue executing command
51+
--no-color remove styles and formatting from outputs
52+
-s, --skip-update skip checking for latest version of CLI
53+
-w, --team string select workspace or organization by team name or ID
54+
--token string set the access token associated with a team
55+
-v, --verbose print debug logging and additional info
56+
```
57+
58+
## Examples
59+
60+
```
61+
# Test your API connection
62+
$ slack api api.test
63+
64+
# Check authentication
65+
$ slack api auth.test
66+
67+
# Add a bookmark to a channel
68+
$ slack api bookmarks.add channel_id=C0123456 title=Docs link=https://example.com
69+
70+
# Send a message to a channel using form-encoded string
71+
$ slack api chat.postMessage channel=C0123456 text="Hello"
72+
73+
# Send a message to a channel using JSON
74+
$ slack api chat.postMessage --json '{"channel":"C0123456","text":"Hello"}'
75+
76+
# Update a message
77+
$ slack api chat.update channel=C0123456 ts=1234567890.123456 text="Updated"
78+
79+
# Create a channel
80+
$ slack api conversations.create name=new-channel
81+
82+
# Fetch messages from a channel
83+
$ slack api conversations.history channel=C0123456
84+
85+
# Get channel details
86+
$ slack api conversations.info channel=C0123456
87+
88+
# List channels
89+
$ slack api conversations.list
90+
91+
# List members in a channel
92+
$ slack api conversations.members channel=C0123456
93+
94+
# Upload a file
95+
$ slack api files.upload channels=C0123456 filename=report.csv
96+
97+
# Pin a message
98+
$ slack api pins.add channel=C0123456 timestamp=1234567890.123456
99+
100+
# Add an emoji reaction
101+
$ slack api reactions.add channel=C0123456 timestamp=1234567890.123456 name=thumbsup
102+
103+
# List reactions for a user
104+
$ slack api reactions.list user=U0123456
105+
106+
# Get user details
107+
$ slack api users.info user=U0123456
108+
109+
# List workspace members
110+
$ slack api users.list
111+
112+
# Get a user's profile
113+
$ slack api users.profile.get user=U0123456
114+
115+
# Open a modal view
116+
$ slack api views.open trigger_id=T0123456 view={...}
117+
118+
# Update a modal view
119+
$ slack api views.update view_id=V0123456 view={...}
120+
```
121+
122+
## See also
123+
124+
* [slack](slack) - Slack command-line tool
125+

docs/reference/commands/slack_app.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ slack app [flags]
1919
## Global flags
2020

2121
```
22+
--accessible use accessible prompts for screen readers
2223
-a, --app string use a specific app ID or environment
2324
--config-dir string use a custom path for system config directory
2425
-e, --experiment strings use the experiment(s) in the command

docs/reference/commands/slack_app_delete.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ slack app delete [flags]
1919
## Global flags
2020

2121
```
22+
--accessible use accessible prompts for screen readers
2223
-a, --app string use a specific app ID or environment
2324
--config-dir string use a custom path for system config directory
2425
-e, --experiment strings use the experiment(s) in the command

docs/reference/commands/slack_app_install.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ slack app install [flags]
2222
## Global flags
2323

2424
```
25+
--accessible use accessible prompts for screen readers
2526
-a, --app string use a specific app ID or environment
2627
--config-dir string use a custom path for system config directory
2728
-e, --experiment strings use the experiment(s) in the command

docs/reference/commands/slack_app_link.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ slack app link [flags]
2929
## Global flags
3030

3131
```
32+
--accessible use accessible prompts for screen readers
3233
-a, --app string use a specific app ID or environment
3334
--config-dir string use a custom path for system config directory
3435
-e, --experiment strings use the experiment(s) in the command

docs/reference/commands/slack_app_list.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ slack app list [flags]
2121
## Global flags
2222

2323
```
24+
--accessible use accessible prompts for screen readers
2425
-a, --app string use a specific app ID or environment
2526
--config-dir string use a custom path for system config directory
2627
-e, --experiment strings use the experiment(s) in the command

0 commit comments

Comments
 (0)