@dotbep/cli
v0.2.1
Published
Scaffold and manage a dotbep runtime project
Readme
@dotbep/cli
Scaffold and manage a runtime project for a dotbep BEP. The runtime declares handlers and custom lens components that give your BEP dynamic behavior on the platform.
Scaffold a new runtime
npx @dotbep/cli@latest createThen follow the prompts.
Setup
- Rename
AGENTS.mdto match your AI agent (CLAUDE.md,GEMINI.md, etc.), or keep it asAGENTS.mdfor Cursor, Windsurf, Codex CLI, etc. - Copy
.env.exampleto.envand fill inDOTBEP_TOKENandDOTBEP_BEP_ID. - Run
npm install && npm run pull.
Commands
Scaffolding a project adds @dotbep/cli as a devDependency, so the rest of these run via dotbep <command> inside it.
| Command | What it does |
|---------|-------------|
| dotbep create | Scaffold a new runtime project (this is what npx @dotbep/cli create runs) |
| dotbep pull | Download BEP types and refresh generated files |
| dotbep build runtime | Bundle src/runtime/ → dist/runtime.cjs |
| dotbep build lenses | Bundle src/lenses/ → dist/lenses.js |
| dotbep deploy runtime | Build then upload the runtime to the BEP server |
| dotbep deploy lenses | Build then upload the lenses bundle |
MCP server
dotbep ships an MCP server that gives your coding agent direct access to your BEP in order to read data, manage members, and more.
{
"dotbep-mcp": {
"command": "npx",
"args": ["-y", "@dotbep/mcp@latest"],
"env": {
"DOTBEP_TOKEN": "<your-token>"
}
}
}Learn how to get your token at dotbep.com/docs/getting-started.md.
