withastro/astro
@astrojs/upgrade
@astrojs/upgrade is a small CLI for upgrading astro and all @astrojs/* dependencies in a project. Published from packages/upgrade/.
Purpose
Run npx @astrojs/upgrade (or pnpm dlx @astrojs/upgrade) inside an Astro project. The tool:
- Detects the package manager.
- Resolves the latest versions of
astro,create-astro, every@astrojs/*integration, andastro-vscode. - Prints a diff of versions about to change.
- Optionally runs the upgrade with the right
pnpm/npm/yarn/buninvocation.
It is the recommended way to bump major versions because it keeps the framework and adapter/integration versions aligned (mismatched versions often produce confusing runtime errors).
Directory layout
packages/upgrade/
├── src/
├── test/
└── package.jsonThe CLI uses @clack/prompts for interaction, similar to create-astro.
Related pages
- packages / create-astro — the same interaction style applied to project creation.
- packages / astro
Built by Factory AutoWiki from public repository content. It is a generated preview for codebase exploration, not source-maintained documentation.