All apps/Hexo

Hexo

hexo

Command line interface for Hexo, a static site generator.

Runs as hexo|macOS, Linux, Windows|hexo.io

Command form

ai-draft · 3 tasks · 12 fields

Common Hexo blog jobs: create a post, generate the site and run the local server. Deploy, migrate and init are left out.

Opens the form; the finished command lands at your prompt, unrun
otty gui hexo

hexo new

Create a post

Create a new article from a layout.

Create a postExample values, fixed in this page — nothing here reaches a terminal
Basic
Layout
string
Title*
string
Slug
string
Replace existing
--replace
TasksEach one presets the form for one job
New post
layouttitleslugreplace
ParametersOnly these flags are editable in the form
Layout
string · positional 0
postpagedraft
Title
string · positional 1
Slug
string
--slug-s
Replace existing
boolean
--replace-r

hexo generate

Generate static files

Generate the static site into the public folder.

Generate static filesExample values, fixed in this page — nothing here reaches a terminal
Basic
Force regenerate
--force
Watch for changes
--watch
Fail on errors
--bail
Deploy afterwards
--deploy
TasksEach one presets the form for one job
Generate
forcewatchbaildeploy
ParametersOnly these flags are editable in the form
Deploy afterwards
boolean
--deploy-d
Force regenerate
boolean
--force-f
Watch for changes
boolean
--watch-w
Fail on errors
boolean
--bail-b

hexo server

Start local server

Serve the site locally, by default at http://localhost:4000/.

Start local serverExample values, fixed in this page — nothing here reaches a terminal
Basic
Port
integer
IP address
string
Static only
--static
Open in browser
--open
TasksEach one presets the form for one job
Serve locally
portipstaticopen
ParametersOnly these flags are editable in the form
IP address
string
--ip-i
Port
integer
--port-p
Static only
boolean
--static-s
Open in browser
boolean
--open-o
SourcesEvery flag above is checked against these
fig
completion

github.com

fig
completion

github.com

fig
completion

github.com

fig
completion

github.com

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