The commandline version of Spotlight is mdfind. Simply provide your search query as a parameter and let it run.
#osx #terminal#mdfind#spotlight#searching