Updated to allow build and deploy from command line