<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Running &amp;quot;nRF Connect&amp;quot; outside of VS Code</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/116049/running-nrf-connect-outside-of-vs-code</link><description>Hi, 
 If I launch &amp;quot;nRF Connect&amp;quot; inside of VS Code, it uses PowerShell by default. 
 
 But if I use the Toolchain Manager, it will open the Command Prompt terminal instead. 
 
 How do I launch &amp;quot;nRF Connect&amp;quot; with PowerShell outside of VS Code? 
 Alternatively</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 04 Nov 2024 12:35:51 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/116049/running-nrf-connect-outside-of-vs-code" /><item><title>RE: Running "nRF Connect" outside of VS Code</title><link>https://devzone.nordicsemi.com/thread/508943?ContentTypeID=1</link><pubDate>Mon, 04 Nov 2024 12:35:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fa1b1655-d9fa-42c6-95d3-1e0db06dc1dd</guid><dc:creator>tylerh</dc:creator><description>&lt;p&gt;Hi Priyanka,&lt;/p&gt;
&lt;p&gt;Thanks for the help. In this case, if I use `nrfutil toolchain-manager launch --terminal`, then it opens `cmd` outside of PowerShell, unfortunately.&lt;/p&gt;
&lt;p&gt;However, some good news. If I launch a terminal, either in the GUI toolchain manager or in the `nrfutil toolchain-manager` command, and&amp;nbsp;&lt;strong&gt;then&lt;/strong&gt; run the command `powershell.exe`, then it looks like it does what I need, which is PowerShell configured with the right environment variables. This is probably what VS Code is doing underneath.&lt;/p&gt;
&lt;p&gt;The &amp;quot;Generate environment script&amp;quot; is good, but it can&amp;#39;t be interpreted by PowerShell, only cmd, which is the same as before. I&amp;#39;m guessing that VS Code simply generates everything using cmd and then opens PowerShell immediately afterwards.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Running "nRF Connect" outside of VS Code</title><link>https://devzone.nordicsemi.com/thread/508941?ContentTypeID=1</link><pubDate>Mon, 04 Nov 2024 12:28:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:57eee7fc-15e4-463f-bdee-9ec2ab43a62b</guid><dc:creator>Priyanka</dc:creator><description>&lt;p&gt;Hi Tyler,&lt;/p&gt;
[quote user=""]How do I launch &amp;quot;nRF Connect&amp;quot; with PowerShell outside of VS Code?[/quote]
&lt;p&gt;You should be able to do this by entering the following in Powershell:&lt;/p&gt;
&lt;p&gt;&lt;em&gt;nrfutil toolchain-manager launch --terminal&lt;/em&gt;&lt;/p&gt;
[quote user=""]Alternatively, using PowerShell, how do I configure everything that &amp;quot;nRF Connect&amp;quot; is using inside of VS Code? There must be some type of script it&amp;#39;s calling to setup the environment.[/quote]
&lt;p&gt;&lt;em&gt;&lt;/em&gt;I have not tried this myself, but there is this&amp;nbsp;&lt;span&gt;feature in the Toolchain Manager that allows you to generate an environment script as shown below. This script can be used to set up the environment variables needed for nRF Connect SDK.&amp;nbsp;This will create a script that you can use to set up the environment. You can rename this script and place it somewhere in your system&amp;#39;s PATH&amp;nbsp;and then maybe you can use this script to set up the same environment that VS Code uses.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1730723118771v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;-Priyanka&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>