---
title: Versions
product: v0
type: conceptual
prerequisites:
  - /docs/quickstart
related:
  - /docs/code-editing
  - /docs/projects
---

# Versions



Each time v0 updates a code block from a message, it creates a new version. Non-message actions (such as editing code or modifying files directly) do not generate new versions.

<Image src="/docs/light/versions.png" srcDark="/dark/versions.png" width={766} height={386} alt="Viewing a previous version of a generation in v0" />

Restoring an old version creates a new, most recent version using the restored code to maintain a linear version history.

When deploying, the latest version of the code is used. If you want to deploy a previous version, you can restore it and then deploy.

Once more than one version has been created, you can switch between versions using the dropdown in the top-right corner of the interface. This dropdown shows how many versions have been created (for example, **v2**). You can also scroll through your chat with and click **↩** to restore an earlier generation.


---

For a semantic overview of all documentation, see [/docs/sitemap.md](/docs/sitemap.md)

For an index of all available documentation, see [/docs/llms.txt](/docs/llms.txt)

For agent-facing discovery, including API and MCP surfaces, see [/docs/agents.md](/docs/agents.md)