CLI Commands
Complete reference for all RbxSync CLI commands.
Core Commands
init
Initialize a new RbxSync project.
rbxsync init [--name NAME]Creates rbxsync.json and the src/ directory structure.
serve
Start the sync server.
rbxsync serve [--port PORT] [--background]| Option | Default | Description |
|---|---|---|
--port | 44755 | Server port |
--background, -b | false | Run server as a background daemon |
Run in background mode for a cleaner terminal:
# Start in background
rbxsync serve --background
# Stop the background server
rbxsync stopstop
Stop the running server.
rbxsync stopstatus
Show connection status.
rbxsync statusextract
Extract game from connected Studio to files.
rbxsync extractRequires an active Studio connection.
sync
Push local changes to Studio.
rbxsync sync [--path DIR]| Option | Default | Description |
|---|---|---|
--path | Current dir | Project path |
Build Commands
build
Build project to Roblox format.
rbxsync build [OPTIONS]| Option | Default | Description |
|---|---|---|
-f, --format | rbxl | Output format: rbxl, rbxm, rbxlx, rbxmx |
-o, --output | build/ | Output path |
--watch | false | Watch for changes and rebuild |
--plugin | - | Build directly to Studio plugins folder |
Examples:
# 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.rbxmbuild-plugin
Build the RbxSync Studio plugin.
rbxsync build-plugin [--install]| Option | Description |
|---|---|
--install | Copy to Studio plugins folder |
Utility Commands
sourcemap
Generate sourcemap.json for Luau LSP.
rbxsync sourcemapfmt-project
Format all .rbxjson files.
rbxsync fmt-project [--check]| Option | Description |
|---|---|
--check | Check only, don't modify (for CI) |
studio
Launch Roblox Studio.
rbxsync studio [file.rbxl]doc
Open documentation in browser.
rbxsync docUpdate Commands
version
Show version and git commit.
rbxsync versionupdate
Pull latest changes and rebuild.
rbxsync update [OPTIONS]| Option | Description |
|---|---|
--vscode | Also rebuild VS Code extension |
--no-pull | Skip git pull, just rebuild |
This command:
- Pulls latest from GitHub
- Rebuilds the CLI
- Rebuilds and installs the Studio plugin
Then restart Studio to load the updated plugin.
uninstall
Completely remove RbxSync from your system.
rbxsync uninstall [OPTIONS]| Option | Description |
|---|---|
--vscode | Also remove VS Code extension |
--keep-repo | Keep the cloned repo at ~/.rbxsync/repo |
-y, --yes | Skip confirmation prompt |
Migration Commands
migrate
Migrate from another sync tool to RbxSync.
rbxsync migrate [--from FORMAT] [--path DIR] [--force]| Option | Default | Description |
|---|---|---|
--from | rojo | Source format to migrate from |
--path | Current dir | Project directory |
--force | false | Overwrite existing rbxsync.json |
Currently supports migrating from Rojo projects.
Example:
# 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 --forceThis 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.
