script to run clustering from cli