In tonight's session my fighter just leveled to 3rd and declared as a Battlemaster; he selected Commander's Strike as one of his combat superiority maneuvers:
When you take the Attack action on your turn, you can forgo one of your attacks and use a bonus action to direct one of your companions to strike. When you do so, choose a friendly creature who can see or hear you and expend one superiority die. That creature can immediately use its reaction to make one weapon attack, adding the superiority die to the attack's damage roll.
He is a Dex-based ranged support fighter with Archery fighting style, so most of the time he will be forgoing his single crossbow shot in order to give the rogue a chance at a second sneak attack per round.
However, when he needs to enter melee, he does so with shortsword and dagger, and thus even at 3rd level he can get two attacks per turn, with the shortsword as his Attack action attack and the dagger as a bonus action attack with Two Weapon Fighting.
He would like to be able to take the Attack action with his shortsword to make his own attack, and then use Commander's Strike to forgo his dagger attack and allow the Rogue to make an attack.
However, it is not clear to me what "forgo" means, and how it interacts with the (bonus) action economy, since he might need to spend a bonus action to get the dagger attack, and also spend a bonus action to initiate the Commander's Strike. With a limit of one bonus action per round, perhaps this is not possible.
If "forgo" means 'pay for the dagger attack (with a bonus action), but don't take it', then he cannot do a Commander's Strike off of the dagger.
But if "forgo" means 'have the potential to do something but choose not to do it', then he could claim that he could use his bonus action for the dagger attack, but is instead forgoing that option to use his bonus action for Commander's Strike.
I am assuming, as this answer does, that so long as he does take the Attack action, the attack that is forgone does not have to be one generated by the Attack action, just an attack that he could have made at some point subsequent to taking the Attack action. You might disagree with those assumptions, but you need only elaborate on that if you think your answer is more persuasive or covers more ground than the competing answers to those questions already do. Instead, I would prefer that answers to this question focus on the meaning of "forgo". Ideally they would identify other uses of "forgo" in the rules that provide a clear meaning from context.