# CLI to create the Narrated Web Site report

**URL:** <https://gramps.discourse.group/t/cli-to-create-the-narrated-web-site-report/4617>\
**Category:** Help\
**Created:** [January 3, 2024, 8:54pm UTC](https://gramps.discourse.group/t/cli-to-create-the-narrated-web-site-report/4617 "2024-01-03T20:54:43Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jens](https://yyz2.discourse-cdn.com/free1/user_avatar/gramps.discourse.group/jens/32/2557_2.png) [@Jens](https://gramps.discourse.group/u/Jens)\
**Post date:** [January 3, 2024, 8:54pm UTC](https://gramps.discourse.group/t/cli-to-create-the-narrated-web-site-report/4617/1 "2024-01-03T20:54:43Z")

</div>

For publishing to my website I would like to write a small bash script that I can just execute to automate the necessary steps. That is, first do the Narrated Web Site report creation, then afterwards some `rsync` or ftp command to upload.

For the first part is there some kind of CLI ([command line](https://gramps-project.org/wiki/index.php/Gramps_5.2_Wiki_Manual_-_Command_Line) option) to create the Narrated Web Site report and quit afterwards?

I ran `gramps --usage` and it shows something like:

```python
10. To generate a web site into an other locale (in german):
LANGUAGE=de_DE; LANG=de_DE.UTF-8 gramps -O 'Family Tree 1' -a report -p name=navwebpage,target=/../de

```

Not sure what would be the `-p` name for the Narrated Web Site and its options (just the ones I saved it with the last time would be fine though).

---

<div class="post-metadata">

**Author:** ![codefarmer](https://avatars.discourse-cdn.com/v4/letter/c/b9e5f3/32.png) [@codefarmer](https://gramps.discourse.group/u/codefarmer)\
**Post date:** [January 3, 2024, 11:40pm UTC](https://gramps.discourse.group/t/cli-to-create-the-narrated-web-site-report/4617/2 "2024-01-03T23:40:56Z")

</div>

Hi @Jens  
The wiki page you referenced lists reports and their names, and also shows how to query the options for a report in the section [report actions](https://gramps-project.org/wiki/index.php/Gramps_5.2_Wiki_Manual_-_Command_Line#report_action_option). So for navwebpage, you can list all the options by running this [command line](https://gramps-project.org/wiki/index.php/Gramps_5.2_Wiki_Manual_-_Command_Line) similar to this:

`.\gramps -O "Gramps sample family tree" -a report -p "name=navwebpage,show=all"`

Not sure if there’s a away to extract the last used options, which are stored in the settings file gramps/report\_options.xml

Hope this helps.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/free1/uploads/gramps/original/1X/2ac1e712b7adf612e31ca08a55419f4cf37c0158.png) [@system](https://gramps.discourse.group/u/system)\
**Post date:** [February 2, 2024, 11:41pm UTC](https://gramps.discourse.group/t/cli-to-create-the-narrated-web-site-report/4617/3 "2024-02-02T23:41:39Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
