CoDesignFloDocs How it works Pricing Compare GitHub Sign in

Docs › For developers

Syncing

#What sync does

  1. Builds your Storybook.
  2. Renders every component and page story in a headless browser, on your machine.
  3. Compiles what the browser drew into Figma layers, bound to your tokens.
  4. Checks every open design against the result.
  5. On the Live branch with everything committed: uploads a Live update, and if the Figma file is open, waits for the plugin to apply it and reports how it went.

#Running it

Ask your agent to "sync". It calls the sync tool, which returns a command with a one-time sign-in ticket, and runs it in your app's folder. From a terminal:

bash
npx @codesignflo/cli sync
It takes a while
A full sync can take a few minutes on a large Storybook. Agents should give it a generous timeout (up to 5 minutes).

#Where it updates Live

You're onSync does
The Live branch, everything committedUploads a Live update, checks designs.
The Live branch, not pulled (behind Live or origin)Checks designs only, and says to pull first.
The Live branch, uncommitted changesChecks designs only.
A connected branch, everything committedUpdates its lane beside Live, checks designs (Branch lanes).
Another branchChecks designs only. --preview shows the branch in Figma once.

#Options

OptionEffect
--only a,bUpdate just these components or pages in Live (when building designs one at a time).
--previewOn a feature branch: show it in Figma beside Live.

#Next

Reading sync results explains everything sync reports.