Skip to main content
The Botpress CLI (bp) is your primary tool for building, testing, and deploying bots, integrations, and plugins.

Installation

Install the CLI globally:
Or use with npx:

Available commands

Project management

  • bp init - Initialize a new project
  • bp build - Build project
  • bp bundle - Bundle code
  • bp generate - Generate types

Development

  • bp dev - Run in development mode
  • bp serve - Serve project locally

Deployment

  • bp deploy - Deploy to cloud
  • bp login - Login to Botpress
  • bp logout - Logout from Botpress

Resource management

  • bp bots - Manage bots
  • bp integrations - Manage integrations
  • bp interfaces - Manage interfaces
  • bp plugins - Manage plugins

Utilities

  • bp add - Add dependencies
  • bp remove - Remove dependencies
  • bp read - Read integration definition
  • bp lint - Lint project

Getting help

Get help for any command:

Authentication

Login to Botpress Cloud:
The CLI will open a browser for authentication.

Project types

The CLI supports four project types:
  • Bot - Conversational AI applications
  • Integration - Connect to external platforms
  • Plugin - Reusable bot functionality
  • Interface - Define contracts between integrations

Common workflows

Create and deploy bot

Create and deploy integration

Development workflow

Global options

The following options are available for all CLI commands:

Authentication options

string
Personal Access Token for authentication. Can also be set via BP_TOKEN environment variable.
string
Workspace ID to use for the command. Can also be set via BP_WORKSPACE_ID environment variable.
string
API URL for Botpress Cloud. Defaults to https://api.botpress.cloud.

Output options

boolean
Enable verbose logging for debugging.
boolean
Output results in JSON format (where applicable).
boolean
Skip confirmation prompts and accept defaults.
Environment variables can be used as an alternative to command-line flags. This is especially useful for CI/CD environments.