# Template staging

**URL:** <https://community.hubspot.com/t/template-staging/29592>\
**Category:** CMS Development\
**Tags:** professional\
**Created:** [December 30, 2020, 10:36am UTC](https://community.hubspot.com/t/template-staging/29592 "2020-12-30T10:36:23Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![AdamPokora](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/adampokora/32/14727_2.png) [@AdamPokora](https://community.hubspot.com/u/AdamPokora)\
**Post date:** [December 30, 2020, 10:36am UTC](https://community.hubspot.com/t/template-staging/29592/1 "2020-12-30T10:36:23Z")

</div>

Hi Team,

We’re developing custom pages/templates/sites with custom JS for our client (which are live) and we’re still wondering, how we can build/manage to stage our development sites? Any tips on how can we modify our custom site/template with a staging site and then push the changes to the template and production?

Best,

Adam

---

<div class="post-metadata">

**Author:** ![Anton](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/anton/32/103167_2.png) [@Anton](https://community.hubspot.com/u/Anton)\
**Post date:** [December 30, 2020, 11:17am UTC](https://community.hubspot.com/t/template-staging/29592/2 "2020-12-30T11:17:37Z")

</div>

Hi @AdamPokora,

you have at least these two options:

- create a new, free development Hub [here](https://developers.hubspot.com/get-started) to create new templates

- build the theme/templates in the current hub

If you’re developing a theme I would recommend to use the CLI - if you don’t use it already. It makes the live of a developer much easier and it’s quite simple with a development hub.

Working with Staging in general is quite a charm

phase existing pages to the staging environment as described [here](https://knowledge.hubspot.com/cms-general/redesign-and-relaunch-your-site-with-content-staging) and then change the templates of the “phased” pages. Notice: If you “phase” a page with existing content it might get lost in the staging. After you’ve finished with your changes push it to live environment from the staging - you’re done. The “old” page/content will be overwritten with the new one which was pushed from staging.

Tipp: If you’re using local development with CLI you can even [connect it to Github](https://developers.hubspot.com/docs/cms/guides/github-integration)

hope this helps

best,

Anton
