Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
XhmikosR committed Mar 15, 2023
1 parent 725dbdf commit de6249b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```
Expand Down

0 comments on commit de6249b

Please sign in to comment.