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

# Updating

> Install a newer version automatically from Settings → Updates, or download it and upload it yourself

With an active license, Affiliate Manager checks once a day whether a newer version exists. When it does, a **banner appears on the dashboard** and a **blue dot appears on Settings → Updates**.

> [!NOTE]
>
> The Updates tab, automatic update and update notice arrived in versions 0.3.0 to 0.3.2. If your install is older, upload the new release over it once (see the manual steps below); from then on the tab is there.

## The Updates tab

Open **Settings → Updates**. It shows the version you are running, when it last checked, and a **Check for updates** button. When a newer version exists it shows what is new and two options side by side.

> [!WARNING]
>
> **Back up your database first, whichever you choose.** From version 0.3.5, **Settings → Backups** does it in one click (see [Backups](https://docs.azvian.com/affiliate-manager/backups.md)); otherwise export it with phpMyAdmin or your host's backup tool. An update never overwrites your `.env`, settings or uploads, but a backup is what lets you undo anything.

> [tab] Update automatically
>
> 1. Back up your database.
> 2. Tick **I have backed up my database** (the button stays disabled until you do).
> 3. Press **Update to version X now** and keep the page open.
>
> What happens:
>
> * The app downloads the new version and checks that it is **this product** and **exactly the version offered**, and that it contains no unsafe file paths.
> * Your site shows a short "back soon" page for a few seconds while the program files are swapped.
> * Every file it replaces is first copied to `storage/app/updates/backup-…`. If anything fails halfway, every file is put back and the page tells you.
> * Your `.env`, `storage/` and database are **never** overwritten by the files.
> * The database is upgraded on the next page load.
>
> Afterwards the Updates tab says "Updated from 0.3.1 to 0.3.2" and tells you where the backup folder is. If something looks wrong, copy those files back over the installation. Delete the backup folder when you are happy; only the newest backup is kept.
>
> If the page times out, wait a minute and reload it: the update continues on the server even if the browser gives up.
>
> > [!NOTE]
> >
> > The automatic option is replaced by the reason when your hosting cannot do it: the web server may not be allowed to change its own files, the public folder may be somewhere else, PHP's zip extension may be off, there may be less than 200 MB free, or the app is running in a **Docker container** (changes inside a container are lost on the next rebuild; deploy the new version instead). Use the manual update then.

> [tab] Update manually
>
> 1. Back up your database.
> 2. Press **Download version X**. The link works for 15 minutes; press the button again if it expired.
> 3. Unzip the download on your computer.
> 4. Upload its contents over the files on your hosting. **Keep your `.env` file and the `storage` folder**: do not replace them.
> 5. Open your site. The database brings itself up to date on the first visit, and the banner disappears.

## Good to know

* A new version appears only for a **valid license** that covers updates, and only after Azvian has published it.
* Files that a new version no longer includes are left in place. They are harmless.
* Your copy keeps working whether or not you update.
* A development copy (not the official zip) cannot check for updates.
* If the check cannot reach `api.azvian.com`, the Updates tab keeps the last answer and says the check failed.

## Not seeing an update?

Open **Settings → License** and confirm the status is **Active**; the Updates tab asks for an active license. Then press **Check for updates** and read any message under the button.


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