We just released a new feature in the [Netlify CLI](https://cli.netlify.com/) to create a site from a template so you can get started with our platform or explore a new framework easily and quickly!

## Getting started

To start using it, first make sure you have the CLI installed on your computer. If not, you can install it by running `npm install -g netlify-cli`.

Then, run the command `netlify sites:create-template` or the shorthand `ntl sites:create-template`. If you are not already logged in, it should take you through the steps to do it, and otherwise, you should be prompted to pick one of our currently available templates.

![screenshot of a terminal window showing the 1st prompt of the command to pick a template](https://cdn.sanity.io/images/o0o2tn5x/production/66ae3caf93b8f6bf63822288b4a0ca062d2f37d0-634x407.png?w=450)

At the moment, our templates include a [Gatsby](https://github.com/netlify-templates/gatsby-starter-netlify-cms) and [Hugo](https://github.com/netlify-templates/one-click-hugo-cms) starter with the Netlify CMS, as well as a [Next.js](https://github.com/netlify-templates/next-netlify-starter) starter. There will be more to come soon so keep an eye out for that if you’re interested! 😃

Once you choose a template, you will be asked to select the team you’d like the site to be deployed under, and pick a site name. You can leave it blank if you want, and a name will automatically be generated for you.

Finally, when the site has been created, the output will show you the admin URL to view the site’s overview in the Netlify UI, the live URL to your site, the site ID and the link to the repository created on GitHub, so you can quickly access what you need.

![screenshot of a terminal window showing the output of the command with the links generated](https://cdn.sanity.io/images/o0o2tn5x/production/71ef3b59c36bf63be0830667df82bdd4111cc28d-622x395.png?w=450)

## Using a custom template

If you’d like to use this feature with another template or if you are a template creator and would like to show people how to easily get started with it, we also provided a way to use this command with a custom template, using the flag `--url` or shorthand `-u`.

For example, running the command `netlify sites:create-template -u https://github.com/sveltejs/template` will automatically fork the template to a new repository in your GitHub account and create a site on Netlify for you.

⚠️ This command only works with repositories that are **template repositories** on GitHub, so with the badge `Public template`. ⚠️

If you are using this command with a custom template and the deploy fails, make sure to double check the repository’s default branch; if it is `master`, we’d recommend updating it to `main`, otherwise you can also change the production branch setting in Netlify under Site settings > Build & Deploy > Branches, from `main` to `master`.

## Wrapping up

We hope you try it out! We’re continuously releasing new templates that will be available via the CLI. Check back in to see what’s new and if you want to see a template for your favourite framework, ping us at [templates@netlify.com](mailto:templates@netlify.com).

### Share

-   [X (fka Twitter)](https://twitter.com/intent/tweet?text=Create a site from a template using the Netlify CLI&url=https://www.netlify.com/blog/create-a-site-from-a-template-using-the-netlify-cli/)
-   [LinkedIn](https://www.linkedin.com/shareArticle?mini=true&url=https%3A%2F%2Fwww.netlify.com%2Fblog%2Fcreate-a-site-from-a-template-using-the-netlify-cli%2F)
-   [Facebook](https://www.facebook.com/sharer.php?u=https://www.netlify.com/blog/create-a-site-from-a-template-using-the-netlify-cli/)
-   [Bluesky](https://bsky.app/intent/compose?text=Create a site from a template using the Netlify CLI+https://www.netlify.com/blog/create-a-site-from-a-template-using-the-netlify-cli/)

* * *

### Tags

-   [CLI](/blog/tags/cli/)
-   [Netlify CLI](/blog/tags/netlify-cli/)
-   [templates](/blog/tags/templates/)

## Keep reading

![](/_astro/3f45eb6eda4ea8814be310e3df4a7883a5bd9ba0-1200x675_ZcBDUS.webp)

Guides & Tutorials May 15, 2026

[

### How to build a real-time AI chatbot in minutes with Netlify Agent Runners (no backend)

](/blog/how-to-build-a-real-time-ai-chatbot-in-minutes-with-netlify-agent-runners-no-backend)

-   ![Profile picture of Nahrin Jalal](/_astro/f0e7c8f227a03fe58340c99ef5439d5a896c0733-272x272_Z23kDpD.webp)
    
    Nahrin Jalal
    

![](/_astro/8fe9e8a23f944c9912003233d99a2df7fee637cf-1600x900_Z1gMhmf.webp)

Guides & Tutorials May 15, 2026

[

### Tracking AI search traffic: how to use Netlify Log Drains to maximize AEO

](/blog/tracking-ai-search-traffic)

-   ![Profile picture of Nahrin Jalal](/_astro/f0e7c8f227a03fe58340c99ef5439d5a896c0733-272x272_Z23kDpD.webp)
    
    Nahrin Jalal
    

## Recent posts

News & Announcements June 25, 2026

[

### Netlify Functions, designed for Agent Experience

](/blog/netlify-functions-designed-for-agent-experience)

-   ![Profile picture of Eduardo Bouças](/_astro/52958f21e8450baf6d8e60302341a984e220c0cd-512x512_13VDlu.webp)
    
    Eduardo Bouças
    

News & Announcements June 24, 2026

[

### How we measure Netlify’s Agent Experience

](/blog/how-we-measure-netlify-agent-experience)

-   ![Profile picture of Sean Roberts](/_astro/bbf2243f8171dbddd80ab2103622106cef84d125-512x512_Z1d2LKE.webp)
    
    Sean Roberts
    

Guides & Tutorials May 15, 2026

[

### How to build a real-time AI chatbot in minutes with Netlify Agent Runners (no backend)

](/blog/how-to-build-a-real-time-ai-chatbot-in-minutes-with-netlify-agent-runners-no-backend)

-   ![Profile picture of Nahrin Jalal](/_astro/f0e7c8f227a03fe58340c99ef5439d5a896c0733-272x272_Z23kDpD.webp)
    
    Nahrin Jalal
    

![](/_astro/3f255b372fa958df35802666ee33b4609b2d71bd-1200x1586_1VtE2D.webp)

### How do the best dev and marketing teams work together?

[Access the report](https://www.netlify.com/reports/2024-leadership-trend-report/access/)