Try it in your browserpreview Source

Command line✎

Every roswaal command, what it does, and which of them keep running.

Pending review

roswaal is shaped after rojo's command line on purpose: it sits beside Rojo in the same workflow, and a tool that invents its own conventions makes you learn twice. Run it in the project directory, or point it at one with --root.

sh
cd path/to/your/roblox/project
roswaal init      # once per project
roswaal serve     # editor on http://127.0.0.1:4471, docs at /docs

Commands

CommandWhat it does
roswaal initCreate roswaal.json and .roswaal/ in this project. Like rojo init. Writes roswaal.json, the graph and node-pack directories, and a commented example pack. Anything already there is kept rather than overwritten.
roswaal serveStart the daemon and serve the editor. Blocks. The editor at http://127.0.0.1:4471, the documentation at /docs, and — when Compile is set to Dynamic — a watcher recompiling graphs as they change.
roswaal stopStop a running daemon on this port. Over HTTP rather than a PID file, and it reports success only once the daemon has actually gone quiet.
roswaal restartStop a running daemon, then serve again. What to run after rebuilding: serve loads the CLI bundle once, so a rebuild does not reach a daemon that is already up.
roswaal statusIs a daemon running here, and what is it serving?
roswaal compileCompile every graph and map once and exit. Takes an optional path. One path compiles one document. A generated file somebody has edited by hand is refused rather than overwritten — pass --force to take it back.
roswaal watchRecompile graphs as they change, without the editor. Blocks. The same compile the editor runs, for working in a text editor beside Rojo.
roswaal pruneRemove generated files whose graph has moved or gone. Lists what it would delete and stops. --yes is you saying you have read the list.
roswaal checkOne-shot health probe. Plain output, good for scripts. Aligned key: value lines, no colour and no box: this is the one a script reads.
roswaal versionPrint the version and exit. The number alone, for a script that needs to know which build it is talking to.
roswaal helpThis list.

Info

serve, watch and restart block until Ctrl+C. Everything else exits when done, so check and compile suit scripts.

Options

OptionWhat it does
--root <path>Project directory. Default: the current directory.
--port <n>HTTP port for the daemon. Default: 4471.
--forceFor compile: overwrite generated files edited by hand.
--no-openFor serve: do not print the editor URL as a hint.
--yesFor prune: delete the files it lists, rather than only listing them.

Two things worth knowing

Warning

Restart the daemon after rebuilding Roswaal. A reload picks up the new editor, but the server keeps running the old code.

stop and restart reach the daemon over HTTP rather than through a PID file, so there is no stale pid to reason about when one dies unexpectedly. stop reports success only once the health probe has gone quiet — not when the request was sent.

Not reviewed yet