Forrest logo
back to the hugo tool

hugo:tldr:7eb64

hugo: Create a new Hugo site.
$ hugo new site ${path-to-site}
try on your machine

The command "hugo new site ${path-to-site}" is used to create a new Hugo website at the specified path.

Here's a breakdown of the command:

  • "hugo": This is the command to invoke the Hugo static site generator.
  • "new site": This is a subcommand of Hugo that tells it to create a new site.
  • "${path-to-site}": This is a placeholder variable where you should provide the desired path or directory name for your new Hugo site.

When you run this command, Hugo will create a new directory at the specified path, containing the necessary files and folders for a basic Hugo site. These files include the site configuration file, content directory, theme directory, and other default files.

After running this command, you can go to the specified path and start customizing your site by adding content, modifying the configuration, choosing a theme, and more.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the hugo tool