Update Lightning Web Component
sf_update_lwcUpdate an existing Lightning Web Component by redeploying it via the Metadata API with new HTML, JavaScript, or CSS. Provide all files you want to keep, as omitted files are replaced with empty placeholders.
Instructions
Updates an existing Lightning Web Component by redeploying it with updated HTML, JavaScript, or CSS. Provide only the files you want to update — any files omitted will use empty placeholders (so you should provide all files you want to keep). The component is redeployed via the Metadata API.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| css | No | Updated CSS (leave undefined to keep existing) | |
| html | No | Updated HTML template (leave undefined to keep existing) | |
| apiVersion | No | API version | 66.0 |
| javascript | No | Updated JavaScript controller (leave undefined to keep existing) | |
| componentName | Yes | Existing LWC component name to update |