---
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.

Use the version controls attached to each generated message to inspect a version, view its diff, or 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)