Plasmic Codegen + Plasmic Studio Branches

What are you trying to do? (please be as specific as possible and include relevant screenshots, code snippets, and reproduction steps)

Hi there, we have a project that we were using Plasmic Loader + Plasmic Studio (with branches). Last week we replaced the loader in favor of Codegen for a better performant experience. My question is: Is there any support on Plasmic CLI to run sync or watch from a branch? Or do I need to always first commit the change on Plasmic Studio and then sync my changes to the code

What have you tried so far? (please link relevant docs and other forum posts)

Haven’t tried anything since it’s not a bug per se just a question about the best way to move forward

Relevant links:

Hi @rafael_ferreira
Yes, to sync a project from a specific branch using the CLI, you can run:
plasmic sync -p my-project-id@branch-name
This will pull the code from that specific branch. Let me know if you need help with anything else!

Nice! Thank you so much abbas!