Socket
Book a DemoInstallSign in
Socket

@botpress/webchat-cli

Package Overview
Dependencies
Maintainers
0
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@botpress/webchat-cli

Webchat CLI is a tool to help you build and deploy custom webchat components.

latest
npmnpm
Version
0.2.4
Version published
Maintainers
0
Created
Source

Webchat CLI

Webchat CLI is a tool to help you build and deploy custom webchat components.

Installation

npm install -g @botpress/webchat-cli && npm install -D @bpinternal/zui

Usage

Start by creating a new component:

webchat init

You will be asked to provide a name for your component. Once provided, the CLI will create a new folder with the name of your component containing the following files:

  • Component.bp.tsx: The main component of your webchat component.
  • schema.ts: The schema of your webchat component properties.
  • styles.css: The styles of your webchat component.

You can now start developing your webchat component. Once you are done, you can build your component by running:

webchat build

and selecting your component from the list.

This will create a Component.bp.js file in your folder. You can now deploy this file to your bot by running:

webchat deploy

and select your component from the list.

First time deployment

If this is the first time you are deploying a component, you will be asked to:

  • provide Personal Access Token (PAT)
  • select your workspace
  • select your bot

Once you have provided the required information, the CLI will deploy your component to your bot.

Remove a component

webchat remove

and select your component from the list.

This will remove the component from your bot.

Logout

webchat logout

This will logout from your workspace.

FAQs

Package last updated on 21 Jul 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts