CLI Reference

update

Seamlessly bring your components to the latest version.

Overview

The update command synchronizes your local component files with the latest source from the Kachindo registry. It's the primary way to get bug fixes and performance improvements.

Usage

Update specific components:

Terminal

$npx kachindo@latest update button

Update all installed components:

Terminal

$npx kachindo@latest update

Destructive Operation

Updating will overwrite your local component files. If you have made custom logic or styling changes to these files, they will be lost. We recommend committing your changes before running this command.

Options

OptionDescription
-y, --yesSkip confirmation prompt and update components directly.

Best Practices

Commit first

Always commit your work before updating components so you can easily revert if needed.

Run diff first

Use the 'diff' command to see exactly which components have updates available.

Check changelogs

Review the release notes to understand the impact of the updates on your current implementation.

Profile