native-mate upgrade
Check installed components for updates and apply them — safely, with local-change detection.
Usage
bash
1
npx native-mate upgrade [components...] [options]Examples
bash
1
2
3
4
5
6
7
8
# Check all installed components
npx native-mate upgrade
# Upgrade specific components
npx native-mate upgrade button card
# Skip confirmation prompts
npx native-mate upgrade -yLocal change detection
Each component file has a SHA-256 hash in its header comment. When you run upgrade, the CLI compares the on-disk file hash against the registry version. If your file differs from the original (you customised it), upgrade will warn you before overwriting.
// native-mate: button@0.1.0 | hash:a3f8c2d1e9b4
If the hash doesn't match, upgrade shows which files you've changed and asks whether to overwrite. Use -y to skip the prompt and always overwrite.