@mcbepack/cli
v1.0.8
Published
Readme
@mcbepack/cli
Command-line tooling for MCBEPACK projects.
The CLI handles three jobs: running a local development loop, linking pack folders into Minecraft's development folders, and building project files or distributable archives.
Install
Generated projects include this package automatically:
bun add -D @mcbepack/cliProject Layout
The CLI expects this shape:
your-addon/
|-- scripts/
| `-- index.ts
|-- src/
| |-- behavior_pack/
| | `-- manifest.json
| `-- resource_pack/
| `-- manifest.json
|-- .env.local
|-- package.json
`-- tsconfig.jsonscripts/index.ts or scripts/index.js is bundled into src/behavior_pack/scripts/index.js when Script API is enabled.
Configuration
Create .env.local in the project root:
BASE_PATH="C:\Users\YourName\AppData\Roaming\Minecraft Bedrock\Users\Shared\games\com.mojang"
RESOURCE_PATH="development_resource_packs"
BEHAVIOR_PATH="development_behavior_packs"Commands
Start the development watcher:
mcbepack devBuild project files without creating an archive:
mcbepack buildBuild and export archives:
mcbepack export zip
mcbepack export mcpack
mcbepack export mcaddonUpdate selected Minecraft Script API packages in package.json and src/behavior_pack/manifest.json.
The release channel is required:
mcbepack update stable
mcbepack update beta
mcbepack update previewOutputs
Archive artifacts are written to the project's out/ directory.
zipcreates separate behavior/resource.zipfiles when those packs exist.mcpackcreates separate behavior/resource.mcpackfiles when those packs exist.mcaddoncreates one.mcaddoncontaining the available packs.
Related Packages
License
GPL-3.0. See LICENSE.
