The Slack CLI has an experiment flag, behind which we put features under development and may cause breaking changes. These features are fleeting and many will not work without a development instance, but are available for use "at your own risk."
The following is a list of currently available experiments. We may remove an experiment once the feature is released.
bolt
: adds Slack CLI support for Bolt JavaScript and Bolt Python.read-only-collaborators
: enables creating and modifying collaborator permissions via the slack collaborator
commands.To create a Bolt app via the Slack CLI, run the following command:
slack create -e bolt
Select an option from the following list. For this example, choose AI app:
From the next list, choose Bolt for JavaScript. Your app will be cloned from the Bolt JS assistant project template on our Slack Platform Sample Code repository, and its project dependencies will be installed. Then, cd
into your project folder.
For Bolt for Python projects, automatic project dependency installation is currently unsupported, and will need to be done manually. For more information, refer to Getting started with Bolt for Python.
To run your new app, use the slack run
command with the experiment flag as follows:
slack run -e bolt
You'll be prompted to choose your team/workspace, and then your app should let you know that it's up and running. 🎉
Since this is an AI app, you'll also need to navigate to Settings within your Slack client and select Navigation from the sidebar. Navigate to the App agents & assistants section and select the check boxes for Show app agents as well as your new app. An icon for your app will appear in the upper right corner of your Slack client. Click the icon to begin interacting with your app in Slack.