diff command checks for updates to your installed components against the registry. It compares your local files with the latest versions and shows differences.
Usage
Arguments
The component name. If not provided, checks all installed components for updates.
Options
Skip confirmation prompt.
The working directory. Defaults to the current directory.
Examples
Check all components for updates
Check a specific component
Check component in specific directory
What it does
- Reads your
components.jsonconfiguration - Fetches the latest version from the registry
- Compares local files with registry versions
- Shows a line-by-line diff of changes
- Highlights additions in green and removals in red
Use cases
Track component updates
Regularly check for updates to installed components:Review changes before updating
Before manually updating a component, review what changed:Verify customizations
Check if your customizations conflict with upstream changes:Output format
The diff output uses standard diff notation:- Lines starting with
-(red) are removed in the registry version - Lines starting with
+(green) are added in the registry version - Lines without prefix are unchanged
No updates found
If a component is up-to-date:Notes
- The diff compares the transformed registry code against your local files
- Transformations are applied based on your
components.jsonconfiguration - Only checks components that exist in your project
- Requires a valid
components.jsonfile