How can I kill/launch wifi from terminal Linked to this

Is there any way to literally kill wifi (wifi process/wifi related processes?) and then launch/relaunch it, all with terminal?

maybe sudo killall WiFiAgent?

macOS Sierra (10.12)
As found here:  

Wifi can be turned on and off using  

networksetup -setairportpower en0 off


and back on using  

networksetup -setairportpower en0 on


When I use this, it says something along the lines of en0 is not wifi, turning on/off en1 instead, presumably because en0 is my ethernet connection.

EDIT: Also, this should be a comment, but I cannot yet comment, but sudo killall WiFiAgent does not appear to do anything on my computer.