---
title: Versions
docs_index: /docs/llms.txt
lastUpdated: 2026-10-16
product: v0
type: conceptual
prerequisites:
  - /docs/quickstart
related:
  - /docs/code-editing
  - /docs/projects
---

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

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.

![Viewing a previous version of a generation in v0](/docs/light/versions.png)

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)