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