Add deploy command, add default env setting, fix warning