Follow the below steps:
The Office Deployment Tool (ODT) is a command-line tool that you can use to download and deploy Click-to-Run versions of Office, such as Office 365 ProPlus, to your client computers.
Step 1. Click on this URL https://www.microsoft.com/en-us/download/details.aspx?id=49117
Step 2. Download the Office deployment tool
Step 3. Run the office deployment tool
Step 4. Select the location and click on ok.
Step 5. Go to file location and need to delete all .xml files from the office 365 folder.
Step 6. Click on this URL http://officedev.github.io/Office-IT-Pro-Deployment-Scripts/XmlEditor.html
Step 7. Click-To-Run
Step 8. Click on create
Step 8. Now customize your office MS office product
Step 9. Select your product
Step 10. Select Update channel
Step 11. Select the latest version.
Step 12. Customize apps according to your requirement
Step 13. Select language
Step 14. Click on Export
Step 15. Select Office Open XML format and click on ok.
Step 16. Now export configuration
Step 17. Now move the configuration file into the office 365 folder.
Step 18. Now open cmd run as administrator and see the below command to download office 365.
Type this command and press enter. It will take some time to download.
Step 19. After downloading the file, please see your folder.
Your Office 365 setup is ready.
Step 20. Please see the installation command.