DocsCLI
diff
Compare your copy of an item with the latest version.
npx @swipeui/cli diff buttondiff shows what changed upstream since the version stamped in your file, next to your own edits. Because SwipeUI items are your source, you choose what to take: merge by hand, ask your agent to merge, or replace the file with add --overwrite.
How it works
- It reads the version line at the top of your file.
- It fetches that version and the latest one from the registry.
- It shows the upstream changes, so your own edits are never overwritten silently.
Options
--json: the diff as data, for agents that apply changes for you.