Using Syncback
Bring changes made in Studio back into your source files
Updated
rogen syncback writes the changes in a place file saved from Studio back into your source files. It needs Rojo 7.7.0 or newer.
Run Syncback
In Studio, save the place with File > Save to File As as game.rbxlx, then preview:
$ rogen syncback --input game.rbxlx --dry-run
Writing src/Greeter/Shared/Greeting.luau
Writing src/Quest/Shared/QuestTypes.luau
Writing src/Greeter/Server/Welcome.luau
Writing src/Quest/Server/Main.server.luau
Removing src/Greeter/Client
Syncback would change 5 files (4 to write, 1 to remove).Read the list before you write. Syncback also removes the files of instances the place no longer holds, so a place saved from an old copy undoes newer edits. When it looks right, run it again without --dry-run, adding -y in CI.
Where Changes Go
A changed instance goes back to its own file, and a new one goes where routing would put it, next to the files like it. A folder renamed in Studio is renamed on disk.
Syncback skips an instance whose name Rogen would read as a route, such as Save@Server, with a warning. It stops without changing anything when a name has a slash or backslash, is . or .., or two instances in one folder share a name; rename them in Studio and run it again. Under a compiledPath, it leaves the compiled code alone and warns about each change for you to copy into the source.