# Updates

ContentBox is upgraded using CommandBox via the CLI.  If you are upgrading from minor to minor/patch level, most likely you won't need to follow an upgrade guide.  However, if you are upgrading between major versions make sure you visit each of the major versions' upgrade guide first.

## Make a full backup

Make sure you backup your database and source, just in case.  We recommend running this against a development instance first and then moving on to production instances.

## Update Command

When you are ready with your backups, open up a CommandBox shell using `box` in the root of your project.

{% hint style="danger" %}
Make sure your `.env` and credentials are seeded
{% endhint %}

```bash
# Run the update of the core dependencies
update --force
```

This will update ColdBox and ContentBox respectively and any other `dependencies` listed in your `box.json`

## Run database migrations

Now that the ContentBox source has been upgraded, let's run the database migrations

```
# Run the migrations
run-script contentbox:migrate:up
```

Once they run, you are ready to roll!

## Professional Updating

The ContentBox team can also do the heavy lifting for you as we are a professional open source project. So just contact us and we will update or install any ContentBox instances in a secure and fast way!

## Issues Upgrading

If you encounter any issues upgrading, please make sure you contact us via our [community discourse.](https://community.ortussolutions.com/c/communities/contentbox/15)


---

# Agent Instructions: 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/getting-started/upgrading-contentbox.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.
