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.

Build and bundle commands compile your TypeScript code and generate type definitions.

bp build

Generate types and bundle code:
bp build
This command:
  1. Runs bp generate to create type definitions
  2. Runs bp bundle to compile code

bp bundle

Bundle code without generating types:
bp bundle
Creates:
  • CommonJS bundle: .botpress/dist/index.cjs
  • ESM bundle: .botpress/dist/index.mjs

Options

—workDir

Specify working directory:
bp build --workDir ./my-project

Build output

Build creates:
.botpress/
├── dist/
│   ├── index.cjs    # CommonJS bundle
│   └── index.mjs    # ESM bundle
└── types/           # Generated types

bp generate

Generate only type definitions:
bp generate
Alias: bp gen Generates TypeScript types in .botpress/ directory.