Nebula

nebula start

Start the orchestrator, gateway, and workers on this computer

generated from the sources

To start the orchestrator, gateway, and workers on this computer, run:

nebula start [--build] [--workers N] [--min N] [--max N] [--npcs N] [--bots N] [--bot-args "..."] [--open-ui] [--reset-persistence] [--reset-sessions]

Start the orchestrator from the latest build. The orchestrator hosts the control plane on its dashboard port and starts the gateway and workers. To join, enter Play mode in the Unity Editor or start the build with the client role. Set defaults in the mesh section of nebula.json.

Only one local mesh can run at a time. When a mesh from this or another project is already running, list it and offer to stop it first (--yes stops it without asking). The start fails when the gateway or dashboard port is still held by another program.

The orchestrator keeps the control plane and every saved entity in one database, by default a SQLite file at Library/Nebula/nebula.db (mesh.database in nebula.json changes it: sqlite:\<file\>, postgres://... or memory). The control plane starts empty on every run because it only holds which processes are running; saved entities stay across restarts unless you pass --reset-persistence.

--reset-sessions clears held player-session claims without deleting saved entities. Use it only after every gateway of this mesh has stopped, to recover claims whose previous gateway cannot acknowledge disconnection.

--bots starts headless client processes with -nebula-bot; what they do is the game's code. --bot-args appends its value to every one of those command lines unchanged, which is how a game selects a deterministic bot behavior for a soak run. The example flag must be implemented by your game (nebula start --bots 4 --bot-args "-mygame-bot-line").

Options

OptionDescription
--buildBuild first (nebula build).
--workers <N>Worker processes to start with; on its own it fixes the count (min = max = N). Default from nebula.json, 4.
--min <N>Autoscaling floor; the mesh starts here when --workers is not given, and 0 allows scaling to zero (default: --workers).
--max <N>Autoscaling ceiling; autoscaling grows into the band from --min (default: --workers).
--npcs <N>Set the game-defined 'npcs' mesh setting at startup (default 0).
--bots <N>Start headless clients with the bot flag; the game supplies their behavior (default 0).
--bot-args <ARGS>Extra command-line arguments appended to every bot client, e.g. --bot-args "-mygame-bot-line"; the game reads them itself.
--open-uiOpen the Nebula Dashboard in the browser once it is up.
--reset-persistenceDelete every saved entity when the orchestrator starts.
--reset-sessionsClear player-session claims; stop every gateway of this mesh first.

Global options

These work with every command and may appear before or after it.

OptionDescription
--project <path>Run against another Nebula project instead of the current folder.
-v, --verbosePrint stack traces and the commands the CLI runs.
-y, --yesAnswer every confirmation with yes.

Examples

nebula start --open-ui
nebula start --build --workers 2
nebula start --min 1 --max 4
nebula start --reset-persistence
nebula start --bots 3 --bot-args "-mygame-bot-line"

On this page