windows-setup-update.rst 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. *********************************
  2. Updating ESP-IDF tools on Windows
  3. *********************************
  4. .. _get-started-install_bat-windows:
  5. Install ESP-IDF tools using a script
  6. ====================================
  7. From the Windows Command Prompt, change to the directory where ESP-IDF is installed. Then run::
  8. install.bat
  9. For Powershell, change to the directory where ESP-IDF is installed. Then run::
  10. install.ps1
  11. This will download and install the tools necessary to use ESP-IDF. If the specific version of the tool is already installed, no action will be taken.
  12. The tools are downloaded and installed into a directory specified during ESP-IDF Tools Installer process. By default, this is ``C:\Users\username\.espressif``.
  13. .. _get-started-export_bat-windows:
  14. Add ESP-IDF tools to PATH using an export script
  15. ================================================
  16. ESP-IDF tools installer creates a Start menu shortcut for "ESP-IDF Command Prompt". This shortcut opens a Command Prompt window where all the tools are already available.
  17. In some cases, you may want to work with ESP-IDF in a Command Prompt window which wasn't started using that shortcut. If this is the case, follow the instructions below to add ESP-IDF tools to PATH.
  18. In the command prompt where you need to use ESP-IDF, change to the directory where ESP-IDF is installed, then execute ``export.bat``::
  19. cd %userprofile%\esp\esp-idf
  20. export.bat
  21. Alternatively in the Powershell where you need to use ESP-IDF, change to the directory where ESP-IDF is installed, then execute ``export.ps1``::
  22. cd ~/esp/esp-idf
  23. export.ps1
  24. When this is done, the tools will be available in this command prompt.