> ## Documentation Index
> Fetch the complete documentation index at: https://docs.webstorio.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Upgrading a CLI project

> Bump the CLI, compatibility date, and lint tooling on an existing Webstorio project with webstorio update.

Existing CLI projects stay on the [compatibility date](https://docs.webstorio.com/api-reference/supported-libraries.md#compatibility-date)
pinned in `webstorio.config.ts` until you upgrade. That keeps builds stable while
the platform adds newer library versions and authoring tooling (for example
ESLint).

Use this guide when you want the latest supported libraries, lint setup, or CLI
behavior on a project that was scaffolded earlier.

## Step 1 — Upgrade the CLI package

When a newer CLI is on npm, commands print a notice with your current version,
the latest version, and a link back to this guide. You can also upgrade manually
in your project directory:

```bash theme={"dark"}
npm install -D @webstorio/cli@latest
```

Check the installed version:

```bash theme={"dark"}
npx webstorio --version
```

See the [CLI changelog](https://docs.webstorio.com/cli/changelog.md) for what changed.

## Step 2 — Run `webstorio update`

```bash theme={"dark"}
npx webstorio update
```

`update` will:

1. **Bump `compatibilityDate`** in `webstorio.config.ts` to the latest platform
   set (for example `2026-11-27`).
2. **Realign first-class `devDependencies`** to the versions the server compiles
   against for that date (based on what your pages and components import, plus
   TypeScript and Tailwind when present).
3. **Scaffold missing lint tooling** when the new date includes it:
   * ESLint + Prettier packages
   * `eslint.config.mjs` (only if the file is missing)
   * `lint` / `lint:fix` scripts that run ESLint then Prettier (only if those
     scripts are missing or Prettier-only)
4. **Install** with your detected package manager (`npm`, `pnpm`, `yarn`, or
   `bun`).

Use `--skip-install` if you only want the file edits:

```bash theme={"dark"}
npx webstorio update --skip-install
npm install
```

> [!TIP]
>
> Custom `lint` scripts that already invoke `eslint` are left alone. Existing
> `eslint.config.mjs` files are never overwritten.

## Step 3 — Fix lint and typecheck

`webstorio push` always runs your project's `lint` and `typecheck` scripts first.
After an upgrade that adds ESLint, run them locally and fix any new findings:

```bash theme={"dark"}
npm run lint
npm run typecheck
# or auto-fix where possible:
npm run lint:fix
```

Then preview and push as usual:

```bash theme={"dark"}
npx webstorio dev
npx webstorio push
```

## What stays the same

* **Pages, components, brand, and schemas** are not rewritten by `update`.
* **Non-first-class packages** you installed yourself stay in `package.json`;
  they are still bundled on push when imported.
* **Older compatibility dates** remain valid if you never run `update` — the
  server keeps compiling against the set effective on or before your pinned date.

## Related

* [`webstorio update` reference](https://docs.webstorio.com/cli/commands#webstorio-update)
* [Supported libraries & compatibility dates](https://docs.webstorio.com/api-reference/supported-libraries.md)
* [Project structure](https://docs.webstorio.com/developer/project-structure.md)
* [Deploying](https://docs.webstorio.com/developer/deploying.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.