Nmcli is a command that allows you to control NetworkManager and provides information about the network status, so run the following command to scan WiFi networks:
nmcli dev wifi