Skip to content

Commands Sample

{{< alert icon=โ€๐Ÿ’กโ€ text=โ€œYou can change the commands in the scripts section of ./package.json.โ€ />}}

{{< alert icon=โ€โ˜€โ€ text=โ€œYou can change the commands in the scripts section of ./package.json.โ€ />}}

{{< alert icon=โ€โœŠโ€ text=โ€œYou can change the commands in the scripts section of ./package.json.โ€ />}}

{{< alert icon=โ€โœ‹โ€ text=โ€œYou can change the commands in the scripts section of ./package.json.โ€ />}}

{{< alert icon=โ€โœŒโ€ text=โ€œYou can change the commands in the scripts section of ./package.json.โ€ />}}

{{< alert icon=โ€โœโ€ text=โ€œYou can change the commands in the scripts section of ./package.json.โ€ />}}

{{< alert icon=โ€โšกโ€ text=โ€œYou can change the commands in the scripts section of ./package.json.โ€ />}}

{{< alert icon=โ€โ˜€โ€ text=โ€œYou can change the commands in the scripts section of ./package.json.โ€ />}}

{{< alert icon=โ€โ˜€โ€ text=โ€œYou can change the commands in the scripts section of ./package.json.โ€ />}}

{{< alert icon=โ€โ˜€โ€ text=โ€œYou can change the commands in the scripts section of ./package.json.โ€ />}}

create

Create new content for your site:

Terminal window
npm run create [path] [flags]

See also the Hugo docs: hugo new.

lint

Check scripts, styles, and markdown for errors:

Terminal window
npm run lint

scripts

Check scripts for errors:

Terminal window
npm run lint:scripts [-- --fix]

styles

Check styles for errors:

Terminal window
npm run lint:styles [-- --fix]

markdown

Check markdown for errors:

Terminal window
npm run lint:markdown [-- --fix]

clean

Delete temporary directories:

Terminal window
npm run clean

start

Start local development server:

Terminal window
npm run start

build

Build production website:

Terminal window
npm run build

functions

Build Lambda functions:

Terminal window
npm run build:functions

preview

Build production website including draft and future content:

Terminal window
npm run build:preview