Skip to main content
The 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

string
The component name. If not provided, checks all installed components for updates.

Options

boolean
default:"false"
Skip confirmation prompt.
string
The working directory. Defaults to the current directory.

Examples

Check all components for updates

Output:

Check a specific component

Output:

Check component in specific directory

What it does

  1. Reads your components.json configuration
  2. Fetches the latest version from the registry
  3. Compares local files with registry versions
  4. Shows a line-by-line diff of changes
  5. 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:
If all components are up-to-date:

Notes

  • The diff compares the transformed registry code against your local files
  • Transformations are applied based on your components.json configuration
  • Only checks components that exist in your project
  • Requires a valid components.json file