Merge commit 'a024bc7d76fcc5e49e8210f9b0896db9ef21861a'

This commit is contained in:
Bjørn Erik Pedersen
2025-02-13 10:40:34 +01:00
817 changed files with 5301 additions and 14766 deletions

View File

@@ -0,0 +1,12 @@
---
title: Command line interface
linkTitle: CLI
description: Use the command line interface (CLI) to manage your site.
categories: []
keywords: []
menu:
docs:
parent: commands
weight: 10
weight: 10
---

View File

@@ -38,6 +38,6 @@ Generate documentation for your project using Hugo's documentation engine, inclu
* [hugo](/commands/hugo/) - Build your site
* [hugo gen chromastyles](/commands/hugo_gen_chromastyles/) - Generate CSS stylesheet for the Chroma code highlighter
* [hugo gen doc](/commands/hugo_gen_doc/) - Generate Markdown documentation for the Hugo CLI.
* [hugo gen doc](/commands/hugo_gen_doc/) - Generate Markdown documentation for the Hugo CLI
* [hugo gen man](/commands/hugo_gen_man/) - Generate man pages for the Hugo CLI

View File

@@ -5,7 +5,7 @@ url: /commands/hugo_gen_doc/
---
## hugo gen doc
Generate Markdown documentation for the Hugo CLI.
Generate Markdown documentation for the Hugo CLI
### Synopsis

View File

@@ -48,12 +48,12 @@ See https://gohugo.io/hugo-modules/ for more information.
### SEE ALSO
* [hugo](/commands/hugo/) - Build your site
* [hugo mod clean](/commands/hugo_mod_clean/) - Delete the Hugo Module cache for the current project.
* [hugo mod get](/commands/hugo_mod_get/) - Resolves dependencies in your current Hugo Project.
* [hugo mod graph](/commands/hugo_mod_graph/) - Print a module dependency graph.
* [hugo mod init](/commands/hugo_mod_init/) - Initialize this project as a Hugo Module.
* [hugo mod npm](/commands/hugo_mod_npm/) - Various npm helpers.
* [hugo mod tidy](/commands/hugo_mod_tidy/) - Remove unused entries in go.mod and go.sum.
* [hugo mod vendor](/commands/hugo_mod_vendor/) - Vendor all module dependencies into the _vendor directory.
* [hugo mod verify](/commands/hugo_mod_verify/) - Verify dependencies.
* [hugo mod clean](/commands/hugo_mod_clean/) - Delete the Hugo Module cache for the current project
* [hugo mod get](/commands/hugo_mod_get/) - Resolves dependencies in your current Hugo project
* [hugo mod graph](/commands/hugo_mod_graph/) - Print a module dependency graph
* [hugo mod init](/commands/hugo_mod_init/) - Initialize this project as a Hugo Module
* [hugo mod npm](/commands/hugo_mod_npm/) - Various npm helpers
* [hugo mod tidy](/commands/hugo_mod_tidy/) - Remove unused entries in go.mod and go.sum
* [hugo mod vendor](/commands/hugo_mod_vendor/) - Vendor all module dependencies into the _vendor directory
* [hugo mod verify](/commands/hugo_mod_verify/) - Verify dependencies

View File

@@ -5,7 +5,7 @@ url: /commands/hugo_mod_clean/
---
## hugo mod clean
Delete the Hugo Module cache for the current project.
Delete the Hugo Module cache for the current project
### Synopsis

View File

@@ -5,19 +5,19 @@ url: /commands/hugo_mod_get/
---
## hugo mod get
Resolves dependencies in your current Hugo Project.
Resolves dependencies in your current Hugo project
### Synopsis
Resolves dependencies in your current Hugo Project.
Resolves dependencies in your current Hugo project.
Some examples:
Install the latest version possible for a given module:
hugo mod get github.com/gohugoio/testshortcodes
Install a specific version:
hugo mod get github.com/gohugoio/testshortcodes@v0.3.0

View File

@@ -5,7 +5,7 @@ url: /commands/hugo_mod_graph/
---
## hugo mod graph
Print a module dependency graph.
Print a module dependency graph
### Synopsis

View File

@@ -5,15 +5,15 @@ url: /commands/hugo_mod_init/
---
## hugo mod init
Initialize this project as a Hugo Module.
Initialize this project as a Hugo Module
### Synopsis
Initialize this project as a Hugo Module.
It will try to guess the module path, but you may help by passing it as an argument, e.g:
hugo mod init github.com/gohugoio/testshortcodes
Note that Hugo Modules supports multi-module projects, so you can initialize a Hugo Module
inside a subfolder on GitHub, as one example.

View File

@@ -5,7 +5,7 @@ url: /commands/hugo_mod_npm/
---
## hugo mod npm
Various npm helpers.
Various npm helpers
### Synopsis
@@ -41,5 +41,5 @@ hugo mod npm [command] [flags]
### SEE ALSO
* [hugo mod](/commands/hugo_mod/) - Manage modules
* [hugo mod npm pack](/commands/hugo_mod_npm_pack/) - Experimental: Prepares and writes a composite package.json file for your project.
* [hugo mod npm pack](/commands/hugo_mod_npm_pack/) - Experimental: Prepares and writes a composite package.json file for your project

View File

@@ -5,14 +5,14 @@ url: /commands/hugo_mod_npm_pack/
---
## hugo mod npm pack
Experimental: Prepares and writes a composite package.json file for your project.
Experimental: Prepares and writes a composite package.json file for your project
### Synopsis
Prepares and writes a composite package.json file for your project.
On first run it creates a "package.hugo.json" in the project root if not already there. This file will be used as a template file
with the base dependency set.
with the base dependency set.
This set will be merged with all "package.hugo.json" files found in the dependency tree, picking the version closest to the project.
@@ -55,5 +55,5 @@ hugo mod npm pack [flags] [args]
### SEE ALSO
* [hugo mod npm](/commands/hugo_mod_npm/) - Various npm helpers.
* [hugo mod npm](/commands/hugo_mod_npm/) - Various npm helpers

View File

@@ -5,7 +5,7 @@ url: /commands/hugo_mod_tidy/
---
## hugo mod tidy
Remove unused entries in go.mod and go.sum.
Remove unused entries in go.mod and go.sum
```
hugo mod tidy [flags] [args]

View File

@@ -5,7 +5,7 @@ url: /commands/hugo_mod_vendor/
---
## hugo mod vendor
Vendor all module dependencies into the _vendor directory.
Vendor all module dependencies into the _vendor directory
### Synopsis

View File

@@ -5,7 +5,7 @@ url: /commands/hugo_mod_verify/
---
## hugo mod verify
Verify dependencies.
Verify dependencies
### Synopsis

View File

@@ -94,5 +94,5 @@ hugo server [command] [flags]
### SEE ALSO
* [hugo](/commands/hugo/) - Build your site
* [hugo server trust](/commands/hugo_server_trust/) - Install the local CA in the system trust store.
* [hugo server trust](/commands/hugo_server_trust/) - Install the local CA in the system trust store

View File

@@ -5,7 +5,7 @@ url: /commands/hugo_server_trust/
---
## hugo server trust
Install the local CA in the system trust store.
Install the local CA in the system trust store
```
hugo server trust [flags] [args]