A command in military terminology is an organisational unit for which a military commander is responsible. A commander is normally specifically appointed to the role in order to provide a legal framework for the authority bestowed. Naval and military officers have legal authority by virtue of their officer's commission, but the specific responsibilities and privileges of command are derived from the publication of appointment.
The relevant definition of "command" according to the US Department of Defense is as follows:
(DOD) 3. A unit or units, an organization, or an area under the command of one individual. Also called CMD. See also area command; combatant command; combatant command (command authority).