To dream that you are giving commands refers to ability to express your desires or ideas. The dream may also be telling you that you need to have more of a presence and take a more active role in a situation. Take control over your life and behavior.
To dream that someone is commanding you highlights your subordinate role. Perhaps you need to show more humility in a situation.