add cli options and build command