oops.se
Run sudo raspi-config
Select 1. System Options
And then S1. Wireless LAN
And enter your Wi-Fi credentials, SSID and password.
To check if there is a current Wi-Fi connection run nmcli connection show and if you have a row ending with wlan0 that is your current Wi-Fi connection.