In the FileGDB vector driver documentation, it states that writing support has been added in GDAL 3.5 for field domains. However, it isn't documented how to do so.
For context, I am working on a .gdb file that has multiple fields, multiple layers, and no existing field domains. I want to be able to programmatically create domains, and attach them to specific fields in multiple layers using ogr2ogr (or some other gdal vector program). Unfortunately won't be able to use arcpy or arcgis desktop.
I have tried using sql and in different dialects, but have failed to even create a domain.