All apps/Hugo

Hugo

hugo

Hugo is a static site generator.

Runs as hugo|macOS, Linux, Windows|gohugo.io

Command form

ai-draft · 3 tasks · 17 fields

Build the site in the current directory into the destination folder. Use the subcommand tabs for the dev server and new content; modules, imports and generators are left out.

Opens the form; the finished command lands at your prompt, unrun
otty gui hugo
Build siteExample values, fixed in this page — nothing here reaches a terminal
Basic
Minify output
--minify
Advanced
Clean unused cache files after build
--gc
Environment
string
TasksEach one presets the form for one job
Production build
minifygcenvironment
ParametersOnly these flags are editable in the form
Minify output
boolean
--minify
Include drafts
boolean
--buildDrafts
Include future-dated content
boolean
--buildFuture
Clean unused cache files after build
boolean
--gc
Base URL
url
--baseURL
Destination directory
path
--destination
Remove stale files from destination
boolean
--cleanDestinationDir
Environment
string
--environmentproductiondevelopment

hugo server

Run dev server

Serve the site locally with live reload. Press Ctrl+C to stop.

Run dev serverExample values, fixed in this page — nothing here reaches a terminal
Basic
Port
integer
Include drafts
--buildDrafts
TasksEach one presets the form for one job
Serve with drafts
portbuild_drafts
ParametersOnly these flags are editable in the form
Port
integer
--port
Bind address
string
--bind
Include drafts
boolean
--buildDrafts
Include future-dated content
boolean
--buildFuture
Disable live reload
boolean
--disableLiveReload
Navigate to changed content
boolean
--navigateToChanged

hugo new

New content

Create a content file in the current site. Creating a whole site or theme is not covered.

New contentExample values, fixed in this page — nothing here reaches a terminal
Basic
Content path*
string
Archetype
string
TasksEach one presets the form for one job
New post
filekind
ParametersOnly these flags are editable in the form
Content path
Section and file name, for example posts/my-first-post.md.
string · positional 0
Archetype
string
--kinddefault
Open in editor
string
--editor
SourcesEvery flag above is checked against these
fig
completion

github.com

fig
completion

github.com

fig
completion

github.com

Before it fills your prompt, Otty checks the installed hugo against its version. A form that does not match your version is not offered.