Documentation Index
Fetch the complete documentation index at: https://mintlify.com/rojo-rbx/rojo/llms.txt
Use this file to discover all available pages before exploring further.
rojo syncback runs in the opposite direction of rojo serve. Instead of pushing files from disk into Roblox Studio, it reads a Roblox file and writes the instances it finds back to your project’s filesystem. This is how you migrate an existing .rbxl or .rbxlx place — or a .rbxm or .rbxmx model — into a Rojo project.
Supported input formats
| Extension | Description |
|---|---|
.rbxl | Binary place file |
.rbxlx | XML place file |
.rbxm | Binary model file |
.rbxmx | XML model file |
Basic usage
[project]— path to the project file or directory. Defaults to the current directory.--input/-i— path to the Roblox file to read from. Required.
Flags
Print a list of all files and directories that would be added or removed to stdout before writing. Green lines are additions, red lines are removals. Can be combined with
--dry-run.Run syncback without writing anything to disk. Rojo prints how many files would be added or removed, then exits. Useful for previewing the effect of a syncback before committing to it.
Skip the confirmation prompt. By default, syncback tells you how many files it will write or remove and asks
Is this okay? (Y/N). Pass -y to answer yes automatically, which is useful in CI or scripted workflows.Interactive prompt
Unless--non-interactive or --dry-run is set, syncback always pauses before writing to disk:
Y to proceed or anything else to abort without making changes.
Controlling syncback with syncbackRules
You can add a syncbackRules object to your project file to configure what syncback includes and excludes.
default.project.json
syncbackRules fields
A list of paths in the Roblox instance hierarchy to skip. Paths are written as slash-separated instance names relative to the root, for example
"ServerStorage/ImportantSecrets". Any instance at that path and all of its descendants are excluded from syncback.A list of glob patterns matched against the filesystem path an instance would be serialized to. Instances whose output path matches any pattern are skipped.When a pattern ends with
/**, Rojo automatically generates an additional pattern that matches the parent directory itself (so both the directory and its contents are excluded). Set createIgnoreDirPaths: false to disable this behavior.A map of Roblox class names to lists of property names that should not be synced back. Inheritance is respected — specifying
"BasePart": ["Color"] also excludes Color from all classes that inherit from BasePart.Whether to include the
Workspace.CurrentCamera instance in syncback. Defaults to false because the camera is typically ephemeral and not part of a project’s source.Whether to sync back properties that cannot be set by scripts (i.e., properties that are not scriptable in the Roblox Studio plugin). Defaults to
true.Whether to skip serializing referent properties such as
Model.PrimaryPart. Defaults to false.When
true, glob patterns in ignorePaths that end in /** are automatically expanded to also match the directory they refer to. Set to false to disable this convenience behavior.