Updating Patterns

Keep your patterns up-to-date with the latest improvements and fixes

Basic Usage

seanstack update [pattern] [options]

Update Commands

Update all patterns

seanstack update

Updates all patterns in your project to their latest versions

Update specific pattern

seanstack update component Button

Updates a specific pattern to its latest version

Check for updates

seanstack update --check

Lists available updates without applying them

Update Process

1. Backup Detection

The CLI automatically detects modifications to patterns and creates backups

2. Conflict Resolution

Interactive prompts help resolve conflicts between local changes and updates

3. Validation

TypeScript compilation and linting verify the update was successful

Options

--force

Force update even if local modifications are detected

--dry-run

Show what would be updated without making changes

--backup

Create backups before updating (default: true)