With the new companions in Tasha's, the Beast Master can use a bonus action to command the beast to take an action, typically Attack, but Dash, Disengage, Dodge, or Hide are also possibilities.
At 7th level, the ranger gets "Exceptional Training" which grants the ability to use a bonus action...