You must get out of your car if an officer orders you to. You must provide your driver license if requested. As far as a pat down or a search, it’s WOOOOAHHH NELLIE!! These two requests are not legal orders without a warrant and can be refused.
A “Terry frisk” doesn’t require a warrant.
It does require probable cause to get to that point of a stop in the first place.