# How to run Upgrade All from command line?

**URL:** <https://meta.discourse.org/t/how-to-run-upgrade-all-from-command-line/106949>\
**Category:** Product Support\
**Created:** [18 januari 2019 om 23:25 UTC](https://meta.discourse.org/t/how-to-run-upgrade-all-from-command-line/106949 "2019-01-18T23:25:15Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![yanokwa](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/yanokwa/32/105083_2.png) [@yanokwa](https://meta.discourse.org/u/yanokwa)\
**Post date:** [28 februari 2019 om 23:34 UTC](https://meta.discourse.org/t/how-to-run-upgrade-all-from-command-line/106949/3 "2019-02-28T23:34:23Z")

</div>

As of [a few days ago](https://github.com/discourse/docker_manager/pull/52), it’s now possible to do upgrades via API (and thus curl). Thanks to @Osama for helping me with this!

To upgrade all, run this command:

```plaintext
curl -X POST "https:/example.com/admin/docker/upgrade" \
-H "Content-Type: application/x-www-form-urlencoded;" \
-d "path=all" \
-d "api_key=1234" \
-d "api_username=system"

```

`path` can be an absolute link to the plugin repo’s location on disk. So if you want run this on the discourse-solved plugin, you’d set path to `/var/www/discourse/plugins/discourse-solved`

There’s a pretty good API at starting at [docker\_manager/manager-client/app/models/repo.js#L134](https://github.com/discourse/docker_manager/blob/master/manager-client/app/models/repo.js#L134) that lets you find the latest versions, upgrade, and check progress. Don’t forget to the call from POST to GET as necessary.

---

_[View the full topic](https://meta.discourse.org/t/how-to-run-upgrade-all-from-command-line/106949)._
