Skip to content

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 add

Options inherited from parent commands

  -q, --quiet   Suppress non-error output (where supported)

SEE ALSO

Licensed under Apache License 2.0