Skip to main content

Overview

The sunpeak upgrade command checks for new versions of sunpeak and optionally upgrades to the latest version.

How It Works

The upgrade command:
  1. Checks your currently installed version
  2. Fetches the latest version from npm
  3. Compares versions and reports if an update is available
  4. Automatically upgrades using your package manager (unless --check is specified)

Options

Usage Examples

Upgrade to Latest

Check for Updates Only

See if a new version is available without installing:

Package Manager Detection

The command automatically detects and uses your package manager:
  • pnpm - pnpm add -g sunpeak
  • npm - npm install -g sunpeak
  • yarn - yarn global add sunpeak
If automatic upgrade fails, manual upgrade instructions are displayed.

Already Up to Date

If you’re already on the latest version:

sunpeak new

Create a new project

sunpeak dev

Start development server