Skip to content

glx add place

Create a place entity

Synopsis

Create a Place entity in the archive.

--name is required (or --id). --parent must reference an existing place. --type is validated against the place_types vocabulary.

glx add place [flags]

Examples

  # Top-level place (country)
  glx add place --name "Germany" --type country --archive ./archive

  # Place with a parent
  glx add place --name "Enkirch" --type town --parent place-rheinland-pfalz --archive ./archive

  # With coordinates
  glx add place --name "Enkirch" --type town --lat 49.97 --lng 7.13 --archive ./archive

Options

  -a, --archive string     Archive path (directory) (default ".")
      --dry-run            Print what would be created without writing files
      --force              Overwrite an existing entity with the chosen ID
  -h, --help               help for place
      --id string          Override the derived entity ID
      --lat float          Latitude (decimal degrees)
      --lng float          Longitude (decimal degrees)
      --name string        Place name (required unless --id is given)
      --note stringArray   Free-text note (repeatable)
      --parent string      Parent place ID
      --skip-validate      Skip whole-archive validation after adding (vocab and reference checks still run)
      --type string        Place type (vocabulary key in place_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

Licensed under Apache License 2.0