This finds or creates a NetworkManager connection profile for the named network and activates it immediately, like clicking an SSID in a desktop app. The password argument supplies the WPA passphrase on the command line. NetworkManager remembers the profile, so next time the machine will join automatically.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.