1
mirror of https://github.com/jakejarvis/hugo-extended.git synced 2025-10-16 06:04:27 -04:00

Update README.md

This commit is contained in:
XhmikosR
2023-03-15 07:22:31 +02:00
committed by GitHub
parent 725dbdfb83
commit de6249b42c

View File

@@ -32,14 +32,20 @@ execFile(hugo, ['version'], (error, stdout) => {
### CLI
```sh
# older npm
$(npm bin)/hugo --help
# newer npm
npm exec hugo help
npm run create -- post/my-new-post.md # see below 'npm run-script'
```
or on Windows:
```bat
rem older npm
for /f "delims=" %F in ('npm bin') do call "%F\hugo" help
rem newer npm
npm exec hugo help
rem see below 'npm run-script'
npm run create -- post/my-new-post.md
```