In the PHB there is the Ranger subclass "Beast Master" which gives the opportunity to have a beast companion, which obey all orders from the Ranger. The beast attacks only if the ranger gives that command in his/her action.
But in TCoE there is a phrase for the beast, which says:
"It can move and use its reaction on its own, but the only action it takes is the Dodge action, unless you take a bonus action on your turn to command it to take another action. That action can be one in its stat block or some other action. You can also sacrifice one of your attacks when you take the Attack action to command the beast to take the Attack action."
It means that the ranger may use his/her bonus action also to command the beast to attack. Which as I understand doesn't exclude the option of the original PHB defined one. Am I right, or I missunderstood this? Please can someone clarify me how can a ranger command his/her beast to attack targets with the TCoE variant?