@@ -160,9 +160,9 @@ The current minimum required version for the main dependencies are:
160
160
161
161
Therefore, we don't recommend using WSL when getting started.
162
162
163
- These instructions must be run in a ``cmd.exe `` command prompt terminal window.
164
163
In modern version of Windows (10 and later) it is recommended to install the Windows Terminal
165
- application from the Microsoft Store. The required commands differ on PowerShell.
164
+ application from the Microsoft Store. Instructions are provided for a ``cmd.exe `` or
165
+ PowerShell command prompts.
166
166
167
167
These instructions rely on `Chocolatey `_. If Chocolatey isn't an option,
168
168
you can install dependencies from their respective websites and ensure
@@ -175,8 +175,9 @@ The current minimum required version for the main dependencies are:
175
175
176
176
#. `Install chocolatey `_.
177
177
178
- #. Open a ``cmd.exe `` terminal window as **Administrator **. To do so, press the Windows key,
179
- type ``cmd.exe ``, right-click the :guilabel: `Command Prompt ` search result, and choose
178
+ #. Open a ``cmd.exe `` or PowerShell terminal window as **Administrator **.
179
+ To do so, press the Windows key, type ``cmd.exe `` or PowerShell, right-click the
180
+ :guilabel: `Command Prompt ` or :guilabel: `PowerShell ` search result, and choose
180
181
:guilabel: `Run as Administrator `.
181
182
182
183
#. Disable global confirmation to avoid having to confirm the
@@ -333,20 +334,33 @@ chosen. You'll also install Zephyr's additional Python dependencies in a
333
334
334
335
.. group-tab :: Windows
335
336
336
- #. Open a ``cmd.exe `` terminal window **as a regular user **
337
+ #. Open a ``cmd.exe `` or PowerShell terminal window **as a regular user **
337
338
338
339
#. Create a new virtual environment:
339
340
340
- .. code-block :: bat
341
+ .. tabs ::
342
+
343
+ .. code-tab :: bat
344
+
345
+ cd %HOMEPATH%
346
+ python -m venv zephyrproject\. venv
341
347
342
- cd %HOMEPATH%
343
- python -m venv zephyrproject\.venv
348
+ .. code-tab :: powershell
349
+
350
+ cd $Env:HOMEPATH
351
+ python -m venv zephyrproject\. venv
344
352
345
353
#. Activate the virtual environment:
346
354
347
- .. code-block :: bat
355
+ .. tabs ::
348
356
349
- zephyrproject\.venv\Scripts\activate.bat
357
+ .. code-tab :: bat
358
+
359
+ zephyrproject\. venv\S cripts\a ctivate.bat
360
+
361
+ .. code-tab :: powershell
362
+
363
+ zephyrproject\. venv\S cripts\A ctivate.ps1
350
364
351
365
Once activated your shell will be prefixed with ``(.venv) ``. The
352
366
virtual environment can be deactivated at any time by running
@@ -434,10 +448,17 @@ that are used to emulate, flash and debug Zephyr applications.
434
448
435
449
Install the Zephyr SDK using the ``west sdk install ``.
436
450
437
- .. code-block :: bat
451
+ .. tabs ::
438
452
439
- cd %HOMEPATH% \zephyrproject\zephyr
440
- west sdk install
453
+ .. code-tab :: bat
454
+
455
+ cd %HOMEPATH%\z ephyrproject\z ephyr
456
+ west sdk install
457
+
458
+ .. code-tab :: powershell
459
+
460
+ cd $Env:HOMEPATH\z ephyrproject\z ephyr
461
+ west sdk install
441
462
442
463
.. tip ::
443
464
@@ -485,10 +506,17 @@ Build the :zephyr:code-sample:`blinky` with :ref:`west build <west-building>`, c
485
506
486
507
.. group-tab :: Windows
487
508
488
- .. code-block :: bat
509
+ .. tabs ::
510
+
511
+ .. code-tab :: bat
512
+
513
+ cd %HOMEPATH%\z ephyrproject\z ephyr
514
+ west build -p always -b <your-board-name> samples\b asic\b linky
515
+
516
+ .. code-tab :: powershell
489
517
490
- cd % HOMEPATH% \zephyrproject\zephyr
491
- west build -p always -b < your-board-name> samples\basic\blinky
518
+ cd $Env: HOMEPATH\z ephyrproject\z ephyr
519
+ west build -p always -b <your-board-name> samples\b asic\b linky
492
520
493
521
The ``-p always `` option forces a pristine build, and is recommended for new
494
522
users. Users may also use the ``-p auto `` option, which will use
0 commit comments