Skip to main content

Documentation Index

Fetch the complete documentation index at: https://mintlify.com/botpress/botpress/llms.txt

Use this file to discover all available pages before exploring further.

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

Installation

Install the CLI globally:
npm install -g @botpress/cli
Or use with npx:
npx @botpress/cli <command>

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:
bp --help
bp <command> --help

Authentication

Login to Botpress Cloud:
bp login
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

bp init --type bot
cd my-bot
npm install
bp build
bp deploy

Create and deploy integration

bp init --type integration
cd my-integration
npm install
bp build
bp deploy

Development workflow

bp dev  # Start development server
# Make changes to code
# Server auto-reloads

Global options

The following options are available for all CLI commands:

Authentication options

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

Output options

--verbose
boolean
Enable verbose logging for debugging.
--json
boolean
Output results in JSON format (where applicable).
--yes
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.