Global flags
These flags are available for all commands:| Flag | Alias | Description | 
|---|---|---|
| --verbose | -v | Enable verbose logging | 
| --confirm | -y | Confirm all prompts | 
| --json | Output raw JSON to stdout (useful for piping) | |
| --botpress-home | Path to Botpress home directory | |
| --profile | -p | CLI profile from $BP_BOTPRESS_HOME/profiles.json | 
Commands
login
Login to Botpress Cloud.
Usage:
| Flag | Description | Default | 
|---|---|---|
| --token | Personal Access Token | |
| --workspace-id | Workspace ID | |
| --api-url | Botpress server URL | https://api.botpress.cloud | 
logout
Logout of Botpress Cloud.
Usage:
init
Initialize a new project.
Usage:
| Flag | Description | Default | 
|---|---|---|
| --work-dir | Path to the project | current directory | 
| --type | Project type: bot,integration, orplugin | |
| --template | Template to use | |
| --name | Name of the project | 
generate
Generate typings for intellisense. Alias: gen
Usage:
| Flag | Description | Default | 
|---|---|---|
| --work-dir | Path to the project | current directory | 
build
Generate typings and bundle a project.
Usage:
| Flag | Description | Default | 
|---|---|---|
| --work-dir | Path to the project | current directory | 
| --source-map | Generate sourcemaps | false | 
| --minify | Minify the bundled code | true | 
bundle
Bundle a Botpress project.
Usage:
| Flag | Description | Default | 
|---|---|---|
| --work-dir | Path to the project | current directory | 
| --source-map | Generate sourcemaps | false | 
| --minify | Minify the bundled code | true | 
serve
Serve your project locally.
Usage:
| Flag | Description | Default | 
|---|---|---|
| --work-dir | Path to the project | current directory | 
| --port | Port to use | |
| --secrets | Values for integration secrets (array) | 
dev
Run your project in dev mode.
Usage:
| Flag | Description | Default | 
|---|---|---|
| --work-dir | Path to the project | current directory | 
| --api-url | Botpress server URL | |
| --workspace-id | Workspace ID | |
| --token | Personal Access Token | |
| --secrets | Values for integration secrets (array) | |
| --source-map | Generate sourcemaps | false | 
| --minify | Minify the bundled code | true | 
| --port | Port to use | |
| --tunnel-url | Tunnel HTTP URL to use | 
deploy
Deploy your project to the cloud.
Usage:
| Flag | Description | Default | 
|---|---|---|
| --work-dir | Path to the project | current directory | 
| --api-url | Botpress server URL | |
| --workspace-id | Workspace ID | |
| --token | Personal Access Token | |
| --secrets | Values for integration secrets (array) | |
| --bot-id | Bot ID to deploy (only for bots) | |
| --no-build | Skip the build step | false | 
| --dry-run | Ask API not to perform actual operation | false | 
| --create-new-bot | Create new bot when deploying (only for bots) | false | 
| --source-map | Generate sourcemaps | false | 
| --minify | Minify the bundled code | true | 
| --visibility | Project visibility: public,private, orunlisted | private | 
| --allow-deprecated | Allow deprecated features | false | 
add
Install a package (integration or interface).
Usage:
| Argument | Description | 
|---|---|
| packageRef | Package ID or name with optional version (e.g., teams@0.2.0) | 
| Flag | Description | Default | 
|---|---|---|
| --api-url | Botpress server URL | |
| --workspace-id | Workspace ID | |
| --token | Personal Access Token | |
| --package-type | Package type: integration,interface, orplugin | |
| --install-path | Path where to install the package | |
| --use-dev | Use dev version if found | false | 
read
Read and parse an integration definition.
Usage:
| Flag | Description | Default | 
|---|---|---|
| --work-dir | Path to the project | current directory | 
lint
Lint an integration definition (experimental).
Usage:
| Flag | Description | Default | 
|---|---|---|
| --work-dir | Path to the project | current directory | 
chat
Chat with a bot directly from CLI (experimental).
Usage:
| Argument | Description | 
|---|---|
| botId | Bot ID to chat with | 
| Flag | Description | Default | 
|---|---|---|
| --api-url | Botpress server URL | |
| --workspace-id | Workspace ID | |
| --token | Personal Access Token | |
| --chat-api-url | Chat server URL | 
bots
Bot related commands.
create
Create a new bot. Alias: new
Usage:
| Flag | Description | Default | 
|---|---|---|
| --api-url | Botpress server URL | |
| --workspace-id | Workspace ID | |
| --token | Personal Access Token | |
| --name | Name of the bot to create | |
| --if-not-exists | Do not create if bot with same name exists | false | 
list
List bots. Alias: ls
Usage:
| Flag | Description | Default | 
|---|---|---|
| --api-url | Botpress server URL | |
| --workspace-id | Workspace ID | |
| --token | Personal Access Token | |
| --dev | List only dev bots | false | 
get
Get bot details.
Usage:
| Argument | Description | 
|---|---|
| botRef | Bot ID (required) | 
| Flag | Description | Default | 
|---|---|---|
| --api-url | Botpress server URL | |
| --workspace-id | Workspace ID | |
| --token | Personal Access Token | 
delete
Delete a bot. Alias: rm
Usage:
| Argument | Description | 
|---|---|
| botRef | Bot ID (required) | 
| Flag | Description | Default | 
|---|---|---|
| --api-url | Botpress server URL | |
| --workspace-id | Workspace ID | |
| --token | Personal Access Token | 
integrations
Integration related commands.
list
List integrations. Alias: ls
Usage:
| Flag | Description | Default | 
|---|---|---|
| --api-url | Botpress server URL | |
| --workspace-id | Workspace ID | |
| --token | Personal Access Token | |
| --name | Name filter | |
| --version-number | Version filter | |
| --dev | List only dev integrations | false | 
get
Get integration details.
Usage:
| Argument | Description | 
|---|---|
| integrationRef | Integration ID or name with optional version (required) | 
| Flag | Description | Default | 
|---|---|---|
| --api-url | Botpress server URL | |
| --workspace-id | Workspace ID | |
| --token | Personal Access Token | 
delete
Delete an integration. Alias: rm
Usage:
| Argument | Description | 
|---|---|
| integrationRef | Integration ID or name with optional version (required) | 
| Flag | Description | Default | 
|---|---|---|
| --api-url | Botpress server URL | |
| --workspace-id | Workspace ID | |
| --token | Personal Access Token | 
interfaces
Interface related commands.
list
List interfaces. Alias: ls
Usage:
| Flag | Description | Default | 
|---|---|---|
| --api-url | Botpress server URL | |
| --workspace-id | Workspace ID | |
| --token | Personal Access Token | 
get
Get interface details.
Usage:
| Argument | Description | 
|---|---|
| interfaceRef | Interface ID or name with version (required) | 
| Flag | Description | Default | 
|---|---|---|
| --api-url | Botpress server URL | |
| --workspace-id | Workspace ID | |
| --token | Personal Access Token | 
delete
Delete an interface. Alias: rm
Usage:
| Argument | Description | 
|---|---|
| interfaceRef | Interface ID or name with version (required) | 
| Flag | Description | Default | 
|---|---|---|
| --api-url | Botpress server URL | |
| --workspace-id | Workspace ID | |
| --token | Personal Access Token | 
plugins
Plugin related commands.
list
List plugins. Alias: ls
Usage:
| Flag | Description | Default | 
|---|---|---|
| --api-url | Botpress server URL | |
| --workspace-id | Workspace ID | |
| --token | Personal Access Token | |
| --name | Name filter | |
| --version-number | Version filter | 
get
Get plugin details.
Usage:
| Argument | Description | 
|---|---|
| pluginRef | Plugin ID or name with version (required) | 
| Flag | Description | Default | 
|---|---|---|
| --api-url | Botpress server URL | |
| --workspace-id | Workspace ID | |
| --token | Personal Access Token | 
delete
Delete a plugin. Alias: rm
Usage:
| Argument | Description | 
|---|---|
| pluginRef | Plugin ID or name with version (required) | 
| Flag | Description | Default | 
|---|---|---|
| --api-url | Botpress server URL | |
| --workspace-id | Workspace ID | |
| --token | Personal Access Token | 
profiles
CLI profile management commands.
list
List all available profiles. Alias: ls
Usage:
active
Get the profile properties you are currently using.
Usage:
use
Set the current profile.
Usage:
| Argument | Description | 
|---|---|
| profileToUse | Profile name from $BP_BOTPRESS_HOME/profiles.json |