Setting up WiFi via commandline

Hi,
I am looking for something like https://www.raspberrypi.org/documentation/configuration/wireless/wireless-cli.md, any pointers?

There are multiple discussions if you search for nmcli on this forum. Here is one.

https://www.96boards.org/forums/topic/incomplete-documentation/