For search you have to execute the next command line:
node app (tipo: track, artist, album) (search)
Ex. node app artist van
Id you don't have NodeJS in your pc, you can go to https://codp.in/c/buscador-spotify-1486500647
I wrote a post about how I developed it http://cesaraquino.com.pe/crear-una-aplicacion-de-linea-de-comandos-con-node-js/