Using frequently-used Hugo commands by shell.

Source: hugo-fixit/hugo-shell

Contents
Warning
This article was last updated on 2025-09-12, the content may be out of date.

Hugo Shell

Using frequently-used Hugo commands by shell.

Download

Add a submodule for your Hugo blog project.

1
git submodule add https://github.com/hugo-fixit/hugo-shell.git your_hugo_blog/.shell

Usage

Run hugo_main.sh to choice frequently-used Hugo commands:

1
cd .shell && sh hugo_main.sh
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
--------------Hugo Admin--------------
Please enter the serial number to work
--------------------------------------
1. post
2. server
3. server:production
4. build
5. submodule-sync
6. push
--------------------------------------
Press Ctrl+C to stop

Related Content

Buy me a coffee
hugo-fixit AlipayAlipay
hugo-fixit WeChat PayWeChat Pay

Update Available

A new version of this site is available.