Skip to content
-

CLI Commands ​

Complete reference for all RbxSync CLI commands.

Core Commands ​

init ​

Initialize a new RbxSync project.

bash
rbxsync init [--name NAME]

Creates rbxsync.json and the src/ directory structure.

serve ​

Start the sync server.

bash
rbxsync serve [--port PORT] [--background]
OptionDefaultDescription
--port44755Server port
--background, -bfalseRun server as a background daemon

Run in background mode for a cleaner terminal:

bash
# Start in background
rbxsync serve --background

# Stop the background server
rbxsync stop

stop ​

Stop the running server.

bash
rbxsync stop

status ​

Show connection status.

bash
rbxsync status

extract ​

Extract game from connected Studio to files.

bash
rbxsync extract

Requires an active Studio connection.

sync ​

Push local changes to Studio.

bash
rbxsync sync [--path DIR]
OptionDefaultDescription
--pathCurrent dirProject path

Build Commands ​

build ​

Build project to Roblox format.

bash
rbxsync build [OPTIONS]
OptionDefaultDescription
-f, --formatrbxlOutput format: rbxl, rbxm, rbxlx, rbxmx
-o, --outputbuild/Output path
--watchfalseWatch for changes and rebuild
--plugin-Build directly to Studio plugins folder

Examples:

bash
# Build place file
rbxsync build

# Build model file
rbxsync build -f rbxm

# Build XML format
rbxsync build -f rbxlx

# Watch mode
rbxsync build --watch

# Build as plugin
rbxsync build --plugin MyPlugin.rbxm

build-plugin ​

Build the RbxSync Studio plugin.

bash
rbxsync build-plugin [--install]
OptionDescription
--installCopy to Studio plugins folder

Utility Commands ​

sourcemap ​

Generate sourcemap.json for Luau LSP.

bash
rbxsync sourcemap

fmt-project ​

Format all .rbxjson files.

bash
rbxsync fmt-project [--check]
OptionDescription
--checkCheck only, don't modify (for CI)

studio ​

Launch Roblox Studio.

bash
rbxsync studio [file.rbxl]

doc ​

Open documentation in browser.

bash
rbxsync doc

Update Commands ​

version ​

Show version and git commit.

bash
rbxsync version

update ​

Pull latest changes and rebuild.

bash
rbxsync update [OPTIONS]
OptionDescription
--vscodeAlso rebuild VS Code extension
--no-pullSkip git pull, just rebuild

This command:

  1. Pulls latest from GitHub
  2. Rebuilds the CLI
  3. Rebuilds and installs the Studio plugin

Then restart Studio to load the updated plugin.

uninstall ​

Completely remove RbxSync from your system.

bash
rbxsync uninstall [OPTIONS]
OptionDescription
--vscodeAlso remove VS Code extension
--keep-repoKeep the cloned repo at ~/.rbxsync/repo
-y, --yesSkip confirmation prompt

Migration Commands ​

migrate ​

Migrate from another sync tool to RbxSync.

bash
rbxsync migrate [--from FORMAT] [--path DIR] [--force]
OptionDefaultDescription
--fromrojoSource format to migrate from
--pathCurrent dirProject directory
--forcefalseOverwrite existing rbxsync.json

Currently supports migrating from Rojo projects.

Example:

bash
# Migrate a Rojo project
cd my-rojo-project
rbxsync migrate

# Or specify the path
rbxsync migrate --path /path/to/rojo/project

# Force overwrite existing config
rbxsync migrate --force

This reads your default.project.json (or *.project.json) and creates an equivalent rbxsync.json with:

  • Project name
  • Tree mappings (DataModel path → filesystem path)
  • Default RbxSync settings

Your Rojo project file is preserved—you can use both tools side-by-side.