Babylon.js Project Scaffolding CLI

9.3.3 · active · verified Tue Apr 21

create-babylonjs is a command-line interface (CLI) tool designed to quickly scaffold new Babylon.js projects. It simplifies project setup by offering choices for module format (ES6 for tree-shaking or UMD for global `BABYLON` namespace), language (TypeScript or JavaScript), and bundler (Vite, Webpack, Rollup, or no bundler for CDN-only). The tool ensures a ready-to-run project that includes a starter scene, glTF model loading, environment lighting, and proper side-effect imports for optimized ES6 builds. Currently at version 9.3.3, it tracks the rapid development cycle of the Babylon.js core library, which typically sees new minor versions released weekly and major versions annually. This CLI is crucial for developers seeking a streamlined entry into Babylon.js development without the overhead of manual project configuration.

Common errors

Warnings

Install

Imports

Quickstart

Initializes a new Babylon.js project using the CLI, installs project dependencies, and starts the local development server.

npm create babylonjs
cd my-babylonjs-app
npm install
npm run dev

view raw JSON →