glx add source
Create a source entity
Synopsis
Create a Source entity in the archive.
--title is required (or --id). --type is validated against the source_types vocabulary. --repository must reference an existing repository.
glx add source [flags]Examples
# Indexed database source
glx add source --title "Deutschland Geburten und Taufen, 1558-1898" \
--type database --repository repository-familysearch --archive ./archive
# Book with author(s) and date
glx add source --title "Genealogy of the Smith Family" \
--type book --author "Jane Smith" --date 1923 --archive ./archiveOptions
-a, --archive string Archive path (directory) (default ".")
--author stringArray Author (repeatable)
--date string Publication or compilation date
--description string Short description
--dry-run Print what would be created without writing files
--force Overwrite an existing entity with the chosen ID
-h, --help help for source
--id string Override the derived entity ID
--language string Source language (e.g. en, de, la)
--note stringArray Free-text note (repeatable)
--repository string Repository ID
--skip-validate Skip whole-archive validation after adding (vocab and reference checks still run)
--title string Source title (required unless --id is given)
--type string Source type (vocabulary key in source_types)Options inherited from parent commands
-q, --quiet Suppress non-error output (where supported)SEE ALSO
- glx add - Create entities (person, place, event, …) from CLI flags