If your tailnet has several exit nodes, choosing one by name gets old fast. Tailscale will make the pick for you and show it first, which I like, because nothing changes until I say so.
tailscale exit-node suggest
The command prints the ID of the exit node Tailscale recommends. The docs show the output in this shape:
Suggested exit node: <ID>.
To accept this suggestion, use `tailscale set --exit-node=<ID>`.
It only suggests. Your current exit node setting stays as it was, so you can run it as often as you like. The recommendation is based on your location and latency, according to the Tailscale page on recommended exit nodes.
To accept the suggestion, copy the command from the output:
tailscale set --exit-node=<ID>
The same flag takes a Tailscale IP or a machine name, and an empty value turns the exit node off again. According to the CLI docs it also accepts auto:any, which leaves the choice to Tailscale instead of to you.
If you want to see every candidate and not only the winner, tailscale exit-node list lists the exit nodes in your tailnet, and its --filter flag narrows the list by country.
One caveat: the command doesn’t switch anything. I’d run tailscale status afterwards to check which exit node you are really using.
Further reading: Recommended exit nodes, Tailscale CLI
Going deeper: Why a Tailscale device vanishes after 180 days, and how to stop it