Skip to content

glx add repository

Create a repository entity

Synopsis

Create a Repository entity in the archive.

--name is required (or --id). --type is validated against the repository_types vocabulary.

glx add repository [flags]

Examples

  # Online database
  glx add repository --name "FamilySearch" --type database --website https://www.familysearch.org --archive ./archive

  # Physical archive
  glx add repository --name "Virginia State Library" --type library \
    --address "800 E. Broad St" --city "Richmond" --state "VA" --country "USA" --archive ./archive

Options

      --address string       Street address
  -a, --archive string       Archive path (directory) (default ".")
      --city string          City
      --country string       Country
      --dry-run              Print what would be created without writing files
      --force                Overwrite an existing entity with the chosen ID
  -h, --help                 help for repository
      --id string            Override the derived entity ID
      --name string          Repository name (required unless --id is given)
      --note stringArray     Free-text note (repeatable)
      --postal-code string   Postal code
      --skip-validate        Skip whole-archive validation after adding (vocab and reference checks still run)
      --state string         State or province
      --type string          Repository type (vocabulary key in repository_types)
      --website string       Website URL

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

Licensed under Apache License 2.0