wp post term add <id> <taxonomy> <term>

Add a term to an object

Arguments

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

Options

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