Changes

From Gramps

Gramps 4.1 Wiki Manual - Command Line

18 bytes added, 05:29, 19 July 2015
Examples
*To import four databases (whose formats can be determined from their names) and then check the resulting database for errors, one may type:
:<precode>gramps -i file1.ged -i file2.gpkg -i ~/db3.gramps -i file4.wft -a check</precode>
*To explicitly specify the formats in the above example, append filenames with appropriate -f options:
:<precode>gramps -i file1.ged -f gedcom -i file2.gpkg -f gramps-pkg -i ~/db3.gramps -f gramps-xml -i file4.wft -f wft -a check</precode>
*To record the database resulting from all imports, supply -e flag (use -f if the filename does not allow Gramps to guess the format):
:<precode>gramps -i file1.ged -i file2.gpkg -e ~/new-package -f gramps-pkg</precode>
*To save any error messages of the above example into files outfile and errfile, run:
:<precode>gramps -i file1.ged -i file2.dpkg -e ~/new-package -f gramps-pkg >outfile 2>errfile </precode>
*To import three databases and start interactive Gramps session with the result:
:<precode>gramps -i file1.ged -i file2.gpkg -i ~/db3.gramps </precode>
*To open a database and, based on that data, generate timeline report in PDF format putting the output into the my_timeline.pdf file:
:<precode>gramps -O 'Family Tree 1' -a report -p name=timeline,off=pdf,of=my_timeline.pdf </precode>
{{man tip|1=Listing report options |2=Use the <tt>''name=timeline,show=all''</tt> to find out about all available options for the timeline report. To find out details of a particular option, use <tt>''show=option_name''</tt> , e.g. <tt>''name=timeline,show=off''</tt> string. To learn about available report names, use <tt>''name=show''</tt> string.}}
*To convert the bsddb database on the fly to a .gramps xml file:
:<precode>gramps -O 'Family Tree 1' -e output.gramps -f gramps-xml</precode>
* To generate a web site into an other locale (in german):
<precode>LANGUAGE=de_DE; LANG=de_DE.UTF-8 gramps -O 'Family Tree 1' -a report -p name=navwebpage,target=/../de </precode>
*Finally, to start normal interactive session type:
:<precode>gramps</precode>
== Environment variables==

Navigation menu