connect to hidden ssid from terminal

Hi everyone, I’ve been googling how to connect to hidden ssid from terminal, but I cannot find the answer
I am using Jetpack 3.0 and try to connect to the hidden ssid wifi connection
and furthermore I want to have automatic connection to the network on boot up
can anyone throw me some command to try