# Please post the proper Composer CLI commands for upgrading Mautic 4x

**URL:** https://forum.mautic.org/t/please-post-the-proper-composer-cli-commands-for-upgrading-mautic-4x/25942
**Category:** Product Support
**Tags:** mautic-4
**Created:** [November 3, 2022, 7:45pm UTC](https://forum.mautic.org/t/please-post-the-proper-composer-cli-commands-for-upgrading-mautic-4x/25942 "2022-11-03T19:45:11Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![johnwick](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/johnwick/32/3279_2.png) [@johnwick](https://forum.mautic.org/u/johnwick)
#### Post date: [November 3, 2022, 7:45pm UTC](https://forum.mautic.org/t/please-post-the-proper-composer-cli-commands-for-upgrading-mautic-4x/25942/1 "2022-11-03T19:45:11Z")

</div>

The [documentation](https://docs.mautic.org/en/setup/how-to-install-mautic/install-and-manage-mautic-with-composer) on the Mautic website for installing and upgrading Mautic using Composer is confusing and, if followed, causes Mautic to delete the configuration file, knocking Mautic offline. We had to restore from the backup because of this.

What are the exact commands to upgrade Mautic via Composer at the CLI?

---

<div class="post-metadata">

### Author: ![mzagmajster](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/mzagmajster/32/687_2.png) [@mzagmajster](https://forum.mautic.org/u/mzagmajster)
#### Post date: [November 3, 2022, 11:26pm UTC](https://forum.mautic.org/t/please-post-the-proper-composer-cli-commands-for-upgrading-mautic-4x/25942/2 "2022-11-03T23:26:46Z")

</div>

As I understood one other posted that outlined this - the fact that config gets deleted is something that will not get addressed before mautic 5.x.

Before each update **always** of mautic, no matter how small please backup full database and source
