Merge defaults opts with cli or api