Did you download the firmware for your Moto device with the correct model name ? if you didn’t then click here to find all the Moto Stock Firmware collection from this list of supported smartphone. If you have downloaded then here i will guide you on How to install Moto Stock firmware on your smartphone. Guide is simple and easy. All you need is to follow the steps properly. Read this Full Guide on How to Install Stock Firmware On Moto Smartphone.
In this guide you will be able to either downgrade or upgrade your Moto smartphone. This guide will be helpfull for people who are looking to fix/unbrick their smartphone or you can also return to stock ROM from custom ROM. If you dunno what is custom ROM and their differences, check this helpful guide to install Custom ROM on your Moto Smartphone.
Full Guide On How To Install Stock Firmware On Moto Smartphone
READ THIS CAUTION: So before jumping into the manual upgrade setup, please make sure you have a good amount of juice with at least 80% Charge. If not please charge the phone. Backup your phone in case if you need it later. If you brick the device we are not responsible. Do it at your own risk. Remember this guide is to update Stock Firmware On Moto devices.

Brother I tried but failed to install update using ADB
Moto G5 Plus 4gb 32 gb India