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:
npm run create [path] [flags]See also the Hugo docs: hugo new.
lint
Check scripts, styles, and markdown for errors:
npm run lintscripts
Check scripts for errors:
npm run lint:scripts [-- --fix]styles
Check styles for errors:
npm run lint:styles [-- --fix]markdown
Check markdown for errors:
npm run lint:markdown [-- --fix]clean
Delete temporary directories:
npm run cleanstart
Start local development server:
npm run startbuild
Build production website:
npm run buildfunctions
Build Lambda functions:
npm run build:functionspreview
Build production website including draft and future content:
npm run build:preview