1import{a as e,c as t,d as n,f as r,i,l as a,n as o,o as s,s as c}from"./app-CTw7H9Rm.js";var l=JSON.parse(`{"path":"/book/installation.html","title":"Installing Nu","lang":"en-US","frontmatter":{"next":{"text":"Default Shell","link":"/book/default_shell.md"},"head":[["link",{"rel":"alternate","type":"application/atom+xml","href":"https://www.nushell.sh/atom.xml","title":"Nushell Atom Feed"}],["link",{"rel":"alternate","type":"application/json","href":"https://www.nushell.sh/feed.json","title":"Nushell JSON Feed"}],["link",{"rel":"alternate","type":"application/rss+xml","href":"https://www.nushell.sh/rss.xml","title":"Nushell RSS Feed"}]]},"git":{"contributors":[{"name":"Carson Black","username":"","email":"[email protected]","commits":1},{"name":"Ibraheem Ahmed","username":"","email":"[email protected]","commits":1},{"name":"Jake Vossen","username":"","email":"[email protected]","commits":1},{"name":"prrao87","username":"prrao87","email":"[email protected]","commits":1,"url":"https://github.com/prrao87"},{"name":"Andrés N. Robalino","username":"","email":"[email protected]","commits":3},{"name":"rashil2000","username":"rashil2000","email":"[email protected]","commits":1,"url":"https://github.com/rashil2000"},{"name":"dgalbraith","username":"dgalbraith","email":"[email protected]","commits":2,"url":"https://github.com/dgalbraith"},{"name":"Reilly Wood","username":"","email":"[email protected]","commits":4},{"name":"Justin Ma","username":"","email":"[email protected]","commits":7},{"name":"Adam Smith","username":"","email":"[email protected]","commits":1},{"name":"fdncred","username":"fdncred","email":"[email protected]","commits":1,"url":"https://github.com/fdncred"},{"name":"rgwood","username":"rgwood","email":"[email protected]","commits":2,"url":"https://github.com/rgwood"},{"name":"max-nextcloud","username":"max-nextcloud","email":"[email protected]","commits":1,"url":"https://github.com/max-nextcloud"},{"name":"Hofer-Julian","username":"Hofer-Julian","email":"[email protected]","commits":2,"url":"https://github.com/Hofer-Julian"},{"name":"Mark Karpov","username":"","email":"[email protected]","commits":1},{"name":"follower","username":"follower","email":"[email protected]","commits":1,"url":"https://github.com/follower"},{"name":"Jakub ŽádnÃk","username":"","email":"[email protected]","commits":1},{"name":"Garbaz","username":"Garbaz","email":"[email protected]","commits":1,"url":"https://github.com/Garbaz"},{"name":"NotTheDr01ds","username":"NotTheDr01ds","email":"[email protected]","commits":2,"url":"https://github.com/NotTheDr01ds"},{"name":"Kieron Wilkinson","username":"","email":"[email protected]","commits":1},{"name":"allan2","username":"allan2","email":"[email protected]","commits":1,"url":"https://github.com/allan2"},{"name":"Jan Klass","username":"","email":"[email protected]","commits":1},{"name":"Stefan Holderbach","username":"","email":"[email protected]","commits":1},{"name":"Nguyá»
n Há»ng Quân","username":"","email":"[email protected]","commits":1},{"name":"Phil Crockett","username":"","email":"[email protected]","commits":1}],"changelog":[{"hash":"5b85c3a03c079ba9b6020e71318afa1877efe9f0","time":1767529166000,"email":"[email protected]","author":"Phil Crockett","message":"Non-conflicting .list filename in install instructions (#2104)"},{"hash":"c02a0dc093c299ef097e456d86da407958db0cfb","time":1763964410000,"email":"[email protected]","author":"Nguyá»
n Há»ng Quân","message":"Use explicit key for Debian / Ubuntu repo (#2080)"},{"hash":"3f611ed49bdf11dec9d3066fd27a228356b2e893","time":1757144693000,"email":"[email protected]","author":"Stefan Holderbach","message":"Remove mentions of the <code>chocolatey</code> package (#2023)"},{"hash":"a4e00cc6c195528b37ce0eb57758f6e376d12bae","time":1753524266000,"email":"[email protected]","author":"Justin Ma","message":"Update winget install guide (#1993)"}
1,{"hash":"8a8ea200c026826b6c75a5522deedcb0883c4f4a","time":1753401754000,"email":"[email protected]","author":"Jan Klass","message":"Add prev next nav refs to install child (#1991)"},{"hash":"1a22b60681921f627a2f0ca50f44d169e9793022","time":1740278233000,"email":"[email protected]","author":"Justin Ma","message":"Add deb, rpm and apk install guide (#1816)"},{"hash":"e686771034748ed891350341ef31dcbb1baa0845","time":1736805053000,"email":"[email protected]","author":"Douglas","message":"Add package dependencies for Nix on macOS (#1746)"},{"hash":"f9748b6713b18628cd1996f095816994c310890f","time":1732106383000,"email":"[email protected]","author":"Allan","message":"Add <code>--locked</code> flag to Cargo install (#1642)"},{"hash":"7a94f221074272e2a02006cf8d4c849984d477ad","time":1730662803000,"email":"[email protected]","author":"Kieron Wilkinson","message":"Docker image usage (#1616)"},{"hash":"3b179ab4646a7a20bb5551ae407549f38c4f36da","time":1727733754000,"email":"[email protected]","author":"Douglas","message":"One-liner for installing plugins with Cargo (#1564)"},{"hash":"c9781aecc5d5374f90fffd5963e97eb574a58dfb","time":1724956799000,"email":"[email protected]","author":"Hofer-Julian","message":"fix: capitalization for headings level 2 and 3 (#1531)"},{"hash":"204f86e726a217e08ce8ace7d0566a2262a13a6a","time":1719493429000,"email":"[email protected]","author":"Garbaz","message":"Update installation instructions with <code>cargo</code> (#1460)"},{"hash":"7823f4762a7cadd415fdbaa2504e89cfe3101143","time":1718034004000,"email":"[email protected]","author":"Jakub ŽádnÃk","message":"Add C toolchain to Ubuntu install instructions (#1443)"},{"hash":"1b9d74afbcab1ee3cdcda235bc24c59f3ab2d4f7","time":1693495637000,"email":"[email protected]","author":"follower","message":"Move launch instructions earlier in page. (#1032)"},{"hash":"6e1eda76f33406ef67af85fc86e103f8a55a4732","time":1684440127000,"email":"[email protected]","author":"Mark Karpov","message":"Minor improvements to the installation chapter (#914)"},{"hash":"4ec1a6f99daa7a6537bf40a8f917a54bc3ac3696","time":1682590951000,"email":"[email protected]","author":"Justin Ma","message":"Update npm install instruction (#891)"},{"hash":"2eaf5761fcbfa6d05ebace7f151967fc843747f4","time":1674929741000,"email":"[email protected]","author":"Hofer-Julian","message":"Add separate page for setting Nu as default shell (#754)"},{"hash":"3637a565dbc6241e7ea2485992ceaa23fbf89c49","time":1674777344000,"email":"[email protected]","author":"max-nextcloud","message":"Update rust version requirement in installation (#752)"},{"hash":"9d84a238300f06e03176c020213c06478b9afa12","time":1670184299000,"email":"[email protected]","author":"Reilly Wood","message":"Remove old features from install instructions (#693)"},{"hash":"d1160ec492951a133bc8a57312b2ff73fc96d36d","time":1669756022000,"email":"[email protected]","author":"Reilly Wood","message":"Update docs for dataframe+database feature change (#679)"},{"hash":"f9e706bfdbb21b4a9a67072b44364623c1c731ad","time":1665140803000,"email":"[email protected]","author":"Adam Smith","message":"Update installation.md (#629)","coAuthors":[{"name":"Darren Schroeder","email":"[email protected]"}]},{"hash":"0cdea39bad291e01cdd7997892007785951e57d6","time":1659135011000,"email":"[email protected]","author":"Reilly Wood","message":"Explain how to launch Nu after installing"},{"hash":"f820bc7399d101cb760c9dd8da9f5e1a3a09701c","time":1654176499000,"email":"[email protected]","author":"Justin Ma","message":"Upgrade vuepress to v2 and add dark mode support (#465)"},{"hash":"3f3aac9249c21c09ebd519b72d293f624f706131","time":1653136434000,"email":"[email protected]","author":"Justin Ma","message":"Update some zh-CN translatons from commit: 6f61fadb69 (#438)"},{"hash":"f01d939378079220382f7c4f29b159280034e4b3","time":1649329938000,"email":"[email protected]","author":"Justin Ma","message":"Translate installation to zh-cn from commit: c13a71d11 (#374)"},{"hash":"89a88fe1a3af1e525a9b77f93c673b6a580ab6f5","time":1648351044000,"email":"[email protected]","author":"Justin Ma","message":"Add husky and prettier to format code automatically while committing code (#347)"},{"hash":"df60ecacef6259381c6d76d43938090d6a7e54e9","time":1647114400000,"email":"[email protected]","author":"Reilly Wood","message":"Nu Book: reorganize installation page"},{"hash":"3649f10773a28ba222588a07e7296419ad9c19b6","time":1646630022000,"email":"[email protected]","author":"Reilly Wood","message":"Update Windows build-from-source requirements"},{"hash":"69b26c60d6873f5e3dd7310bd9b4784d05122185","time":1646597810000,"email":"[email protected]","author":"Reilly Wood","message":"Nu book: grammar + spelling pass"},{"hash":"035fc1b7f608ab326dd6554442e6091e8c53be15","time":1646343114000,"email":"[email protected]","author":"dgalbraith","message":"Add installation instructions using Chocolatey"},{"hash":"d332440a84917e771519af81882956ab0aca0a54","time":1646340761000,"email":"[email protected]","author":"dgalbraith","message":"Correct Winget installation instructions"},{"hash":"48efb61ed1889f219160d8e68aba154d7807ef3a","time":1634647284000,"email":"[email protected]","author":"Rashil Gandhi","message":"Add winget as installation method"},{"hash":"b713cd1d141caebb5b037ae8ff08bb97b75bd4e6","time":1634429468000,"email":"[email protected]","author":"Andrés N. Robalino","message":"(book/es,en) Moving around chapter revision."},{"hash":"b437d838bc9ea3420ef31b1443ea227b0f6e8552","time":1634422914000,"email":"[email protected]","author":"Andrés N. Robalino","message":"Small installation instructions update."},{"hash":"41b14fd8f7e7831aee141c6fc78d320cd53368d2","time":1632457683000,"email":"[email protected]","author":"Andrés N. Robalino","message":"Remove Docker image instructions."},{"hash":"94d0d9de0dafb97eb47ba2c6f2380ef82258d84c","time":1627164533000,"email":"[email protected]","author":"prrao87","message":"Fix typos + minor style changes"},{"hash":"fbb5c1f8555f455e002ce7e5e341b2514a0e2811","time":1615224867000,"email":"[email protected]","author":"Jake Vossen","message":"clear up docker installation instructions"},{"hash":"bcce33ce0c5b17cafb72082dcda77302d2c057e1","time":1605383573000,"email":"[email protected]","author":"Ibraheem Ahmed","message":"Merge Vuepress Site (#4)"},{"hash":"fb5e2d5755c116030afc8170d8ce64b3f92b0759","time":1595295858000,"email":"[email protected]","author":"Carson Black","message":"Migrate the book and set up translations"}]},"filePathRelative":"book/installation.md"}`),u={name:`installation.md`},d={class:`table-of-contents`};function f(o,l,u,f,p,m){let h=n(`router-link`),g=n(`RouteLink`);return a(),e(`div`,null,[l[14]||=s(`<h1 id="installing-nu" tabindex="-1"><a class="header-anchor" href="#installing-nu"><span>Installing Nu</span></a></h1><p>There are lots of ways to get Nu up and running. You can download pre-built binaries from our <a href="https://github.com/nushell/nushell/releases" target="_blank" rel="noopener noreferrer">release page</a>, <a href="https://repology.org/project/nushell/versions" target="_blank" rel="noopener noreferrer">use your favourite package manager</a>, or build from source.</p><p>The main Nushell binary is named <code>nu</code> (or <code>nu.exe</code> on Windows). After installation, you can launch it by typing <code>nu</code>.</p><div class="language-sh" data-highlighter="shiki" data-ext="sh" style="--shiki-light:#D4D4D4;--shiki-dark:#D4D4D4;--shiki-onedarkpro:#abb2bf;--shiki-light-bg:#1E1E1E;--shiki-dark-bg:#1E1E1E;--shiki-onedarkpro-bg:#282c34;"><pre class="shiki shiki-themes dark-plus dark-plus one-dark-pro vp-code"><code class="language-sh"><span class="line"><span style="--shiki-light:#DCDCAA;--shiki-dark:#DCDCAA;--shiki-onedarkpro:#61AFEF;">$</span><span style="--shiki-light:#CE9178;--shiki-dark:#CE9178;--shiki-onedarkpro:#98C379;"> nu</span></span> 2<span class="line"><span style="--shiki-light:#DCDCAA;--shiki-dark:#DCDCAA;--shiki-onedarkpro:#61AFEF;">/home/sophiajt/Source</span><span style="--shiki-light:#D4D4D4;--shiki-dark:#D4D4D4;--shiki-onedarkpro:#ABB2BF;">></span></span></code></pre></div>`,4),i(`nav`,d,[i(`ul`,null,[i(`li`,null,[t(h,{to:`#pre-built-binaries`},{default:r(()=>[...l[0]||=[c(`Pre-built Binaries`,-1)]]),_:1})]),i(`li`,null,[t(h,{to:`#package-managers`},{default:r(()=>[...l[1]||=[c(`Package Managers`,-1)]]),_:1})]),i(`li`,null,[t(h,{to:`#docker-container-images`},{default:r(()=>[...l[2]||=[c(`Docker Container Images`,-1)]]),_:1})]),i(`li`,null,[t(h,{to:`#build-from-source`},{default:r(()=>[...l[3]||=[c(`Build from Source`,-1)]]),_:1}),i(`ul`,null,[i(`li`,null,[t(h,{to:`#installing-a-compiler-suite`},{default:r(()=>[...l[4]||=[c(`Installing a Compiler Suite`,-1)]]),_:1})]),i(`li`,null,[t(h,{to:`#installing-rust`},{default:r(()=>[...l[5]||=[c(`Installing Rust`,-1)]]),_:1}
2)]),i(`li`,null,[t(h,{to:`#dependencies`},{default:r(()=>[...l[6]||=[c(`Dependencies`,-1)]]),_:1})]),i(`li`,null,[t(h,{to:`#build-from-crates-io-using-cargo`},{default:r(()=>[...l[7]||=[c(`Build from crates.io using Cargo`,-1)]]),_:1})]),i(`li`,null,[t(h,{to:`#building-from-the-github-repository`},{default:r(()=>[...l[8]||=[c(`Building from the GitHub repository`,-1)]]),_:1})])])])])]),l[15]||=s(`<h2 id="pre-built-binaries" tabindex="-1"><a class="header-anchor" href="#pre-built-binaries"><span>Pre-built Binaries</span></a></h2><p>Nu binaries are published for Linux, macOS, and Windows <a href="https://github.com/nushell/nushell/releases" target="_blank" rel="noopener noreferrer">with each GitHub release</a>. Just download, extract the binaries, then copy them to a location on your PATH.</p><h2 id="package-managers" tabindex="-1"><a class="header-anchor" href="#package-managers"><span>Package Managers</span></a></h2><p>Nu is available via several package managers:</p><p><a href="https://repology.org/project/nushell/versions" target="_blank" rel="noopener noreferrer"><img src="https://repology.org/badge/vertical-allrepos/nushell.svg" alt="Packaging status"></a></p><p>For macOS and Linux, <a href="https://brew.sh/" target="_blank" rel="noopener noreferrer">Homebrew</a> is a popular choice (<code>brew install nushell</code>).</p><p>For Windows:</p><ul><li><p><a href="https://docs.microsoft.com/en-us/windows/package-manager/winget/" target="_blank" rel="noopener noreferrer">Winget</a></p><ul><li>Machine scope installation: <code>winget install nushell --scope machine</code></li><li>Machine scope upgrade: <code>winget update nushell</code></li><li>User scope installation: <code>winget install nushell</code> or <code>winget install nushell --scope user</code></li><li>User scope upgrade: Due to <a href="https://github.com/microsoft/winget-cli/issues/3011" target="_blank" rel="noopener noreferrer">winget-cli issue #3011</a>, running <code>winget update nushell</code> will unexpectedly install the latest version to <code>C:\\Program Files\\nu</code>. To work around this, run <code>winget install nushell</code> again to install the latest version in the user scope.</li></ul></li><li><p><a href="https://scoop.sh/" target="_blank" rel="noopener noreferrer">Scoop</a> (<code>scoop install nu</code>)</p></li></ul><p>For Debian & Ubuntu:</p><div class="language-sh" data-highlighter="shiki" data-ext="sh" style="--shiki-light:#D4D4D4;--shiki-dark:#D4D4D4;--shiki-onedarkpro:#abb2bf;--shiki-light-bg:#1E1E1E;--shiki-dark-bg:#1E1E1E;--shiki-onedarkpro-bg:#282c34;"><pre class="shiki shiki-themes dark-plus dark-plus one-dark-pro vp-code"><code class="language-sh"><span class="line"><span style="--shiki-light:#DCDCAA;--shiki-dark:#DCDCAA;--shiki-onedarkpro:#61AFEF;">wget</span><span style="--shiki-light:#569CD6;--shiki-dark:#569CD6;--shiki-onedarkpro:#D19A66;"> -qO-</span><span style="--shiki-light:#CE9178;--shiki-dark:#CE9178;--shiki-onedarkpro:#98C379;"> https://apt.fury.io/nushell/gpg.key</span><span style="--shiki-light:#D4D4D4;--shiki-dark:#D4D4D4;--shiki-onedarkpro:#ABB2BF;"> | </span><span style="--shiki-light:#DCDCAA;--shiki-dark:#DCDCAA;--shiki-onedarkpro:#61AFEF;">sudo</span><span style="--shiki-light:#CE9178;--shiki-dark:#CE9178;--shiki-onedarkpro:#98C379;"> gpg</span><span style="--shiki-light:#569CD6;--shiki-dark:#569CD6;--shiki-onedarkpro:#D19A66;"> --dearmor</span><span style="--shiki-light:#569CD6;--shiki-dark:#569CD6;--shiki-onedarkpro:#D19A66;"> -o</span><span style="--shiki-light:#CE9178;--shiki-dark:#CE9178;--shiki-onedarkpro:#98C379;"> /etc/apt/keyrings/fury-nushell.gpg</span></span> 3<span class="line"><span style="--shiki-light:#DCDCAA;--shiki-dark:#DCDCAA;--shiki-onedarkpro:#56B6C2;">echo</span><span style="--shiki-light:#CE9178;--shiki-dark:#CE9178;--shiki-onedarkpro:#98C379;"> "deb [signed-by=/etc/apt/keyrings/fury-nushell.gpg] https://apt.fury.io/nushell/ /"</span><span style="--shiki-light:#D4D4D4;--shiki-dark:#D4D4D4;--shiki-onedarkpro:#ABB2BF;"> | </span><span style="--shiki-light:#DCDCAA;--shiki-dark:#DCDCAA;--shiki-onedarkpro:#61AFEF;">sudo</span><span style="--shiki-light:#CE9178;--shiki-dark:#CE9178;--shiki-onedarkpro:#98C379;"> tee</span><span style="--shiki-light:#CE9178;--shiki-dark:#CE9178;--shiki-onedarkpro:#98C379;"> /etc/apt/sources.list.d/fury-nushell.list</span></span> 4<span class="line"><span style="--shiki-light:#DCDCAA;--shiki-dark:#DCDCAA;--shiki-onedarkpro:#61AFEF;">sudo</span><span style="--shiki-light:#CE9178;--shiki-dark:#CE9178;--shiki-onedarkpro:#98C379;"> apt</span><span style="--shiki-light:#CE9178;--shiki-dark:#CE9178;--shiki-onedarkpro:#98C379;"> update</span></span> 5<span class="line"><span style="--shiki-light:#DCDCAA;--shiki-dark:#DCDCAA;--shiki-onedarkpro:#61AFEF;">sudo</span><span style="--shiki-light:#CE9178;--shiki-dark:#CE9178;--shiki-onedarkpro:#98C379;"> apt</span><span style="--shiki-light:#CE9178;--shiki-dark:#CE9178;--shiki-onedarkpro:#98C379;"> install</span><span style="--shiki-light:#CE9178;--shiki-dark:#CE9178;--shiki-onedarkpro:#98C379;"> nushell</span></span></code></pre></div><p>For RedHat/Fedora & Rocky Linux:</p><div class="language-sh" data-highlighter="shiki" data-ext="sh" style="--shiki-light:#D4D4D4;--shiki-dark:#D4D4D4;--shiki-onedarkpro:#abb2bf;--shiki-light-bg:#1E1E1E;--shiki-dark-bg:#1E1E1E;--shiki-onedarkpro-bg:#282c34;"><pre class="shiki shiki-themes dark-plus dark-plus one-dark-pro vp-code"><code class="language-sh"><span class="line"><span style="--shiki-light:#DCDCAA;--shiki-dark:#DCDCAA;--shiki-onedarkpro:#56B6C2;">echo</span><span style="--shiki-light:#CE9178;--shiki-dark:#CE9178;--shiki-onedarkpro:#98C379;"> "[gemfury-nushell]</span></span> 6<span class="line"><span style="--shiki-light:#CE9178;--shiki-dark:#CE9178;--shiki-onedarkpro:#98C379;">name=Gemfury Nushell Repo</span></span> 7<span class="line"><span style="--shiki-light:#CE9178;--shiki-dark:#CE9178;--shiki-onedarkpro:#98C379;">baseurl=https://yum.fury.io/nushell/</span></span> 8<span class="line"><span style="--shiki-light:#CE9178;--shiki-dark:#CE9178;--shiki-onedarkpro:#98C379;">enabled=1</span></span> 9<span class="line"><span style="--shiki-light:#CE9178;--shiki-dark:#CE9178;--shiki-onedarkpro:#98C379;">gpgcheck=0</span></span> 10<span class="line"><span style="--shiki-light:#CE9178;--shiki-dark:#CE9178;--shiki-onedarkpro:#98C379;">gpgkey=https://yum.fury.io/nushell/gpg.key"</span><span style="--shiki-light:#D4D4D4;--shiki-dark:#D4D4D4;--shiki-onedarkpro:#ABB2BF;"> | </span><span style="--shiki-light:#DCDCAA;--shiki-dark:#DCDCAA;--shiki-onedarkpro:#61AFEF;">sudo</span><span style="--shiki-light:#CE9178;--shiki-dark:#CE9178;--shiki-onedarkpro:#98C379;"> tee</span><span style="--shiki-light:#CE9178;--shiki-dark:#CE9178;--shiki-onedarkpro:#98C379;"> /etc/yum.repos.d/fury-nushell.repo</span></span> 11<span class="line"><span style="--shiki-light:#DCDCAA;--shiki-dark:#DCDCAA;--shiki-onedarkpro:#61AFEF;">sudo</span><span style="--shiki-light:#CE9178;--shiki-dark:#CE9178;--shiki-onedarkpro:#98C379;"> dnf</span><span style="--shiki-light:#CE9178;--shiki-dark:#CE9178;--shiki-onedarkpro:#98C379;"> install</span><span style="--shiki-light:#569CD6;--shiki-dark:#569CD6;--shiki-onedarkpro:#D19A66;"> -y</span><span style="--shiki-light:#CE9178;--shiki-dark:#CE9178;--shiki-onedarkpro:#98C379;"> nushell</span></span></code></pre></div><p>For Alpine Linux:</p><div class="language-sh" data-highlighter="shiki" data-ext="sh" style="--shiki-light:#D4D4D4;--shiki-dark:#D4D4D4;--shiki-onedarkpro:#abb2bf;--shiki-light-bg:#1E1E1E;--shiki-dark-bg:#1E1E1E;--shiki-onedarkpro-bg:#282c34;"><pre class="shiki shiki-themes dark-plus dark-plus one-dark-pro vp-code"><code class="language-sh"><span class="line"><span style="--shiki-light:#DCDCAA;--shiki-dark:#DCDCAA;--shiki-onedarkpro:#56B6C2;">echo</span><span style="--shiki-light:#CE9178;--shiki-dark:#CE9178;--shiki-onedarkpro:#98C379;"> "https://alpine.fury.io/nushell/"</span><span style="--shiki-light:#D4D4D4;--shiki-dark:#D4D4D4;--shiki-onedarkpro:#ABB2BF;"> | </span><span style="--shiki-light:#DCDCAA;--shiki-dark:#DCDCAA;--shiki-onedarkpro:#61AFEF;">tee</span><span style="--shiki-light:#569CD6;--shiki-dark:#569CD6;--shiki-onedarkpro:#D19A66;">
11 -a</span><span style="--shiki-light:#CE9178;--shiki-dark:#CE9178;--shiki-onedarkpro:#98C379;"> /etc/apk/repositories</span></span> 12<span class="line"><span style="--shiki-light:#DCDCAA;--shiki-dark:#DCDCAA;--shiki-onedarkpro:#61AFEF;">apk</span><span style="--shiki-light:#CE9178;--shiki-dark:#CE9178;--shiki-onedarkpro:#98C379;"> update</span></span> 13<span class="line"><span style="--shiki-light:#DCDCAA;--shiki-dark:#DCDCAA;--shiki-onedarkpro:#61AFEF;">apk</span><span style="--shiki-light:#CE9178;--shiki-dark:#CE9178;--shiki-onedarkpro:#98C379;"> add</span><span style="--shiki-light:#569CD6;--shiki-dark:#569CD6;--shiki-onedarkpro:#D19A66;"> --allow-untrusted</span><span style="--shiki-light:#CE9178;--shiki-dark:#CE9178;--shiki-onedarkpro:#98C379;"> nushell</span></span></code></pre></div><p>Cross Platform installation:</p><ul><li><a href="https://www.npmjs.com/" target="_blank" rel="noopener noreferrer">npm</a> (<code>npm install -g nushell</code> Note that nu plugins are not included if you install in this way)</li></ul><h2 id="docker-container-images" tabindex="-1"><a class="header-anchor" href="#docker-container-images"><span>Docker Container Images</span></a></h2><p>Docker images are available from the GitHub Container Registry. An image for the latest release is built regularly for Alpine and Debian. You can run the image in interactive mode using:</p><div class="language-nu" data-highlighter="shiki" data-ext="nu" style="--shiki-light:#D4D4D4;--shiki-dark:#D4D4D4;--shiki-onedarkpro:#abb2bf;--shiki-light-bg:#1E1E1E;--shiki-dark-bg:#1E1E1E;--shiki-onedarkpro-bg:#282c34;"><pre class="shiki shiki-themes dark-plus dark-plus one-dark-pro vp-code"><code class="language-nu"><span class="line"><span style="--shiki-light:#4EC9B0;--shiki-dark:#4EC9B0;--shiki-onedarkpro:#E5C07B;">docker</span><span style="--shiki-light:#CE9178;--shiki-dark:#CE9178;--shiki-onedarkpro:#98C379;"> run</span><span style="--shiki-light:#C586C0;--shiki-light-font-style:inherit;--shiki-dark:#C586C0;--shiki-dark-font-style:inherit;--shiki-onedarkpro:#C678DD;--shiki-onedarkpro-font-style:italic;"> -</span><span style="--shiki-light:#9CDCFE;--shiki-light-font-style:inherit;--shiki-dark:#9CDCFE;--shiki-dark-font-style:inherit;--shiki-onedarkpro:#E06C75;--shiki-onedarkpro-font-style:italic;">it</span><span style="--shiki-light:#C586C0;--shiki-light-font-style:inherit;--shiki-dark:#C586C0;--shiki-dark-font-style:inherit;--shiki-onedarkpro:#C678DD;--shiki-onedarkpro-font-style:italic;"> --</span><span style="--shiki-light:#9CDCFE;--shiki-light-font-style:inherit;--shiki-dark:#9CDCFE;--shiki-dark-font-style:inherit;--shiki-onedarkpro:#E06C75;--shiki-onedarkpro-font-style:italic;">rm</span><span style="--shiki-light:#CE9178;--shiki-dark:#CE9178;--shiki-onedarkpro:#98C379;"> ghcr.io/nushell/nushell:<version>-<distro></span></span></code></pre></div><p>Where <code><version></code> is the version of Nushell you want to run and <code><distro></code> is <code>alpine</code> or the latest supported Debian release, such as <code>bookworm</code>.</p><p>To run a specific command, use:</p><div class="language-nu" data-highlighter="shiki" data-ext="nu" style="--shiki-light:#D4D4D4;--shiki-dark:#D4D4D4;--shiki-onedarkpro:#abb2bf;--shiki-light-bg:#1E1E1E;--shiki-dark-bg:#1E1E1E;--shiki-onedarkpro-bg:#282c34;"><pre class="shiki shiki-themes dark-plus dark-plus one-dark-pro vp-code"><code class="language-nu"><span class="line"><span style="--shiki-light:#4EC9B0;--shiki-dark:#4EC9B0;--shiki-onedarkpro:#E5C07B;">docker</span><span style="--shiki-light:#CE9178;--shiki-dark:#CE9178;--shiki-onedarkpro:#98C379;"> run</span><span style="--shiki-light:#C586C0;--shiki-light-font-style:inherit;--shiki-dark:#C586C0;--shiki-dark-font-style:inherit;--shiki-onedarkpro:#C678DD;--shiki-onedarkpro-font-style:italic;"> --</span><span style="--shiki-light:#9CDCFE;--shiki-light-font-style:inherit;--shiki-dark:#9CDCFE;--shiki-dark-font-style:inherit;--shiki-onedarkpro:#E06C75;--shiki-onedarkpro-font-style:italic;">rm</span><span style="--shiki-light:#CE9178;--shiki-dark:#CE9178;--shiki-onedarkpro:#98C379;"> ghcr.io/nushell/nushell:latest-alpine</span><span style="--shiki-light:#C586C0;--shiki-light-font-style:inherit;--shiki-dark:#C586C0;--shiki-dark-font-style:inherit;--shiki-onedarkpro:#C678DD;--shiki-onedarkpro-font-style:italic;"> -</span><span style="--shiki-light:#9CDCFE;--shiki-light-font-style:inherit;--shiki-dark:#9CDCFE;--shiki-dark-font-style:inherit;--shiki-onedarkpro:#E06C75;--shiki-onedarkpro-font-style:italic;">c</span><span style="--shiki-light:#CE9178;--shiki-dark:#CE9178;--shiki-onedarkpro:#98C379;"> "ls /usr/bin | where size > 10KiB"</span></span></code></pre></div><p>To run a script from the current directory using Bash, use:</p><div class="language-nu" data-highlighter="shiki" data-ext="nu" style="--shiki-light:#D4D4D4;--shiki-dark:#D4D4D4;--shiki-onedarkpro:#abb2bf;--shiki-light-bg:#1E1E1E;--shiki-dark-bg:#1E1E1E;--shiki-onedarkpro-bg:#282c34;"><pre class="shiki shiki-themes dark-plus dark-plus one-dark-pro vp-code"><code class="language-nu"><span class="line"><span style="--shiki-light:#4EC9B0;--shiki-dark:#4EC9B0;--shiki-onedarkpro:#E5C07B;">
13docker</span><span style="--shiki-light:#CE9178;--shiki-dark:#CE9178;--shiki-onedarkpro:#98C379;"> run</span><span style="--shiki-light:#C586C0;--shiki-light-font-style:inherit;--shiki-dark:#C586C0;--shiki-dark-font-style:inherit;--shiki-onedarkpro:#C678DD;--shiki-onedarkpro-font-style:italic;"> --</span><span style="--shiki-light:#9CDCFE;--shiki-light-font-style:inherit;--shiki-dark:#9CDCFE;--shiki-dark-font-style:inherit;--shiki-onedarkpro:#E06C75;--shiki-onedarkpro-font-style:italic;">rm</span><span style="--shiki-light:#CE9178;--shiki-dark:#CE9178;--shiki-onedarkpro:#98C379;"> \\</span></span> 14<span class="line"><span style="--shiki-light:#CE9178;--shiki-dark:#CE9178;--shiki-onedarkpro:#98C379;"> -v</span><span style="--shiki-light:#D4D4D4;--shiki-dark:#D4D4D4;--shiki-onedarkpro:#ABB2BF;"> $(</span><span style="--shiki-light:#4EC9B0;--shiki-dark:#4EC9B0;--shiki-onedarkpro:#E5C07B;">pwd</span><span style="--shiki-light:#D4D4D4;--shiki-dark:#D4D4D4;--shiki-onedarkpro:#ABB2BF;">)</span><span style="--shiki-light:#CE9178;--shiki-dark:#CE9178;--shiki-onedarkpro:#98C379;">:/work</span><span style="--shiki-light:#CE9178;--shiki-dark:#CE9178;--shiki-onedarkpro:#98C379;"> \\</span></span> 15<span class="line"><span style="--shiki-light:#4EC9B0;--shiki-dark:#4EC9B0;--shiki-onedarkpro:#E5C07B;"> ghcr.io</span><span style="--shiki-light:#CE9178;--shiki-dark:#CE9178;--shiki-onedarkpro:#98C379;">/nushell/nushell:latest-alpine</span><span style="--shiki-light:#CE9178;--shiki-dark:#CE9178;--shiki-onedarkpro:#98C379;"> \\</span></span> 16<span class="line"><span style="--shiki-light:#CE9178;--shiki-dark:#CE9178;--shiki-onedarkpro:#98C379;"> "/work/script.nu"</span></span></code></pre></div><h2 id="build-from-source" tabindex="-1"><a class="header-anchor" href="#build-from-source"><span>Build from Source</span></a></h2><p>You can also build Nu from source. First, you will need to set up the Rust toolchain and its dependencies.</p><h3 id="installing-a-compiler-suite" tabindex="-1"><a class="header-anchor" href="#installing-a-compiler-suite"><span>Installing a Compiler Suite</span></a></h3><p>For Rust to work properly, you'll need to have a compatible compiler suite installed on your system. These are the recommended compiler suites:</p><ul><li>Linux: GCC or Clang</li><li>macOS: Clang (install Xcode)</li><li>Windows: MSVC (install <a href="https://visualstudio.microsoft.com/vs/community/" target="_blank" rel="noopener noreferrer">Visual Studio</a> or the <a href="https://visualstudio.microsoft.com/downloads/#build-tools-for-visual-studio-2022" target="_blank" rel="noopener noreferrer">Visual Studio Build Tools</a>) <ul><li>Make sure to install the "Desktop development with C++" workload</li><li>Any Visual Studio edition will work (Community is free)</li></ul></li></ul><h3 id="installing-rust" tabindex="-1"><a class="header-anchor" href="#installing-rust"><span>Installing Rust</span></a></h3><p>If you don't already have Rust on our system, the best way to install it is via <a href="https://rustup.rs/" target="_blank" rel="noopener noreferrer">rustup</a>. Rustup is a way of managing Rust installations, including managing using different Rust versions.</p><p>Nu currently requires the <strong>latest stable (1.66.1 or later)</strong> version of Rust. The best way is to let <code>rustup</code> find the correct version for you. When you first open <code>rustup</code> it will ask what version of Rust you wish to install:</p><div class="language-sh line-numbers-mode" data-highlighter="shiki" data-ext="sh" style="--shiki-light:#D4D4D4;--shiki-dark:#D4D4D4;--shiki-onedarkpro:#abb2bf;--shiki-light-bg:#1E1E1E;--shiki-dark-bg:#1E1E1E;--shiki-onedarkpro-bg:#282c34;"><pre class="shiki shiki-themes dark-plus dark-plus one-dark-pro vp-code"><code class="language-sh"><span class="line"><span style="--shiki-light:#DCDCAA;--shiki-dark:#DCDCAA;--shiki-onedarkpro:#61AFEF;">Current</span><span style="--shiki-light:#CE9178;--shiki-dark:#CE9178;--shiki-onedarkpro:#98C379;"> installation</span><span style="--shiki-light:#CE9178;--shiki-dark:#CE9178;--shiki-onedarkpro:#98C379;"> options:</span></span> 17<span class="line"></span> 18<span class="line"><span style="--shiki-light:#DCDCAA;--shiki-dark:#DCDCAA;--shiki-onedarkpro:#61AFEF;">default</span><span style="--shiki-light:#CE9178;--shiki-dark:#CE9178;--shiki-onedarkpro:#98C379;"> host</span><span style="--shiki-light:#CE9178;--shiki-dark:#CE9178;--shiki-onedarkpro:#98C379;"> triple:</span><span style="--shiki-light:#CE9178;--shiki-dark:#CE9178;--shiki-onedarkpro:#98C379;">
18 x86_64-unknown-linux-gnu</span></span> 19<span class="line"><span style="--shiki-light:#DCDCAA;--shiki-dark:#DCDCAA;--shiki-onedarkpro:#61AFEF;">default</span><span style="--shiki-light:#CE9178;--shiki-dark:#CE9178;--shiki-onedarkpro:#98C379;"> toolchain:</span><span style="--shiki-light:#CE9178;--shiki-dark:#CE9178;--shiki-onedarkpro:#98C379;"> stable</span></span> 20<span class="line"><span style="--shiki-light:#DCDCAA;--shiki-dark:#DCDCAA;--shiki-onedarkpro:#61AFEF;">profile:</span><span style="--shiki-light:#CE9178;--shiki-dark:#CE9178;--shiki-onedarkpro:#98C379;"> default</span></span> 21<span class="line"><span style="--shiki-light:#DCDCAA;--shiki-dark:#DCDCAA;--shiki-onedarkpro:#61AFEF;">modify</span><span style="--shiki-light:#CE9178;--shiki-dark:#CE9178;--shiki-onedarkpro:#98C379;"> PATH</span><span style="--shiki-light:#CE9178;--shiki-dark:#CE9178;--shiki-onedarkpro:#98C379;"> variable:</span><span style="--shiki-light:#CE9178;--shiki-dark:#CE9178;--shiki-onedarkpro:#98C379;"> yes</span></span> 22<span class="line"></span> 23<span class="line"><span style="--shiki-light:#DCDCAA;--shiki-dark:#DCDCAA;--shiki-onedarkpro:#61AFEF;">1</span><span style="--shiki-light:#D4D4D4;--shiki-dark:#D4D4D4;--shiki-onedarkpro:#ABB2BF;">) Proceed with installation (</span><span style="--shiki-light:#DCDCAA;--shiki-dark:#DCDCAA;--shiki-onedarkpro:#61AFEF;">default</span><span style="--shiki-light:#D4D4D4;--shiki-dark:#D4D4D4;--shiki-onedarkpro:#ABB2BF;">)</span></span> 24<span class="line"><span style="--shiki-light:#DCDCAA;--shiki-dark:#DCDCAA;--shiki-onedarkpro:#61AFEF;">2</span><span style="--shiki-light:#D4D4D4;--shiki-dark:#D4D4D4;--shiki-onedarkpro:#ABB2BF;">) Customize installation</span></span> 25<span class="line"><span style="--shiki-light:#DCDCAA;--shiki-dark:#DCDCAA;--shiki-onedarkpro:#61AFEF;">3</span><span style="--shiki-light:#D4D4D4;--shiki-dark:#D4D4D4;--shiki-onedarkpro:#ABB2BF;">) Cancel installation</span></span></code></pre><div class="line-numbers" aria-hidden="true" style="counter-reset:line-number 0;"><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div></div></div><p>Once you are ready, press 1 and then enter.</p><p>If you'd rather not install Rust via <code>rustup</code>, you can also install it via other methods (e.g. from a package in a Linux distro). Just be sure to install a version of Rust that is 1.66.1 or later.</p><h3 id="dependencies" tabindex="-1"><a class="header-anchor" href="#dependencies"><span>Dependencies</span></a></h3><h4 id="debian-ubuntu" tabindex="-1"><a class="header-anchor" href="#debian-ubuntu"><span>Debian/Ubuntu</span></a></h4><p>You will need to install the "pkg-config", "build-essential" and "libssl-dev" packages:</p><div class="language-sh" data-highlighter="shiki" data-ext="sh" style="--shiki-light:#D4D4D4;--shiki-dark:#D4D4D4;--shiki-onedarkpro:#abb2bf;--shiki-light-bg:#1E1E1E;--shiki-dark-bg:#1E1E1E;--shiki-onedarkpro-bg:#282c34;"><pre class="shiki shiki-themes dark-plus dark-plus one-dark-pro vp-code"><code class="language-sh"><span class="line"><span style="--shiki-light:#DCDCAA;--shiki-dark:#DCDCAA;--shiki-onedarkpro:#61AFEF;">apt</span><span style="--shiki-light:#CE9178;--shiki-dark:#CE9178;--shiki-onedarkpro:#98C379;"> install</span><span style="--shiki-light:#CE9178;--shiki-dark:#CE9178;--shiki-onedarkpro:#98C379;"> pkg-config</span><span style="--shiki-light:#CE9178;--shiki-dark:#CE9178;--shiki-onedarkpro:#98C379;"> libssl-dev</span><span style="--shiki-light:#CE9178;--shiki-dark:#CE9178;--shiki-onedarkpro:#98C379;"> build-essential</span></span></code></pre></div><h4 id="rhel-based-distros" tabindex="-1"><a class="header-anchor" href="#rhel-based-distros"><span>RHEL based distros</span></a></h4><p>You will need to install "libxcb", "openssl-devel" and "libX11-devel":</p><div class="language-sh" data-highlighter="shiki" data-ext="sh" style="--shiki-light:#D4D4D4;--shiki-dark:#D4D4D4;--shiki-onedarkpro:#abb2bf;--shiki-light-bg:#1E1E1E;--shiki-dark-bg:#1E1E1E;--shiki-onedarkpro-bg:#282c34;"><pre class="shiki shiki-themes dark-plus dark-plus one-dark-pro vp-code"><code class="language-sh"><span class="line"><span style="--shiki-light:#DCDCAA;--shiki-dark:#DCDCAA;--shiki-onedarkpro:#61AFEF;">yum</span><span style="--shiki-light:#CE9178;--shiki-dark:#CE9178;--shiki-onedarkpro:#98C379;"> install</span><span style="--shiki-light:#CE9178;--shiki-dark:#CE9178;--shiki-onedarkpro:#98C379;"> libxcb</span><span style="--shiki-light:#CE9178;--shiki-dark:#CE9178;--shiki-onedarkpro:#98C379;"> openssl-devel</span><span style="--shiki-light:#CE9178;--shiki-dark:#CE9178;--shiki-onedarkpro:#98C379;"> libX11-devel</span></span></code></pre></div><h4 id="macos" tabindex="-1"><a class="header-anchor" href="#macos"><span>macOS</span></a></h4><h5 id="homebrew" tabindex="-1"><a class="header-anchor" href="#homebrew"><span>Homebrew</span></a></h5><p>Using <a href="https://brew.sh/" target="_blank" rel="noopener noreferrer">Homebrew</a>, you will need to install "openssl" and "cmake" using:</p><div class="language-sh" data-highlighter="shiki" data-ext="sh" style="--shiki-light:#D4D4D4;--shiki-dark:#D4D4D4;--shiki-onedarkpro:#abb2bf;--shiki-light-bg:#1E1E1E;--shiki-dark-bg:#1E1E1E;--shiki-onedarkpro-bg:#282c34;"><pre class="shiki shiki-themes dark-plus dark-plus one-dark-pro vp-code"><code class="language-sh"><span class="line"><span style="--shiki-light:#DCDCAA;--shiki-dark:#DCDCAA;--shiki-onedarkpro:#61AFEF;">brew</span><span style="--shiki-light:#CE9178;--shiki-dark:#CE9178;--shiki-onedarkpro:#98C379;"> install</span><span style="--shiki-light:#CE9178;--shiki-dark:#CE9178;--shiki-onedarkpro:#98C379;"> openssl</span><span style="--shiki-light:#CE9178;--shiki-dark:#CE9178;--shiki-onedarkpro:#98C379;"> cmake</span></span></code></pre></div><h5 id="nix" tabindex="-1"><a class="header-anchor" href="#nix"><span>Nix</span></a></h5><p>
25If using <a href="https://nixos.org/download/#nix-install-macos" target="_blank" rel="noopener noreferrer">Nix</a> for package management on macOS, the <code>openssl</code>, <code>cmake</code>, <code>pkg-config</code>, and <code>curl</code> packages are required. These can be installed:</p><ul><li>Globally, using <code>nix-env --install</code> (and others).</li><li>Locally, using <a href="https://github.com/nix-community/home-manager" target="_blank" rel="noopener noreferrer">Home Manager</a> in your <code>home.nix</code> config.</li><li>Temporarily, using <code>nix-shell</code> (and others).</li></ul><h3 id="build-from-crates-io-using-cargo" tabindex="-1"><a class="header-anchor" href="#build-from-crates-io-using-cargo"><span>Build from <a href="https://crates.io" target="_blank" rel="noopener noreferrer">crates.io</a> using Cargo</span></a></h3><p>Nushell releases are published as source to the popular Rust package registry <a href="https://crates.io/" target="_blank" rel="noopener noreferrer">crates.io</a>. This makes it easy to build and install the latest Nu release with <code>cargo</code>:</p><div class="language-nu" data-highlighter="shiki" data-ext="nu" style="--shiki-light:#D4D4D4;--shiki-dark:#D4D4D4;--shiki-onedarkpro:#abb2bf;--shiki-light-bg:#1E1E1E;--shiki-dark-bg:#1E1E1E;--shiki-onedarkpro-bg:#282c34;"><pre class="shiki shiki-themes dark-plus dark-plus one-dark-pro vp-code"><code class="language-nu"><span class="line"><span style="--shiki-light:#4EC9B0;--shiki-dark:#4EC9B0;--shiki-onedarkpro:#E5C07B;">cargo</span><span style="--shiki-light:#CE9178;--shiki-dark:#CE9178;--shiki-onedarkpro:#98C379;"> install</span><span style="--shiki-light:#CE9178;--shiki-dark:#CE9178;--shiki-onedarkpro:#98C379;"> nu</span><span style="--shiki-light:#C586C0;--shiki-light-font-style:inherit;--shiki-dark:#C586C0;--shiki-dark-font-style:inherit;--shiki-onedarkpro:#C678DD;--shiki-onedarkpro-font-style:italic;"> --</span><span style="--shiki-light:#9CDCFE;--shiki-light-font-style:inherit;--shiki-dark:#9CDCFE;--shiki-dark-font-style:inherit;--shiki-onedarkpro:#E06C75;--shiki-onedarkpro-font-style:italic;">locked</span></span></code></pre></div><p>The <code>cargo</code> tool will do the work of downloading Nu and its source dependencies, building it, and installing it into the cargo bin path.</p>`,53),i(`p`,null,[l[10]||=c(`Note that the default plugins must be installed separately when using `,-1),l[11]||=i(`code`,null,`cargo`,-1),l[12]||=c(`. See the `,-1),t(g,{to:`/book/plugins.html#core-plugins`},{default:r(()=>[...l[9]||=[c(`Plugins Installation`,-1)]]),_:1}),l[13]||=c(` section of the Book for instructions.`,-1)]),l[16]||=s(`<h3 id="building-from-the-github-repository" tabindex="-1"><a class="header-anchor" href="#building-from-the-github-repository"><span>Building from the GitHub repository</span></a></h3><p>You can also build Nu from the latest source on GitHub. This gives you immediate access to the latest features and bug fixes. First, clone the repo:</p><div class="language-sh" data-highlighter="shiki" data-ext="sh" style="--shiki-light:#D4D4D4;--shiki-dark:#D4D4D4;--shiki-onedarkpro:#abb2bf;--shiki-light-bg:#1E1E1E;--shiki-dark-bg:#1E1E1E;--shiki-onedarkpro-bg:#282c34;"><pre class="shiki shiki-themes dark-plus dark-plus one-dark-pro vp-code"><code class="language-sh"><span class="line"><span style="--shiki-light:#DCDCAA;--shiki-dark:#DCDCAA;--shiki-onedarkpro:#61AFEF;">git</span><span style="--shiki-light:#CE9178;--shiki-dark:#CE9178;--shiki-onedarkpro:#98C379;"> clone</span><span style="--shiki-light:#CE9178;--shiki-dark:#CE9178;--shiki-onedarkpro:#98C379;"> https://github.com/nushell/nushell.git</span></span></code></pre></div><p>From there, we can build and run Nu with:</p><div class="language-sh" data-highlighter="shiki" data-ext="sh" style="--shiki-light:#D4D4D4;--shiki-dark:#D4D4D4;--shiki-onedarkpro:#abb2bf;--shiki-light-bg:#1E1E1E;--shiki-dark-bg:#1E1E1E;--shiki-onedarkpro-bg:#282c34;"><pre class="shiki shiki-themes dark-plus dark-plus one-dark-pro vp-code"><code class="language-sh"><span class="line"><span style="--shiki-light:#DCDCAA;--shiki-dark:#DCDCAA;--shiki-onedarkpro:#56B6C2;">cd</span><span style="--shiki-light:#CE9178;--shiki-dark:#CE9178;--shiki-onedarkpro:#98C379;"> nushell</span></span> 26<span class="line"><span style="--shiki-light:#6A9955;--shiki-light-font-style:inherit;--shiki-dark:#6A9955;--shiki-dark-font-style:inherit;--shiki-onedarkpro:#7F848E;--shiki-onedarkpro-font-style:italic;"># ./nushell</span></span> 27<span class="line"><span style="--shiki-light:#DCDCAA;--shiki-dark:#DCDCAA;--shiki-onedarkpro:#61AFEF;">cargo</span><span style="--shiki-light:#CE9178;--shiki-dark:#CE9178;--shiki-onedarkpro:#98C379;"> build</span><span style="--shiki-light:#569CD6;--shiki-dark:#569CD6;--shiki-onedarkpro:#D19A66;"> --workspace</span><span style="--shiki-light:#D4D4D4;--shiki-dark:#D4D4D4;--shiki-onedarkpro:#ABB2BF;">; </span><span style="--shiki-light:#DCDCAA;--shiki-dark:#DCDCAA;--shiki-onedarkpro:#61AFEF;">cargo</span><span style="--shiki-light:#CE9178;--shiki-dark:#CE9178;--shiki-onedarkpro:#98C379;"> run</span></span></code></pre></div><p>You can also build and run Nu in release mode, which enables more optimizations:</p><div class="language-sh" data-highlighter="shiki" data-ext="sh" style="--shiki-light:#D4D4D4;--shiki-dark:#D4D4D4;--shiki-onedarkpro:#abb2bf;--shiki-light-bg:#1E1E1E;--shiki-dark-bg:#1E1E1E;--shiki-onedarkpro-bg:#282c34;"><pre class="shiki shiki-themes dark-plus dark-plus one-dark-pro vp-code"><code class="language-sh"><span class="line"><span style="--shiki-light:#DCDCAA;--shiki-dark:#DCDCAA;--shiki-onedarkpro:#61AFEF;">cargo</span><span style="--shiki-light:#CE9178;--shiki-dark:#CE9178;--shiki-onedarkpro:#98C379;"> build</span><span style="--shiki-light:#569CD6;--shiki-dark:#569CD6;--shiki-onedarkpro:#D19A66;"> --release</span><span style="--shiki-light:#569CD6;--shiki-dark:#569CD6;--shiki-onedarkpro:#D19A66;"> --workspace</span><span style="--shiki-light:#D4D4D4;--shiki-dark:#D4D4D4;--shiki-onedarkpro:#ABB2BF;">; </span><span style="--shiki-light:#DCDCAA;--shiki-dark:#DCDCAA;--shiki-onedarkpro:#61AFEF;">cargo</span><span style="--shiki-light:#CE9178;--shiki-dark:#CE9178;--shiki-onedarkpro:#98C379;"> run</span><span style="--shiki-light:#569CD6;--shiki-dark:#569CD6;--shiki-onedarkpro:#D19A66;"> --release</span></span></code></pre></div><p>People familiar with Rust may wonder why we do both a "build" and a "run" step if "run" does a build by default. This is to get around a shortcoming of the new <code>default-run</code> option in Cargo, and ensure that all plugins are built, though this may not be required in the future.</p>`,8)])}var p=o(u,[[`render`,f]]);export{l as _pageData,p as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.