Running Slack CLI commands
The Slack CLI allows you to interact with your apps via the command line. Using the main command slack
, you can create, run, and deploy apps, as well as create triggers and query datastores.
info
Running slack help
will display available commands in your terminal window.
Use commands as follows (unless otherwise noted):
slack <command> <subcommand> [flags]
To view global flags and each subcommands flags, run the following in your terminal:
slack <subcommand> --help
Commands overview
Below you'll find all the commands and subcommands for the Slack CLI. Each one has its own reference page.
Command | Description |
---|---|
slack activity | Display the app activity logs from the Slack Platform |
slack app | Install, uninstall, and list teams with the app installed |
slack auth | Add and remove local team authorizations |
slack collaborator | Manage app collaborators |
slack create | Create a Slack project |
slack datastore | Query an app's datastore |
slack delete | Delete the app |
slack deploy | Deploy the app to the Slack Platform |
slack doctor | Check and report on system and app information |
slack env | Add, remove, and list environment variables |
slack external-auth | Add and remove external authorizations and client secrets for providers in your app |
slack feedback | Share feedback about your experience or project |
slack function | Manage the functions of an app |
slack install | Install the app to a team |
slack list | List all authorized accounts |
slack login | Log in to a Slack account |
slack logout | Log out of a team |
slack manifest | Print the app manifest of a project or app |
slack platform | Deploy and run apps on the Slack Platform |
slack run | Start a local server to develop and run the app locally |
slack samples | List available sample apps |
slack trigger | List details of existing triggers |
slack uninstall | Uninstall the app from a team |
slack upgrade | Checks for available updates to the CLI or SDK |
slack version | Print the version number |