⌘K

Sync integration

Use the code-gen command to regenerate the typed DSL after your integrations change.

After your blocks or actions are registered on the server, run code-gen to pull the latest integrations and regenerate the typed DSL functions used in your frame files.


Command

nativeblocks code-gen

When to run it

Run code-gen whenever the integrations on the server change:

  • After a new block or action is registered for the first time
  • After an existing block or action is updated (renamed property, new data, etc.)
  • After removing a block or action from the server

What it does

code-gen fetches your current integrations from the server and writes a typed DSL file into your project. Each registered block or action gets a corresponding function that your frame files can call with full type safety.


Verify

List your integrations to confirm the expected blocks and actions are present:

nativeblocks integration list -p ANDROID -k BLOCK
nativeblocks integration list -p IOS -k ACTION

What's next