You edited the file. Upstream changed it too.
Ply — ply-ui.com compares each copied file with the registry. Untouched files take upstream. Your edits stay. A file both sides changed stays local until you merge or take upstream.
Chapter 1 of 4
Copied
$ npx ply-ui-cli add dialog --yes
- src/app/components/dialog/dialog.ts
- src/app/components/dialog/dialog.html
- src/app/components/dialog/dialog.spec.ts
ply-ui-lock.json records the hash of each file.
src/app/components/dialog
dialog.ts
installed
host: { class: 'contents' }
dialog.html
installed
Cancel · Save
dialog.spec.ts
installed
it('opens')
npx ply-ui-cli add dialog writes the component into src/app/components/dialog/ and records each file hash in ply-ui-lock.json. That hash is the installed copy.
Ply — ply-ui.com copies each component into the repo, then tracks that copy. npx ply-ui-cli diff lists drifted files and writes nothing. npx ply-ui-cli update applies upstream only where you have not diverged. The frame above walks one dialog through the three results. The player runs once. The chapters stay clickable after it stops.
The files are ordinary Angular classes and Tailwind CSS templates. What the CLI adds is a hash in ply-ui-lock.json, taken when add wrote the file.
Three files, three results
diff dialog skips unchanged files. The labels below are the ones the CLI prints.
| File | You | Upstream | update --yes |
|---|---|---|---|
dialog.ts |
Never opened it | Changed the host class | Writes the upstream file |
dialog.html |
Changed the footer | Left the footer alone | Leaves your file |
dialog.spec.ts |
Renamed the test | Renamed the same test | Leaves your file |
A local-only edit is not a conflict. A conflict is both sides changing the same file since the installed copy. update --yes keeps that file and exits after printing kept your version. Without --yes, the CLI asks, and Merge is the first choice.
When you want a different winner
| Flag | What it changes |
|---|---|
--overwrite-local |
Also reverts files you edited while upstream stayed the same |
--force |
On a conflict, takes the upstream file |
--merge |
On a conflict, 3-way merges against the snapshot in .ply-ui/snapshots |
--merge uses the installed snapshot as the common ancestor. The Pro Git book describes the same shape: "Git does a simple three-way merge, using the two snapshots pointed to by the branch tips and the common ancestor of the two." If your edit and the upstream edit touch the same lines, the merge leaves conflict markers in the file and the command exits non-zero. A missing snapshot cannot merge. Re-add the component to start storing ancestors.
diff still writes nothing after any of these flags. Only update changes files.
Same idea, different default
shadcn/ui documents add --overwrite as "overwrite existing files" with a default of false, and add --diff as "show diff for a file." Ply splits that into diff and update, and the default update leaves both your local-only edits and your conflicts in place.
The longer ownership piece is The component lives in your repo. Setup is /getting-started.
npx ply-ui-cli diff dialog
npx ply-ui-cli update dialog --yes
Frequently asked questions
Same wording as the canonical FAQ.
npx ply-ui-cli diff shows upstream changes per file. update applies them: untouched files always take upstream; files you edited while upstream stayed the same are skipped unless you pass --overwrite-local; files both sides changed are conflicts — prompt (Merge first), --yes to skip, --force to take upstream, or --merge for a 3-way merge using .ply-ui/snapshots. Tracked via ply-ui-lock.json. Walkthrough: /learn/you-edited-upstream-changed/.
npx ply-ui-cli init once per project, then npx ply-ui-cli add <name>. Omit the name in a terminal to pick from the catalog (filter, then type to select). --yes and CI need explicit names. Components land in src/app/components/<name>/ by default and are yours.
Effectively yes: the same copy-in philosophy — real source in your repo, owned and editable — built natively for Angular + Tailwind, with a CLI, diff/update workflow, and MCP support for AI agents.
Install Tailwind CSS 4 and @angular/cdk, run npx ply-ui-cli init, then npx ply-ui-cli add card (or add with no name to pick from the catalog). The steps, MCP setup for AI tools, and a StackBlitz starter are at /getting-started/. Brand color, translated strings, and right-to-left layouts are at /configuration/.
Start with the free tier
All primitives, all 19 form blocks, and 392 outline icons — no account, no licence key.