0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2024-12-16 21:46:22 -05:00
astro/packages/upgrade
Houston (Bot) 929ce28325
[ci] release (#12698)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-12-11 11:07:58 +00:00
..
src fix: correctly check isOnline with port (#12706) 2024-12-10 20:00:58 +00:00
test chore(deps): replace strip-ansi with native module (#12118) 2024-10-04 11:21:03 +02:00
CHANGELOG.md [ci] release (#12698) 2024-12-11 11:07:58 +00:00
package.json [ci] release (#12698) 2024-12-11 11:07:58 +00:00
README.md feat: implement overlay main screen redesign (#9118) 2023-11-28 09:39:38 -05:00
tsconfig.json feat: implement overlay main screen redesign (#9118) 2023-11-28 09:39:38 -05:00
upgrade.mjs chore: move lint rules to Biome (#12145) 2024-10-08 10:12:40 +01:00

@astrojs/upgrade

A command-line tool for upgrading your Astro integrations and dependencies.

You can run this command in your terminal to upgrade your official Astro integrations at the same time you upgrade your version of Astro.

Usage

@astrojs/upgrade should not be added as a dependency to your project, but run as a temporary executable whenever you want to upgrade using npx or dlx.

With NPM:

npx @astrojs/upgrade

With Yarn:

yarn dlx @astrojs/upgrade

With PNPM:

pnpm dlx @astrojs/upgrade

Options

tag (optional)

It is possible to pass a specific tag to resolve packages against. If not included, @astrojs/upgrade looks for the latest tag.

For example, Astro often releases beta versions prior to an upcoming major release. Upgrade an existing Astro project and it's dependencies to the beta version using one of the following commands:

With NPM:

npx @astrojs/upgrade beta

With Yarn:

yarn dlx @astrojs/upgrade beta

With PNPM:

pnpm dlx @astrojs/upgrade beta