main(args?: string[]): Promise<void>
Main CLI entry point.
Plans the invocation with planCli, then carries it out: announces
the resolved specifier and any inferred coder on stderr, then either writes
the planned text to its stream and exits with its code, or runs the command.
A run that throws is explained through explainFailure and exits
1.