Original post : https://unix.stackexchange.com/a/310699
nmcli con add type wifi ifname wlp2s0 con-name gustavo-eadbox autoconnect yes ssid gustavo-eadbox
nmcli con modify gustavo-eadbox 802-11-wireless.mode ap 802-11-wireless.band bg ipv4.method shared
nmcli con modify gustavo-eadbox wifi-sec.key-mgmt wpa-psk
nmcli con modify gustavo-eadbox wifi-sec.psk "gustavo-eadbox"
nmcli con up gustavo-eadbox
If after reboot nmcli con up gustavo-eadbox
doesn't work
Use this command instead to start Hotspot
UUID=$(grep uuid /etc/NetworkManager/system-connections/gustavo-eadbox | cut -d= -f2)
nmcli con up uuid $UUID