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 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 add

Options inherited from parent commands ​

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

SEE ALSO ​

Licensed under Apache License 2.0