Source of Command Authority
Primarily originates with presidential authority of the commander in chief.
Most command authority comes from regulation and not from law.
Remember, commanders/leaders only have command authority over the soldiers and facilities which make up that unit.
Notes:
AR 600-20 and the Manual for Courts Martial which defines the legal authority of NCOs.