Update an existing project
Choose the target release
0.1.0-alpha.1 to 0.1.0-alpha.2.
npm ls @fastang/core
npm view @fastang/core@0.1.0-alpha.2 peerDependencies engines --json--force or --legacy-peer-deps to turn a dependency mismatch into an apparently successful upgrade. Alpha releases may change APIs even within the same 0.1.0 prerelease line. Read the release notes.
Install and verify
npm install --save-exact @fastang/core@0.1.0-alpha.2
npm run generate
npm run build
npm run build:vercelpackage.json, package-lock.json and intentional migration changes together. Deploy the checked commit. The generator is not normally installed in the generated app and does not need to be updated there.
1.0.0 to 1.2.0 upgrade, use the same process with 1.2.0 as the explicit target. This is an example, not a currently published release. Stable minor releases are intended to preserve compatibility; major changes require migration instructions. During alpha, use the release notes rather than assuming that every minor-looking change is compatible.
Application bindings and migrations
src/server/index.ts, start.ts, api-entry.ts, vercel-entry.ts, Angular bootstrap/configuration and Vite/FastAng config belong to the app. If a release changes those bindings, apply its documented migration and keep your custom behavior.
0.1.0-alpha.3, the separate @fastang/cli package owns project creation and upgrades. It also works with older installed cores:
npx --package=@fastang/cli@0.1.0-alpha.6 fastang-cli update --to alpha
npx --package=@fastang/cli@0.1.0-alpha.6 fastang-cli update --to alpha --yes--to latest follows npm's latest tag, which may differ from alpha. The plan compares Node, installed peers and the target release. The manifest, lockfile and installed core must agree: reconcile differences using npm install or npm ci as instructed and review the diff. Incompatibilities block applying; downgrades require --allow-downgrade. An identical installed version with consistent state does not trigger installation. Source migrations remain manual. npm installation can execute scripts and failures are not automatically rolled back. Do not replace the entire src/ directory with a new template. To compare a target starter, generate a separate app outside the existing project:
cd ..
npm create fastang@0.1.0-alpha.2 fastang-comparison -- --installfastang generate rewrites generated registration modules; it is not a general migration tool. Moving to alpha.2 adds optional features: existing endpoints do not need to become contracts and TypeBox is not required unless you adopt shared schemas.
pnpm updates
package.json and pnpm-lock.yaml.
pnpm --package=@fastang/cli@alpha dlx fastang-cli update --to alphapnpm --package=@fastang/cli@alpha dlx fastang-cli update --to alpha --yes@fastang/core and the lockfile. Your pages, endpoints, styles and configuration remain application files: apply any source migrations described in the release notes yourself.
pnpm run buildpnpm run build:vercel. Review the changes and commit package.json, pnpm-lock.yaml and any source migrations together.
alpha after --to with its version, for example --to 0.1.0-alpha.6.
If the update stops
pnpm install --frozen-lockfile. If you have just changed dependencies in package.json, run pnpm install instead and review the updated lockfile before trying again.
packageManager declaration that matches pnpm. Automatic updates cover standalone applications; for monorepos with a shared lockfile, update dependencies through the workspace's tools.
Documentation versions and rollback
/docs opens the current guides.
npm ci or pnpm install --frozen-lockfile, depending on the project’s package manager, and redeploy that checked state. Simply downgrading the package does not undo manual source changes or external database/service migrations.