Skip to content

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:

bash
curl -fsSL https://mayari-org.github.io/docs/install-ember.sh | sh

Or download the binary directly from Ember's GitHub releases.

Scaffolding a Project ​

Run our CLI tool directly using Ember's embx:

bash
embx mayari-org/mayari-cli create

The CLI will walk you through a couple quick questions:

  1. 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.
  2. 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:

bash
embr run dev

When you're ready to bundle for production, build it with:

bash
embr build
embr start