Commands

Doks comes with commands for common tasks.

On this page

💡

You can change the commands in the scripts section of `./package.json`.

create

Create new content for your site:

  1. npm run create [path] [flags]

See also the Hugo docs: hugo new.

lint

Check scripts, styles, and markdown for errors:

  1. npm run lint

scripts

Check scripts for errors:

  1. npm run lint:scripts [-- --fix]

styles

Check styles for errors:

  1. npm run lint:styles [-- --fix]

markdown

Check markdown for errors:

  1. npm run lint:markdown [-- --fix]

clean

Delete temporary directories:

  1. npm run clean

start

Start local development server:

  1. npm run start

build

Build production website:

  1. npm run build

functions

Build Lambda functions:

  1. npm run build:functions

preview

Build production website including draft and future content:

  1. npm run build:preview