commanding officer; commander; commandant
A military officer in command of a unit, installation, or operation. Can refer to ranks from general to captain depending on context.
The commanding officer ordered the troops to withdraw.
He was appointed commander of the naval forces.
He was appointed commander of the fleet.
He served as the base commander for many years.
The soldiers acted according to the commander's orders.