windows-setup-update.rst 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. *********************************
  2. Updating ESP-IDF tools on Windows
  3. *********************************
  4. :link_to_translation:`zh_CN:[中文]`
  5. .. _get-started-install_bat-windows:
  6. Install ESP-IDF tools using a script
  7. ====================================
  8. From the Windows Command Prompt, change to the directory where ESP-IDF is installed. Then run::
  9. install.bat
  10. For Powershell, change to the directory where ESP-IDF is installed. Then run::
  11. install.ps1
  12. 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.
  13. The tools are downloaded and installed into a directory specified during ESP-IDF Tools Installer process. By default, this is ``C:\Users\username\.espressif``.
  14. .. _get-started-export_bat-windows:
  15. Add ESP-IDF tools to PATH using an export script
  16. ================================================
  17. 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.
  18. 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.
  19. In the command prompt where you need to use ESP-IDF, change to the directory where ESP-IDF is installed, then execute ``export.bat``::
  20. cd %userprofile%\esp\esp-idf
  21. export.bat
  22. Alternatively in the Powershell where you need to use ESP-IDF, change to the directory where ESP-IDF is installed, then execute ``export.ps1``::
  23. cd ~/esp/esp-idf
  24. export.ps1
  25. When this is done, the tools will be available in this command prompt.