Getting Started
Ready to jump in? The fastest way to get your Mayari project up and running is with our CLI scaffolding tool. It handles folder structures, runtime configs, and package setup automatically.
Prerequisites
Before creating your project, you'll need a Luau package manager. We recommend Ember.
If you're on Linux or macOS, install Ember with this quick command:
curl -fsSL https://mayari-org.github.io/docs/install-ember.sh | shOr download the binary directly from Ember's GitHub releases.
Scaffolding a Project
Run our CLI tool directly using Ember's embx:
embx mayari-org/mayari-cli createThe CLI will walk you through a couple quick questions:
Project Type
Standard:Full setup for web APIs with routing, middleware, and dev scripts.Bare:Minimal setup if you're building lightweight modules or custom packages for Mayari.
Preferred Runtime (Standard only)
Lute:The official Luau runtime.Lune:Popular community runtime.Zune:High-performance community runtime.
Once selected, the CLI generates your project files and automatically installs dependencies.
Running Your Project
Navigate to your project directory and start the server:
embr run devWhen you're ready to bundle for production, build it with:
embr build
embr start