Skip to content

glx import ​

Import a GEDCOM or GEDZIP file to GLX format

Synopsis ​

Import a GEDCOM or GEDZIP file and convert it to GLX format.

The input format is detected by extension:

  • .gdz: GEDZIP (a ZIP archive containing gedcom.ged at the root plus any media files referenced by FILE records)
  • Any other extension is treated as GEDCOM 5.5.1 or 7.0 (typically .ged)

The imported archive will include:

  • All individuals (persons)
  • All events (births, deaths, marriages, etc.)
  • All relationships (parent-child, spouse, etc.)
  • All places with hierarchical structure
  • All sources and citations
  • All repositories and media
  • Evidence-based assertions

Output formats:

  • multi: Multi-file directory structure (default, one file per entity)
  • single: Single YAML file

Platform adapters: The software that exported the file is detected from its HEAD.SOUR record, and that platform's custom tags are rewritten into standard GEDCOM before conversion (for example Ancestry's _MILT becomes a military_service event, _DCAUSE the death event's cause, and a citation's _APID an external ID plus a link to the Ancestry record). Use --platform to force an adapter and --list-platforms to see them all. Custom tags no adapter maps are still preserved under gedcom_extensions on persons.

glx import <file> [flags]

Examples ​

  # Import GEDCOM to multi-file directory (default)
  glx import family.ged -o family-archive

  # Import GEDZIP archive (auto-extracts media files)
  glx import family.gdz -o family-archive

  # Import to single file
  glx import family.ged -o family.glx --format single

  # Import without validation
  glx import family.ged -o family-archive --no-validate

  # Keep each media file's source path, so photos/a.jpg and backup/a.jpg
  # stay distinguishable after both become media/files/a*.jpg
  glx import family.ged -o family-archive --media-source-paths

  # Force the Ancestry adapter instead of detecting it
  glx import tree.ged -o family-archive --platform ancestry

  # List the platform adapters
  glx import --list-platforms

Options ​

  -f, --format string           Output format: multi or single (default "multi")
  -h, --help                    help for import
      --list-platforms          List the platform adapters and exit
      --media-source-paths      Record each media file's path as written in the GEDCOM (properties.source_path); off by default because folder names can be private
      --no-validate             Skip validation before saving
  -o, --output string           Output file or directory (required)
      --platform string         Force a platform adapter instead of detecting it from HEAD.SOUR (see --list-platforms)
      --show-first-errors int   Number of validation errors to show (0 for all) (default 10)
  -v, --verbose                 Verbose output

Options inherited from parent commands ​

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

SEE ALSO ​

  • glx - GENEALOGIX CLI - Manage and validate genealogy archives

Licensed under Apache License 2.0