Skip to content

Creating a new site

Devin edited this page Jul 1, 2020 · 4 revisions

You can use the frontman init command to create a new Frontman website.

The following command creates a new directory my-project and initializes a new project with default Frontman starter template.

frontman init my-project

To initialize a new Frontman project in the current directory, you can run:

frontman init .

Project templates

Frontman provides two starter templates out of the box: a default and a webpack starter template. The default template is a minimal site with the assets in the public directory. The webpack starter template has a basic Webpack setup to allow for a more complex assets pipeline.

By default, Frontman uses the default starter template. If you want to use the Webpack starter template, you can use the --template=webpack option when initializing your project:

frontman init my-project --template=webpack