SwipeUI
DocsCLI

diff

Compare your copy of an item with the latest version.

npx @swipeui/cli diff button

diff 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

  1. It reads the version line at the top of your file.
  2. It fetches that version and the latest one from the registry.
  3. 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.

On this page