nmcli dev wifi hotspot ifname wlan0 ssid MyHotspot password 'secret'
Create a Wi-Fi hotspot from a wireless card
This turns the wlan0 radio into an access point broadcasting the SSID MyHotspot with the given WPA password, letting nearby devices join and reach this machine's network. NetworkManager creates a temporary hotspot profile for it, and the connection stays active until you bring it down. Stop the hotspot with nmcli connection down on the generated profile name.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.