Skip to main content

Documentation Index

Fetch the complete documentation index at: https://sunpeak.ai/docs/llms.txt

Use this file to discover all available pages before exploring further.

Overview

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

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)
$ sunpeak upgrade
Current version: 0.11.0
Latest version: 0.12.1

Upgrading sunpeak...
 Successfully upgraded to 0.12.1

Options

OptionShortDescription
--check-cCheck for updates without installing
--help-hShow help message

Usage Examples

Upgrade to Latest

sunpeak upgrade

Check for Updates Only

See if a new version is available without installing:
sunpeak upgrade --check
$ sunpeak upgrade --check
Current version: 0.11.0
Latest version: 0.12.1

A new version is available! Run "sunpeak upgrade" to update.

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 upgrade
Current version: 0.12.1
Latest version: 0.12.1

 You're already on the latest version!

sunpeak new

Create a new project

sunpeak dev

Start development server