triggers
and collaborators
CLI commands to the singular form trigger
and collaborator
commands.slack var
. Use the command slack env
with the appropriate subcommand to add, list, and remove environment variables.--help
flag.integer
, number
, usergroup
, timestamp
, blocks
(see here), and Object
.read_only_message_tab
and messages_tab_enabled
. You can now hide the Messages tab in your app with the new features
property in the Manifest.name
property and deprecated callback_id
property in DefineType
definition. Check out our updated code sample here!slack run
is to now persist the dev version of your app
in your workspace between runs. (If you do want to remove it between runs, you can
use the --cleanup
flag.)upgrade
command. Now you can run slack upgrade
to update your CLI and SDK together..slack
directory when executing CLI commands in user's home directory.distribute
command, your app must be deployed again for other users to have access to your function. Read more.--component-id
, --source
, and --trace-id
for slack activity
command. Read more.cache_error
bug that affected some users when using slack run
.slack login
without errors.--grant
and --revoke
access to Run On Slack functions with the new distribute
command. Read more.--no-cleanup
flag for slack run
, which persists the development version of your app in your workspace between runs.client.apps.datastore.*
calls. See Using Datastores for details.client.apiCall('chat.postMessage', {...})
, you can do client.chat.postMessage({...})
. See Calling Slack API methods for details.activity --tail
not working properlyDid you build next-generation apps before April 19, 2022?
If you built apps on the next-generation platform before April 19, 2022, you will need to re-authorize your CLI into your workspace. Do this by running slack auth logout
and then slack auth login
.
DefineFunction
, the id
has been moved into the function definition and is now known as callback_id
.Project.ts
is now manifest.ts
; your apps are configured in your project's manifest.js
, ts
, or json
.js
or ts
.functions
, types
, and datastores
.DefineType
, the id
has been moved into the type definition and is now known as callback_id
.channels
, user
, boolean
, and string
. We also support array
of user
, channel
, and string
enum.client
to every function, and instead let developers opt into the client
by importing our separate API library that can be instantiated with the token
helper.FunctionHandler
.slack create
creates a Reverse String app using the new Deno SDKslack activity
has a new look & feel for deployment logsslack run
now deletes your dev app when the local development server stopsslack doctor
has a new look & feel with extra detailsslack list
now lists all authed accounts instead of listing collaborators.slack/cli.json
has been removed from the projectslack.json
is now a required file in the root of your projectslack.json
has a new format to make SDK updates smootherslack tables
command is removed (see slack datastore
)The following features and functionality have not changed:
slack login
slack create
slack run
slack deploy
slack activity --tail
slack collaborators
DefineFunction
and DefineType
We will keep your tables and the API routes to access them (apps.tables.*
) for two weeks. Please use this time to extract any data that you would like to extract via the API. (The CLI/SDK will no longer support these routes, so you'll need to use the API directly). We've put together some scripts to help the migration process.