# \#cli

**URL:** https://discourse.gohugo.io/tag/cli/25.md

[Latest](https://discourse.gohugo.io/latest.md) · [Categories](https://discourse.gohugo.io/categories.md) · [Tags](https://discourse.gohugo.io/tags.md)

---

## [Unmarshal failed: toml: invalid character at start of key](https://discourse.gohugo.io/t/unmarshal-failed-toml-invalid-character-at-start-of-key/47172)

<div class="topic-metadata">

**Author:** [@Steadywork](https://discourse.gohugo.io/u/Steadywork)\
**Replies:** 2\
**Last updated:** [November 21, 2023, 4:35am UTC](https://discourse.gohugo.io/t/unmarshal-failed-toml-invalid-character-at-start-of-key/47172 "2023-11-21T04:35:29Z")

</div>

Looking for assistance I am currently having trouble loading a theme through the cli of a theme I’m using called resume. The CLI I’m attempting to execute is ‘hugo -t, --themeDir’. After some testing on the error log for…

---

## [Hugo new bash tab-completion](https://discourse.gohugo.io/t/hugo-new-bash-tab-completion/47165)

<div class="topic-metadata">

**Author:** [@jarshvor](https://discourse.gohugo.io/u/jarshvor)\
**Replies:** 2\
**Last updated:** [November 20, 2023, 1:32pm UTC](https://discourse.gohugo.io/t/hugo-new-bash-tab-completion/47165 "2023-11-20T13:32:16Z")

</div>

I am wondering if I am using tab-completion in bash correctly for the ‘hugo new’ command or if there is something I am missing. I make new content via, e.g: hugo new content posts/my-first-post/index.md I get tab-comp…

---

## [Have \`hugo new content\` create subfolder?](https://discourse.gohugo.io/t/have-hugo-new-content-create-subfolder/46356)

<div class="topic-metadata">

**Author:** [@dkozel](https://discourse.gohugo.io/u/dkozel)\
**Replies:** 1\
**Last updated:** [September 22, 2023, 10:42pm UTC](https://discourse.gohugo.io/t/have-hugo-new-content-create-subfolder/46356 "2023-09-22T22:42:09Z")

</div>

Hello, I have a pretty simple personal website with post and project pages. I’m trying to add archetypes because that feels “right” and I’d like to have hugo new content work properly. I’ve gotten a basic page archetype…

---

## [Relative path for --contentDir with --source](https://discourse.gohugo.io/t/relative-path-for-contentdir-with-source/42314)

<div class="topic-metadata">

**Author:** [@merchako](https://discourse.gohugo.io/u/merchako)\
**Replies:** 0\
**Last updated:** [January 8, 2023, 8:11pm UTC](https://discourse.gohugo.io/t/relative-path-for-contentdir-with-source/42314 "2023-01-08T20:11:51Z")

</div>

The --contentDir \<path\> option gives CLI users a way to specify an alternative content directory for building or serving Hugo. The docs don’t indicate which directory this path is relative to, so if you also use the --so…

---

## [Hugo OS env vars question](https://discourse.gohugo.io/t/hugo-os-env-vars-question/42153)

<div class="topic-metadata">

**Author:** [@razon](https://discourse.gohugo.io/u/razon)\
**Replies:** 3\
**Last updated:** [December 31, 2022, 11:21am UTC](https://discourse.gohugo.io/t/hugo-os-env-vars-question/42153 "2022-12-31T11:21:42Z")

</div>

I found that Hugo CLI doesn’t pick up the OS env vars in this way. $ echo $HUGO\_MODULE\_PROXY https://goproxy.cn $ echo $HUGO\_CACHEDIR /home/razonyang/.cache/hugo $ hugo server -p 13131 I store those env vars insi…

---

## [How to generate 1 page (of many)](https://discourse.gohugo.io/t/how-to-generate-1-page-of-many/41304)

<div class="topic-metadata">

**Author:** [@TomOnTime](https://discourse.gohugo.io/u/TomOnTime)\
**Replies:** 2\
**Last updated:** [November 6, 2022, 12:54am UTC](https://discourse.gohugo.io/t/how-to-generate-1-page-of-many/41304 "2022-11-06T00:54:45Z")

</div>

I have a working Hugo site. It has hundreds of pages. However there are times I just want to regenerate a single page. I know that hugo is super fast, often rendering hundreds or thousands of pages per second. However …

---

## [Let \`hugo convert toTOML\` not add unnecessary indentation](https://discourse.gohugo.io/t/let-hugo-convert-totoml-not-add-unnecessary-indentation/40002)

<div class="topic-metadata">

**Author:** [@cshoredaniel](https://discourse.gohugo.io/u/cshoredaniel)\
**Replies:** 2\
**Last updated:** [August 15, 2022, 1:22am UTC](https://discourse.gohugo.io/t/let-hugo-convert-totoml-not-add-unnecessary-indentation/40002 "2022-08-15T01:22:44Z")

</div>

I just tried out the hugo convert toTOML command on a repo and it worked quite nicely with one nit: I prefer my TOML not to be indented (it’s not required, avoids ‘tabs-vs-space’ debate (and how many spaces if you do us…

---

## [With hugo --gc, panic: Readdirnames with positive n not implemented](https://discourse.gohugo.io/t/with-hugo-gc-panic-readdirnames-with-positive-n-not-implemented/38220)

<div class="topic-metadata">

**Author:** [@cshoredaniel](https://discourse.gohugo.io/u/cshoredaniel)\
**Replies:** 2\
**Last updated:** [April 16, 2022, 4:45am UTC](https://discourse.gohugo.io/t/with-hugo-gc-panic-readdirnames-with-positive-n-not-implemented/38220 "2022-04-16T04:45:45Z")

</div>

@bep @jmooring Known issue or do you need me to do up a test case, and more details, etc? Start building sites … hugo v0.97.0-c07f3626e7c8160943591f4d209977efa02c3dca+extended linux/amd64 BuildDate=2022-04-14T08:45:07Z…

---

## [Using --source results in public and resources below --source](https://discourse.gohugo.io/t/using-source-results-in-public-and-resources-below-source/35723)

<div class="topic-metadata">

**Author:** [@cshoredaniel](https://discourse.gohugo.io/u/cshoredaniel)\
**Replies:** 2\
**Last updated:** [November 24, 2021, 11:42pm UTC](https://discourse.gohugo.io/t/using-source-results-in-public-and-resources-below-source/35723 "2021-11-24T23:42:44Z")

</div>

Perhaps my search-fu is simply not sufficient, but I can’t tell from the Docs whether this is expected behaviour, but when I use hugo --source src then public and resources are created in src unless I also using --destin…
