commands.sh

wifi-password

macos

Get the password of the Wi-Fi.

More info →

Examples (3)

Get the password for the Wi-Fi you are currently logged onto

Get the password for the Wi-Fi with a specific SSID

Print only the password as output

made by @shridhargupta | data from tldr-pages