← 返回命令列表

Linux command

slack 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Create a new Slack app

slack create [app-name]

Run an app locally

slack run

Deploy an app

slack deploy

List available commands

slack help

Create a trigger

slack trigger create

List installed apps

slack list

Login to a workspace

slack login

Display version information

slack version

说明

slack is the official Slack command-line interface for creating, developing, and deploying Slack apps. It works with the Deno Slack SDK and Bolt frameworks for JavaScript and Python to build workflow automations, integrations, and custom functionality for Slack workspaces. The CLI provides commands for the full app development lifecycle: scaffolding new apps from templates, running apps locally during development, deploying to Slack's infrastructure, and managing triggers and datastores. It handles authentication with Slack workspaces and provides activity logging for debugging. The CLI is installed via a shell script and is available for Linux and macOS.

参数

-a, --app _string_
Use a specific app ID or environment.
-w, --team _string_
Select workspace or organization by team name or ID.
--token _string_
Set the access token associated with a team.
--config-dir _string_
Use a custom path for system config directory.
-f, --force
Ignore warnings and continue executing command.
--no-color
Remove styles and formatting from outputs.
-s, --skip-update
Skip checking for the latest version of CLI.
-v, --verbose
Print debug logging and additional info.
-e, --experiment _strings_
Use experiment(s) in the command.
-h, --help
Display help information.

FAQ

What is the slack command used for?

slack is the official Slack command-line interface for creating, developing, and deploying Slack apps. It works with the Deno Slack SDK and Bolt frameworks for JavaScript and Python to build workflow automations, integrations, and custom functionality for Slack workspaces. The CLI provides commands for the full app development lifecycle: scaffolding new apps from templates, running apps locally during development, deploying to Slack's infrastructure, and managing triggers and datastores. It handles authentication with Slack workspaces and provides activity logging for debugging. The CLI is installed via a shell script and is available for Linux and macOS.

How do I run a basic slack example?

Run `slack create [app-name]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -a, --app _string_ do in slack?

Use a specific app ID or environment.