Usage patterns
〈人〉が司令官に任命されるto be appointed as commander
He was appointed commander of the fleet.
司令官の指示に従うto follow the commander's orders
The soldiers acted according to the commander's orders.
〈場所〉の司令官を務めるto serve as the commander of a place/unit
He served as the base commander for many years.