Pet birds establish their flock hierarchy through a combination of body language, vocalizations, and interactions with other birds in their environment. They may display dominance by puffing up their feathers, raising their wings, making loud vocalizations, or even engaging in physical interactions like pecking or chasing. The hierarchy is usually established based on factors like age, gender, and individual personalities of the birds involved.