Update installed Ply components
update_componentsApply upstream updates to tracked Ply component copies, resolving conflicts or preserving local-only edits based on force, merge, and overwriteLocal options.
Instructions
Apply upstream changes to tracked Ply component copies (ply-ui-cli update --yes). diff_components reports the same drift and writes nothing. Untouched files take upstream. Conflicts stay local and the CLI exits non-zero unless force or merge. Local-only edits skip unless overwriteLocal. Hosts that can ask confirm force and overwriteLocal before those flags replace files. structuredContent.files is one result per file line.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | Project root containing ply-ui.json (defaults to MCP process cwd / PLY_CWD) | |
| force | No | On conflict (both local and upstream changed), take the upstream version. Does not revert local-only edits. | |
| merge | No | On conflict, apply a 3-way merge using the installed snapshot (`--merge`). force still wins. | |
| names | No | Tracked component names to update. Omit or pass [] to update every component in ply-ui-lock.json. | |
| overwriteLocal | No | Also revert files you edited that upstream did not change (`--overwrite-local`). Default skips those files. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| files | Yes |