Do I need to install the CLI in my project as well as globally?
Do I need to install the CLI in my project as well as globally?
npm install -g @embeddables/cli. Your project only needs the files created by embeddables init (including .types/ for editor support). You do not add @embeddables/cli as a dependency in package.json for normal use.Where is my login stored?
Where is my login stored?
embeddables logout to clear it.Can I use the CLI without ever using the Builder?
Can I use the CLI without ever using the Builder?
What is the difference between id and key on components?
What is the difference between id and key on components?
id is the stable internal identifier (e.g. comp_12345). key is used in React and for targeting (e.g. in conditions or user data). Keys must not start with a number; use a prefix like option_ or range_ if the label would otherwise slug to a number.Can I have multiple Embeddables in one project?
Can I have multiple Embeddables in one project?
embeddables pull for each; they live in embeddables/<embeddable-id>/. When you run embeddables dev, embeddables save, or embeddables branch without -i, you’ll be prompted to choose which Embeddable to use. To avoid the prompt, go into that Embeddable’s folder (e.g. cd embeddables/<EMBEDDABLE_ID>) and run the command from there—the CLI will automatically use that Embeddable.First pull changes the JSON too much. How can I reduce noise?
First pull changes the JSON too much. How can I reduce noise?
embeddables pull —preserve. It keeps the same order of components in the config. Most of the “changes” you see on a first pull are from React reordering components within containers—that doesn’t affect how the Embeddable renders. With —preserve, you may still see smaller changes (e.g. parent_key fixes), but it’s easier to verify what actually changed.How do I point the dev server at a local Engine?
How do I point the dev server at a local Engine?
embeddables dev --local to use http://localhost:8787. Or use embeddables dev --engine https://your-engine.example.com for a custom URL.What is the Workbench and how do I open it?
What is the Workbench and how do I open it?
embeddables dev, it is shown by default; add ?workbench=false to hide it. On non-localhost preview links, add ?workbench=true to show it. It is served by the dev proxy and does not require a separate deploy.Does the CLI work with Cursor / Claude / Codex?
Does the CLI work with Cursor / Claude / Codex?
embeddables init injects Cursor rules (.cursor/rules/), Claude project context (.claude/), and a Codex-compatible AGENTS.md file so the assistant understands the file layout, component types, and conventions. You can also use the built-in prompts from the CLI repo in your own rules.How do I get the latest CLI version?
How do I get the latest CLI version?
embeddables upgrade. You can check the current version with embeddables -v.Can I create a new branch or experiment from the CLI?
Can I create a new branch or experiment from the CLI?
embeddables branch, and connect an Embeddable to an experiment with embeddables experiments connect, but creating new branches or experiments is done in the Builder.Why does save say the server has a newer version?
Why does save say the server has a newer version?
embeddables pull and then re-apply your changes, or force-save when the prompt offers it (use with care to avoid overwriting others’ work).What are global components and where do they live?
What are global components and where do they live?
embeddables/<id>/global-components/ with one file per location, e.g. before_page.location.tsx, after_components.location.tsx. The _location value controls where they render relative to the page.Should I use Git or version control for my Embeddable project? How do I compare changes?
Should I use Git or version control for my Embeddable project? How do I compare changes?
embeddables diff to compare your local files against the last saved cloud version:embeddable.json and the latest embeddable-<branch>@<version>.json (e.g. embeddable-main@47.json) inside the .generated/ folder. In VS Code or Cursor: Shift+click or Command/Ctrl+Click to select both files, then right-click → Compare Selected.
