0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2024-12-23 21:53:55 -05:00
astro/packages/upgrade
Houston (Bot) 141f2fb757
[ci] release (#10109)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-02-15 12:00:03 +01:00
..
src Fix invalid URLs being returned from getRegistry, synchronize all copies (#10117) 2024-02-14 17:27:18 -05:00
test [ci] format 2024-01-12 07:54:11 +00:00
CHANGELOG.md [ci] release (#10109) 2024-02-15 12:00:03 +01:00
package.json [ci] release (#10109) 2024-02-15 12:00:03 +01:00
README.md
tsconfig.json
upgrade.mjs

@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