I thought this would do it:
$ exiftool -XMP:HierarchicalSubject="people|Test" Test.jpg
1 image files updated
$ exiftool -G -j -n Test.jpg | grep Test
"SourceFile": "Test.jpg",
"File:FileName": "Test.jpg",
"XMP:HierarchicalSubject": "people|Test",
"XMP:RawFileName": "Test.jpg",
But the keyword doesn't show up in Lightroom after reimporting the metadata into Lightroom. How do I make this work?
I don't believe the image will make a difference, but if it does, I'm using this as the test image.