# Slack CLI
> Build, test, and deploy Slack apps from the terminal

## Summary
Official Slack CLI for building, testing, and deploying Slack Platform apps with scaffolding, local development, trigger management, and deployment to Slack infrastructure.

## Capabilities
- Scaffold new Slack app projects from templates
- Run Slack apps locally with hot-reloading for development
- Deploy apps to Slack managed infrastructure
- Manage triggers (event hooks) for app workflows
- View real-time activity logs from deployed apps
- Manage app collaborators and permissions

## When to Use
- Building Slack Platform apps and workflow automations
- Developing and testing Slack apps locally before deployment
- Deploying Slack apps to Slack managed hosting
- Managing triggers and workflows for Slack automations

## When NOT to Use
- Not building Slack apps (just using Slack as a user)
- Building traditional Slack apps hosted on your own infrastructure
- Managing Slack workspace settings (use the web admin)

## Key Flags
- `create`: Create a new Slack app project from a template
- `run`: Start local development with hot-reloading
- `deploy`: Deploy the app to Slack infrastructure
- `trigger create`: Create a new trigger for an app workflow
- `activity`: View real-time app activity logs
- `auth list`: List authenticated Slack workspaces

## Usage Patterns
### Create a new Slack app
```
slack create my-app
```
Scaffolds a new Slack app project with interactive template selection

### Run the app locally
```
slack run
```
Starts the app in local development mode with hot-reloading

### Deploy to Slack hosting
```
slack deploy
```
Deploys the app to Slack managed infrastructure

### View app activity logs
```
slack activity --tail
```
Streams real-time logs from the deployed Slack app

## Input / Output
- **stdin**: Accepts interactive input for app creation, trigger setup, and confirmations
- **stdout**: App status, deployment progress, and activity logs
- **stderr**: Error messages and build warnings

## Installation
- **homebrew**: `brew install slack`

## Related Tools
- [gh](/tools/gh) (complementary): gh manages GitHub repos where Slack app source code is stored
- [railway](/tools/railway) (alternative): Railway can host custom Slack bots that use the traditional Slack API

---
Source: https://littlescripts.sh/tools/slack-cli
