glx add
Create entities (person, place, event, …) from CLI flags
Synopsis
Create GLX entities from command-line flags instead of writing YAML by hand.
Subcommands: add person Create a person add place Create a place add event Create an event add repository Create a repository add source Create a source add citation Create a citation add relationship Create a relationship add assertion Create an assertion add research-log Create a research log add search Append one search to an existing research log add study Create a study
Every subcommand validates supplied values against the archive's vocabularies and entity references, and every date flag against the GLX date grammar, before writing. The created entity ID is the only thing written to stdout (progress goes to stderr), so it can be captured with shell substitution (add search echoes the ID of the log it appended to):
person_id=$(glx add person --given Johann --surname Jungk --archive .)
glx add event --type christening --principal "$person_id" --archive .
glx add [flags]Options
-h, --help help for addOptions inherited from parent commands
-q, --quiet Suppress non-error output (where supported)SEE ALSO
- glx - GENEALOGIX CLI - Manage and validate genealogy archives
- glx add assertion - Create an assertion entity
- glx add citation - Create a citation entity
- glx add event - Create an event entity
- glx add person - Create a person entity
- glx add place - Create a place entity
- glx add relationship - Create a relationship entity
- glx add repository - Create a repository entity
- glx add research-log - Create a research log entity
- glx add search - Append a search to a research log
- glx add source - Create a source entity
- glx add study - Create a study entity