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
Every subcommand validates supplied values against the archive's vocabularies and entity references before writing. The created entity ID is echoed on its own line as the final stdout output so it can be captured with shell substitution:
person_id=$(glx add person --given Johann --surname Jungk --archive .)
glx add event --type christening --principal "$person_id" --archive .
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 source - Create a source entity