Can I eat onions for a cough caused by wind-heat?
Generally, it is not recommended to eat onions during cough caused by wind-heat. The detailed explanation is as follows:

Wind-heat cough is caused by an external invasion of wind-heat pathogens that affect the lung's defensive system, leading to impaired lung function and coughing. In addition to coughing, main symptoms may include yellow and thick phlegm, dry throat, dry mouth, fever, and yellow nasal discharge. At this time, the body is affected by heat pathogens, so the diet should be light and focused on clearing heat, moistening the lungs, and relieving cough.
Onions are warm in nature and have a pungent taste, which helps dispel wind-cold. They are more suitable for conditions like wind-cold感冒 (common cold with cold symptoms). During wind-heat cough, eating onions may intensify internal heat pathogens, worsening symptoms such as cough and dry throat. Moreover, onions are somewhat irritating; their spicy flavor may stimulate the throat and respiratory tract, triggering stronger cough reflexes and making cough symptoms worse.
During wind-heat cough, it is advisable to choose light and easily digestible foods, such as congee, noodles, and vegetable soup, to reduce the burden on the gastrointestinal tract. Drinking plenty of water can help thin mucus secretions, relieve cough symptoms, and promote the elimination of heat pathogens through enhanced metabolism. Additionally, maintaining healthy lifestyle habits, such as regular sleep patterns and moderate exercise, is also important.