---
title: "Upgrade an installation"
description: "Keep existing feeds and resource identities intact."
---

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

# Upgrade an installation

Use the same deployment checkout, installation configuration, stack name, stage, and `.alchemy/state` that created the installation.

## Upgrade

1. [Back up metadata, media, and deployment state](https://podstead.wking.dev/docs/guides/backups/).
2. Review the changes and update the checkout without discarding local edits.
3. Install dependencies, build, and run the relevant checks.
4. Inspect the infrastructure plan.
5. Deploy the reviewed plan and verify sign-in, RSS, and playback.

```sh
npm ci
npm run build
npm run check
npm test
npm run infra:plan -- --file installation.local.json
npm run deploy -- --file installation.local.json
```

The plan should preserve Worker, bucket, hostname, and Durable Object identities. Stop on unexpected replacement or deletion.

## Adopt an older installation

Set `adopt: true` only when you intend to adopt existing resources. Supply the existing owner `accessApplicationId` and protocol `protocolApplicationId`. Keep the prior configuration and Access inventory.

The installer checks resource identity and known migration history. Those checks are not proof that an arbitrary existing account can be safely adopted. Review its real plan. [Detailed adoption procedure](https://github.com/wking-io/podstead/blob/main/docs/install.md)

Older public content may need reconciliation against its stored RSS before new publishing is allowed. Podstead preserves the public files while that is resolved; it does not assume that the latest draft was the published version.

## After an interrupted deploy

Do not delete `.alchemy/state` to start over. Verify the previous process has stopped, recover the matching configuration and state, and rerun the plan.

A local install lock stops cooperating processes in one checkout. It does not coordinate deployments from different machines. Keep one deployment owner or a CI concurrency lock.

## Rollback

Code rollback alone is not enough after a data migration. Stop writes and alarms, restore a consistent metadata backup and matching code/configuration, and verify public files before allowing writes again. Keep the media copies until recovery is proven.

Source: https://podstead.wking.dev/docs/guides/upgrades/index.mdx
