---
title: Upgrading
description: Update Dex, and move a studio set up by an older version or by Sudio.
---

Dex is one versioned package. Its app, canvas, CLI, and the rules and methods agents follow all come from the installed version, so updating the package updates all of them. Your project keeps only what's yours: `dex.config.ts`, `DESIGN.md`, `context/` and `files/`.

## Update from Dex

When a newer Dex is out, a notice says so, with **Update**. **Update** syncs your branch, installs the new version with your package manager, runs `npx dex upgrade`, commits the change, and restarts Dex. If a step fails, the notice says why, and **Try again** picks up where it stopped.

Dex checks for updates through your package manager, so it uses the registry and proxy you set for installs. If the notice never appears, `npx dex doctor` says why.

## Update from the terminal

<Commands code={`npm install --save-dev @dexhq/canvas@latest
npx dex upgrade
npx dex doctor`} />

## Update as a team

One person updates and shares the change. When teammates sync, Dex installs the new version, runs `npx dex upgrade`, and restarts. Each agent's MCP server moves to the new version on its own, without reconnecting.

## Move a studio set up by an older version

Run `npm create dex@latest` in the project. It shows what differs from what this version writes, and changes it once you agree. Your config's other keys and comments stay.

Then run `npx dex upgrade` to move what's in the studio's folder. Run it with `--dry-run` first to see the changes without writing them. Running it twice changes nothing. It:

- Renames `studio.config.ts` to `dex.config.ts`
- Moves `studio/design-system/index.ts` into `designSystem` in `dex.config.ts`, and its prose into `DESIGN.md`
- Moves files from `prototypes/<owner>/<slug>/` to `files/<slug>/`. Old links and names still find them.
- Moves snapshots and presence into `.studio/`
- Removes copied rules nobody edited, and keeps edited ones as your own
- Deletes each file's `explorations/` folder, which nothing reads now

If `dex.config.ts` isn't written as `export default defineConfig({ … })`, `upgrade` says what to add, writes nothing and exits with 2.

## Move a studio made with Sudio

Sudio is now Dex: `@sudio/core` is `@dexhq/canvas`, and the `sudio` command is `dex`. Swap the package:

<Commands code={`npm uninstall @sudio/core
npm install --save-dev @dexhq/canvas@latest
npx dex upgrade
npx dex doctor`} />

`npx dex upgrade` renames `sudio.config.ts` to `dex.config.ts` and updates its import. `npx dex doctor` lists each agent still set up for Sudio. For each one, run:

<Commands code={`npx dex agents add claude`} />

Then change `sudio` to `dex` in your package scripts, change `@sudio/core/…` imports to `@dexhq/canvas/…`, and rename `SUDIO_*` environment variables to `DEX_*`. Until you do, the old names keep working. Your sign-in, preferences, drafts and review files carry over.

## Customise rules and methods

To change how agents work in your project, put a file in the studio's `rules/` or `methods/` folder. It replaces the installed file of the same name. To start from the installed one, copy it from `node_modules/@dexhq/canvas/templates/`.
