> ## Documentation Index
> Fetch the complete documentation index at: https://dhiwisepvtltd-5e04e6a4.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Versions

> Every Rocket.new build saves a version - compare diffs, label milestones, roll back changes, and redeploy any previous version from chat.

Every time Rocket responds to a Build message, it saves the result as a new version. You get a complete history of your project that you can compare, roll back, label, and deploy - all from the chat panel.

## How versions work

At the bottom of each Rocket message in chat you will see a **Files** row showing the version number and which files changed. Below it are action buttons.

| Button | What it does |
| :- | :- |
| **Code diff** | Shows what changed between this version and the previous one |
| **Rollback** | Reverts your project to this version |
| **Create label** | Adds a name to this version so you can find it easily (web apps only) |
| **Launch** | Deploys this specific version to staging or production (web apps only) |

## Code diff

Code diff opens a side-by-side view of every file that changed in this version. Added lines are highlighted in green, removed lines in red.

![Code diff panel showing green and red highlighted lines across two changed files.](https://mintlify.s3.us-west-1.amazonaws.com/dhiwisepvtltd-5e04e6a4/images/build/editor/versions/code-diff-light.webp)

![Code diff panel showing green and red highlighted lines across two changed files.](https://mintlify.s3.us-west-1.amazonaws.com/dhiwisepvtltd-5e04e6a4/images/build/editor/versions/code-diff-dark.webp)

Code diff view showing changed files

Use code diff to:

* Review exactly what Rocket changed before moving on
* Understand the impact of a specific edit
* Debug unexpected behavior after a build

## Rollback

Rollback reverts your entire project to the selected version instantly.

> [!WARNING]
>
> Rolling back discards every version after the one you select. The discarded code, labels, and checkpoints leave no reference in chat. This cannot be undone.

**1. Find the version**

Locate the version you want to return to in the chat.

**2. Click Rollback**

Click **Rollback**.

**3. Confirm the rollback**

Click **Rollback now** to confirm.

![Rollback confirmation dialog warning that changes cannot be recovered.](https://mintlify.s3.us-west-1.amazonaws.com/dhiwisepvtltd-5e04e6a4/images/build/editor/versions/rollback-light.webp)

![Rollback confirmation dialog warning that changes cannot be recovered.](https://mintlify.s3.us-west-1.amazonaws.com/dhiwisepvtltd-5e04e6a4/images/build/editor/versions/rollback-dark.webp)

Rollback confirmation dialog

## Create label

Labels let you name and bookmark a specific version for easy reference later.

> [!NOTE]
>
> Create label is only available for **web** apps. It is not available for mobile apps.

> [!WARNING]
>
> A label is tied to its version. If you roll back past that version, the label is removed with the code. Chat will no longer show that codebase, label, or checkpoint. This cannot be undone.

**1. Find the version**

Locate the version in the chat.

**2. Click Create label**

Click **Create label**.

**3. Name the label**

Type a name and press Enter.

![Create label input field open below the version action buttons.](https://mintlify.s3.us-west-1.amazonaws.com/dhiwisepvtltd-5e04e6a4/images/build/editor/versions/create-label-light.webp)

![Create label input field open below the version action buttons.](https://mintlify.s3.us-west-1.amazonaws.com/dhiwisepvtltd-5e04e6a4/images/build/editor/versions/create-label-dark.webp)

Create label input on a version

Good times to create a label:

* Before a risky change you might want to undo
* When a version is ready for review ("Client review v1")
* At a significant milestone ("MVP", "Beta launch")

## Launch a version

You can deploy any version directly - it does not have to be the most recent one.

> [!NOTE]
>
> Launching a particular version is only available for **web** apps. It is not available for mobile apps.

**1. Find the version**

Locate the version in the chat.

**2. Click Launch**

Click **Launch**.

**3. Select environment**

Select **Staging** or **Production**.

![Version card with Launch button highlighted.](https://mintlify.s3.us-west-1.amazonaws.com/dhiwisepvtltd-5e04e6a4/images/build/editor/versions/launch-light.webp)

![Version card with Launch button highlighted.](https://mintlify.s3.us-west-1.amazonaws.com/dhiwisepvtltd-5e04e6a4/images/build/editor/versions/launch-dark.webp)

Launch button on a version card

| Target | What it is |
| :- | :- |
| **Staging** | A private preview environment for testing, not visible to end users |
| **Production** | Your live app, visible to everyone with the URL |

> [!NOTE]
>
> Launching a version does not affect your working state in the editor. Your project continues from wherever you are - only the deployed environment changes.

For a full breakdown of how staging and production work together, see [Launch your site](https://dhiwisepvtltd-5e04e6a4.mintlify.site/build/launch-web/launch-your-site.md).

## What's next?

> **[Preview your app](https://dhiwisepvtltd-5e04e6a4.mintlify.site/build/editor/preview.md)**
>
> Test your app on different screen sizes before launching.

> **[Launch your site](https://dhiwisepvtltd-5e04e6a4.mintlify.site/build/launch-web/launch-your-site.md)**
>
> Understand staging and production, and manage your releases.

> **[View and edit code](https://dhiwisepvtltd-5e04e6a4.mintlify.site/build/editor/code.md)**
>
> Browse and edit your project source files directly.

> **[Chat with Rocket](https://dhiwisepvtltd-5e04e6a4.mintlify.site/build/editor/chat.md)**
>
> Keep building - every message creates a new version automatically.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.