<p>You <em>could</em> go through all of that effort, or you could just wait until the plugin store gets finished and any plugin that is listed in the store will get automatic updating for free nicely integrated into Craft's auto-updating functionality. :)</p>

CC BY-SA 3.0
2014-10-21T18:52:48.407Z
I for one can't wait for the Craft plugin store. I'm all set and ready to go when you guys are! ;)
Justin Kimbrell
CC BY-SA 3.0
2016-05-03T13:41:24.707Z
It will take some time...
http://feedback.craftcms.com/forums/285221-feature-requests/suggestions/7194005-official-plugin-store
Diederik
CC BY-SA 3.0
2014-10-21T14:52:44.113Z
2014-10-21T15:00:18.213Z
2014-10-21T15:00:18.213Z
Brad Bell
<p>I’ve been developing my first Craft plugin and I think it would be really cool to be able to offer auto-updating for it, is there a way to hook into the update page you would use to update Craft? or is this something that could happen in the future?</p>

<p>I understand you could probably achieve this manually, I’ve seen a couple of plugins do this but then on later updates some remove this functionality, is this not a good idea to try and do? is it worth looking into how Craft does this in the core files and try to tap into that or would that be a big no no…</p>

<p>The way I was thinking of achieving this manually myself is:</p>

<ul>
<li>Deploy a base version on my own server</li>
<li>Create a service that talks(Guzzle?) to the server to check the users version against the server version</li>
<li>Look into the methods that Craft uses to copy and back up
files and use those methods to update the plugin if needed</li>
</ul>

<p>Any pointers or info would be appreciated,</p>

<p>Thanks!</p>

CC BY-SA 3.0
2014-10-21T14:54:08.343Z
That sounds a bit scary personally. As a user, I would probably prefer that plugin developers not attempt this without having a uniform system in place. I currently use .git submodules whenever possible, which essentially does the same anyway.
Douglas McDonald
CC BY-SA 3.0
2014-10-21T14:59:46.020Z
Yeah I see what you mean, as Brad mentioned I think waiting for the plugin store is the best way to go! :)
Alec Ritson
<plugin-development>
Is is possible to allow auto-updates for a plugin?
# Is is possible to allow auto-updates for a plugin?

(Asked by: username_0 on 2014-10-21)

I’ve been developing my first Craft plugin and I think it would be really cool to be able to offer auto-updating for it, is there a way to hook into the update page you would use to update Craft? or is this something that could happen in the future?

I understand you could probably achieve this manually, I’ve seen a couple of plugins do this but then on later updates some remove this functionality, is this not a good idea to try and do? is it worth looking into how Craft does this in the core files and try to tap into that or would that be a big no no…

The way I was thinking of achieving this manually myself is:

* Deploy a base version on my own server
* Create a service that talks(Guzzle?) to the server to check the users version against the server version
* Look into the methods that Craft uses to copy and back up
  files and use those methods to update the plugin if needed

Any pointers or info would be appreciated,

Thanks!

**Tags:** plugin-development

> **Comments:**
> **username_1**: That sounds a bit scary personally. As a user, I would probably prefer that plugin developers not attempt this without having a uniform system in place. I currently use .git submodules whenever possible, which essentially does the same anyway.  
> **username_0**: Yeah I see what you mean, as Brad mentioned I think waiting for the plugin store is the best way to go! :)  

---

## 1 answers

### Answer by username_2 on 2014-10-21. Score: 4 | Accepted answer

You *could* go through all of that effort, or you could just wait until the plugin store gets finished and any plugin that is listed in the store will get automatic updating for free nicely integrated into Craft's auto-updating functionality. :)

> **Comments:**
> **username_3**: I for one can't wait for the Craft plugin store. I'm all set and ready to go when you guys are! ;)  
> **username_4**: It will take some time... http://feedback.craftcms.com/forums/285221-feature-requests/suggestions/7194005-official-plugin-store  

---

