# Using API to upload a theme

**URL:** <https://forum.ghost.org/t/using-api-to-upload-a-theme/6511>\
**Category:** Developer help\
**Created:** [March 28, 2019, 3:16pm UTC](https://forum.ghost.org/t/using-api-to-upload-a-theme/6511 "2019-03-28T15:16:21Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![etanb](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/etanb/32/440_2.png) [@etanb](https://forum.ghost.org/u/etanb)\
**Post date:** [March 28, 2019, 3:16pm UTC](https://forum.ghost.org/t/using-api-to-upload-a-theme/6511/1 "2019-03-28T15:16:21Z")

</div>

Hi all,

We’re looking into going into the Ghost Pro universe. We currently have a custom theme that would be awesome to be able to deploy from our CI stack. Is there an API of sorts that we can upload our theme with so we can deploy a new theme every time we update our own private repo instead of going into the hosted them and manually adding it?

---

<div class="post-metadata">

**Author:** ![vikaspotluri123](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/vikaspotluri123/32/24_2.png) [@vikaspotluri123](https://forum.ghost.org/u/vikaspotluri123)\
**Post date:** [March 28, 2019, 3:25pm UTC](https://forum.ghost.org/t/using-api-to-upload-a-theme/6511/2 "2019-03-28T15:25:02Z")

</div>

I made [Ghost Deploy](https://github.com/HexRweb/ghost-deploy/tree/2.0.0) for a similar use case. Version 2.0.0 is not published to npm, but uses the v2 API and is on the branch I linked to. Once the Ghost SDK supports theme activation, I plan on publishing 2.0.0 🙂

---

<div class="post-metadata">

**Author:** ![etanb](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/etanb/32/440_2.png) [@etanb](https://forum.ghost.org/u/etanb)\
**Post date:** [March 28, 2019, 4:02pm UTC](https://forum.ghost.org/t/using-api-to-upload-a-theme/6511/3 "2019-03-28T16:02:23Z")

</div>

Hey there! So this would work with the latest and greatest Ghost Pro? It seems like you’re saying we can currently upload the theme but can’t activate it? What if it replaces the current active theme?

---

<div class="post-metadata">

**Author:** ![vikaspotluri123](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/vikaspotluri123/32/24_2.png) [@vikaspotluri123](https://forum.ghost.org/u/vikaspotluri123)\
**Post date:** [March 28, 2019, 4:08pm UTC](https://forum.ghost.org/t/using-api-to-upload-a-theme/6511/4 "2019-03-28T16:08:02Z")

</div>

That’s correct! I haven’t had a chance to check how uploading a theme to replace the active theme functions, but I think the new theme would run 😃

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex015/uploads/ghost2/original/2X/b/ba9ce5100b8bb264586f4f572545596b2ce3f081.png) [@system](https://forum.ghost.org/u/system)\
**Post date:** [April 11, 2019, 4:08pm UTC](https://forum.ghost.org/t/using-api-to-upload-a-theme/6511/5 "2019-04-11T16:08:05Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
