# CLI command to add new content files

**URL:** <https://zola.discourse.group/t/cli-command-to-add-new-content-files/1104>\
**Category:** Feature requests\
**Created:** [December 7, 2021, 5:44pm UTC](https://zola.discourse.group/t/cli-command-to-add-new-content-files/1104 "2021-12-07T17:44:41Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jason](https://yyz2.discourse-cdn.com/free1/user_avatar/zola.discourse.group/jason/32/637_2.png) [@Jason](https://zola.discourse.group/u/Jason)\
**Post date:** [December 7, 2021, 5:44pm UTC](https://zola.discourse.group/t/cli-command-to-add-new-content-files/1104/1 "2021-12-07T17:44:41Z")

</div>

Hey there,

I thought it would be a decent feature to have the option to add content to the project via the cli tool. A few friends/colleges I have introduced to Zola feel the same.

The idea being that you supply the desired path and it creates the subdirectories with their respective \_index.md file as well as the actual content file. Something like:

```auto
zola add -p /sub-folder/my-post -t "My post title"

```

The -t/–file-title being optional.

I have forked the project, created my own branch and built the feature to see if it would work as I planned.

I am not sure if this is within the scope of the Zola project, open to feedback and would appreciate input.

---

<div class="post-metadata">

**Author:** ![keats](https://avatars.discourse-cdn.com/v4/letter/k/34f0e0/32.png) [@keats](https://zola.discourse.group/u/keats)\
**Post date:** [December 7, 2021, 6:32pm UTC](https://zola.discourse.group/t/cli-command-to-add-new-content-files/1104/2 "2021-12-07T18:32:43Z")

</div>

It’s not going to be added to Zola no, it can be replaced with a `cp` call and that will be more effective as the front-matter will already have the structure you need.

---

<div class="post-metadata">

**Author:** ![Jason](https://yyz2.discourse-cdn.com/free1/user_avatar/zola.discourse.group/jason/32/637_2.png) [@Jason](https://zola.discourse.group/u/Jason)\
**Post date:** [December 7, 2021, 6:44pm UTC](https://zola.discourse.group/t/cli-command-to-add-new-content-files/1104/3 "2021-12-07T18:44:21Z")

</div>

Ahh okay I understand, I guess It could be extended to use custom defined front-matter templates within the config.toml.

Either way, thanks for the feedback.

---

<div class="post-metadata">

**Author:** ![keats](https://avatars.discourse-cdn.com/v4/letter/k/34f0e0/32.png) [@keats](https://zola.discourse.group/u/keats)\
**Post date:** [December 7, 2021, 7:58pm UTC](https://zola.discourse.group/t/cli-command-to-add-new-content-files/1104/4 "2021-12-07T19:58:18Z")

</div>

> [@Jason](#):
>
> I guess It could be extended to use custom defined front-matter templates within the config.toml.

That’s partly why I don’t really want to add it. Then you need to add archetypes like Hugo did (maybe still do, I don’t know) and it doesn’t really seem worth the hassle.
