wp post term set <id> <taxonomy> <term>

Set object terms

Arguments

NameDescription
idThe ID of the object
taxonomyThe name of the taxonomy type to be updated
termThe slug of the term or terms to be updated

Options

NameDescription
--by <field>Explicitly handle the term value as a slug or id