> For the complete documentation index, see [llms.txt](https://contentbox.ortusbooks.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://contentbox.ortusbooks.com/v4.x/intro/introduction/upgrading-from-v3.x.md).

# Upgrading From v3.x

ContentBox v4.x is a **major** version update and will require the following instructions to update your v3.x installations. Please follow this guide or contact us at <<info@ortussolutions.com>> so we can assist you during your upgrade process.

{% hint style="danger" %}
We highly encourage you to start your upgrade process from version 3.7.1 and not from anything below. So please refer to the previous version upgrade guides to make sure you are on version 3.71.
{% endhint %}

## Requirements

All Upgrades to ContentBox should be done with the assistance of [CommandBox CLI.](https://www.ortussolutions.com/products/commandbox) So make sure you have CommandBox installed.

## Backups

Please make sure you backup your source code and your database. We are not responsible for broken installations.

## Upgrade Process

There are two parts to the upgrade process:

1. Update the source code using our updater recipe
2. Run the database migrations via the ContentBox administrator panel

### 1. Source Code Updater

Please make sure your CFML engine has been completely stopped.

#### \*nix/Mac

If you are in a linux or mac environment you can execute the recipe using the following shell commands from the root directory of your application.

```bash
# Download recipe
curl -o updater.boxr https://raw.githubusercontent.com/Ortus-Solutions/ContentBox/development/build/patches/4.2.1/updater.boxr
# Execute recipe
box recipe updater.boxr
```

#### Windows

If you are in windows, download the following recipe:

<http://raw.githubusercontent.com/Ortus-Solutions/ContentBox/development/build/patches/4.2.1/updater.boxr>

and place it in the root of your project. Then issue the following CommandBox shell command to execute it.

```bash
box recipe updater.boxr
```

That's it! The updater will take care of upgrading your 3.x source code to the latest 4.x source code.

### 2. Database Updater

Once your recipe finalizes, startup the CFML server and go to the ContentBox administrator (`localhost:port/cbadmin`) and navigate to the **System > Updates** section. Then click on the **Download Update** tab and paste the following updater URL:

<https://downloads.ortussolutions.com/ortussolutions/contentbox/4.2.1/contentbox-patch-db-4.2.1.zip>

This will download the database updater and run it. Once finalized, your installation is ready to rock!


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://contentbox.ortusbooks.com/v4.x/intro/introduction/upgrading-from-v3.x.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
