How to search (Google) and have first result opened in command line

I’d like to have like a keyboard shortcut, enter a query and have the top result opened in a command line browser.

Basically, the fastest way to search and get the first result?