Development Tools

Code with confidence. Check styles, scripts, and markdown for errors and fix automatically or manually.

On this page

Linting

See also: lint

Development server

💡

Get your local IP address by running netstat -r from the command line. Your IP address will be in the first (Destination) column.

Doks makes the Hugo development webserver accessible by default at http://localhost:1313 and http://<local-ip-address>:1313. The latter is handy for e.g. testing locally on mobile devices. Saved changes will live reload in the browser.

Netlify DEV

Doks’ ./netlify.toml excerpt:

  1. [dev]
  2. framework = "#custom"
  3. command = "npx rimraf public resources functions && npx hugo server --bind=0.0.0.0 --disableFastRender"
  4. targetPort = 1313
  5. port = 8888
  6. publish = "public"
  7. autoLaunch = false

See also the Netlify docs: What is Netlify Dev?

Hyas CLI

See also the Hyas docs:

GitHub CLI

See also the GitHub docs:

Netlify CLI

See also the Netlify docs: