Skip to main content

Overview

nf start serves a previously built NanoForge project. It launches the loader (the website that loads the game) and, when enabled, the server. It can also serve over HTTPS when given a certificate and key.

Usage

Options

Examples

Start on a custom port:
Start over HTTPS:
Environment variables (for example server addresses and ports) are read from a .env file at the project root when the game starts. See Environment variables.
When the workspace sets network: "p2p", nf start adds NANOFORGE_NETWORK_MODE=p2p to the environment of both apps: the server app only pairs players, and the game runs in the host player’s browser.