Tutorial: Install Hugo by Asdf

Introduction

This is a guide to install Hugo by Asdf.

Install Asdf

First, install Asdf by following the instructions on the official website.

Install Hugo

After installing Asdf, run the following command to install Hugo:

asdf plugin add hugo
# or
asdf plugin add hugo https://github.com/NeoHsu/asdf-hugo.git

Then, install the desired version of Hugo:

# Show all installable versions
asdf list-all hugo

# Install specific version
asdf install hugo latest

# Set a version globally (on your ~/.tool-versions file)
asdf global hugo latest

# Now hugo commands are available
hugo version

Extended for builds for Sass/SCSS:

# Install extended hugo version
asdf install hugo extended_0.85.0

# Now you can manage it like you're used to
asdf global hugo extended_0.85.0

Conclusion

Now you have Hugo installed by Asdf. Enjoy!

Blog

This site is a personal blog where I will share my knowledge and record my ideas (no matter how crazy they may seem XD).


Install Hugo by Asdf

By Hugo Authors, Asdf Authors, NeoHsu, 2025-01-14