create template

how to create website template using fields through coding.
please share me example code of template.

Hey @MHussain8, Happy Friday!

Thank you for posting in our Community!

I understand you would like to build a website with a new template. There is a massive variety of templates you can use here, which are either free or cost some money to use (more information here)

To our top experts @Anton @alyssamwilie, do you have any recommendations for @MHussain8?

Thank you,

Pam

Hi @MHussain8

You can create templates through the CLI, you can read more about this here: HubSpot CLI commands overview - HubSpot docs

Here you will be able to upload a template file you’ve created maybe on Visual Studio Code Editor using the following command:

hs upload --account=<name> <src> <dest>

Otherwise, you can create templates directly through the UI, you can read about creating templates directly in the design manager here: https://developers.hubspot.com/docs/cms/developer-reference/design-manager