Hugo has a website and documentation. So the smartest way to install it is to follow instructions in the “open_in_new Install Hugo ” article.
But I like using Docker.
Commands
Build a website:
hugo
docker run --rm -it \
-v "$(pwd):/src" \
-u $(id -u):$(id -g) \
klakegg/hugo
Run a server:
hugo server
docker run --rm -it \
-v "$(pwd):/src" \
-u $(id -u):$(id -g) \
-p 1313:1313 \
klakegg/hugo \
server
Check version:
hugo version
docker run --rm -it \
-v "$(pwd):/src" \
-u $(id -u):$(id -g) \
klakegg/hugo \
version
Andrew Dorokhov