> ## Documentation Index
> Fetch the complete documentation index at: https://docs.prod.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Prod AI SDLC

> Prod AI version control helps you track, preview, publish, and roll back application changes

Using version control you can:

* [**Track versions**](#track-versions) as checkpoints
* [**Preview**](#preview) a version before it goes live
* [**Publish**](#publish) a version to production
* [**Roll back**](#roll-back) by publishing an earlier version
* [**Undeploy**](#undeploy) an app so end users cannot access it
* [**Restore**](#restore) the editor and chat to an earlier checkpoint
* Use [**Git**](#git-connected-apps) for PR-based workflows when the app is connected to a repository

## Track versions

After each build completes, Prod AI saves a **checkpoint**. To see your app's checkpoints, open the chat panel and click the **Version history** icon in the header.

## Preview

From a checkpoint in chat or version history, click **Preview**. Prod AI builds a shareable preview of that version so you can QA without changing production.

## Publish

From a checkpoint in chat or version history, click **Publish** to promote that version to production. Prod AI builds, runs pre-publish checks, and deploys in one flow.

Click **View publish details** from a previewed / published checkpoint card, or click any previewed / published version in history to watch build progress, review errors, and complete pre-publish security or database actions.

Builders need [permission to deploy the application](https://docs.prod.ai/admin/org-administration/resource-roles.md#applications). Without it, the **Publish** button stays disabled with a message that you do not have permission to publish to production.

## Roll back

To revert production to a previous version, publish the desired older checkpoint from **Version history**. End users of the app will now see the earlier version the next time they refresh or load the app.

## Undeploy

You can **Undeploy** an application to make it temporarily unavailable to end users. To undeploy an application:

1. Open **Version history** in the chat panel
2. Open the menu on the **Live** version
3. Click **Undeploy** and confirm

![Undeploy an app](https://mintcdn.com/prod-ai/u1kWRV0UHijNJjzG/images/development-lifecycle/source-control/undeploy-app.png?fit=max\&auto=format\&n=u1kWRV0UHijNJjzG\&q=85\&s=af11dec9800335fce87b12c3e5909714)

After undeploying, the application is no longer accessible to end users. You can keep working in edit mode and publish again when ready.

## Restore

You can **Restore** an application in order to discard later edit-mode work and reset chat history to an earlier point. To restore an application:

1. Open the checkpoint in chat or find it in **Version history**
2. Choose **Restore**
3. Confirm in **Restore to checkpoint**

Restore only affects edit mode and chat history. The live production version does not change until you publish again. If you need to change what end users see, [publish](#publish) or [roll back](#roll-back) instead.

## Git-connected apps

When an app is connected to Git:

* Edits happen on the working branch created by Prod AI
* You **commit** and open pull requests in your repository
* After merging to your default branch and the CI sync completes, publish from the **Deploy** tab in **Version history** (not from the History list)

For more on Git workflows, see [Connect to Git](https://docs.prod.ai/development-lifecycle/version-control/connect-to-git.md).


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