Implement build command.