安装 Nocalhost¶
nhctl
安装Nocalhost IDE插件时,它将自动为您安装nhctl。
兼容的¶
| IDE | Version | Result |
|---|---|---|
| VS Code | 1.58.2 (Universal) | |
| JetBrains | 2021.2 - Intel and Apple Silicon | |
| 2021.1 - Intel and Apple Silicon | ||
| 2020.3 - Intel and Apple Silicon |
安装 VS 代码插件¶
- 打开VS Code,点击
图标,进入Extensions - 在搜索框中输入
Nocalhost - 选择
Nocalhost Extension,然后点击 Install 按钮。

- 从我们的Github Repo下载最新版本
- 打开VS Code,点击
图标,进入 Extensions - 点击
Extension列表右上方的
,选择Install from VSIX…,选择上文下载的VSIX - 从Github Repo下载最新的nhctl,并把它放在
~/.nh/bin/下,然后命名为nhctl,你需要给这个二进制执行权限(chmod +x ./nhctl)。 (windows下的路径是%homepath%/.nh/bin/,二进制文件名为nhctl.exe,不需要在windows下授予额外的执行权限)

安装 Jetbrains 插件¶
Windows¶
File > Settings > Plugins > Browse repositories... > Search for "Nocalhost" > Install Plugin
MacOS¶
Preferences > Settings > Plugins > Browse repositories... > Search for "Nocalhost" > Install Plugin

- 从我们的GitHub Repo下载最新版本
- 安装插件: Preferences > Plugins > Install from disk...
- 从GitHub Repo下载最新的NHCTL, 并把它放在
~/.nh/bin/然后命名为 nhctl, 您需要授予此二进制执行权限 (chmod +x ./nhctl). (在Windows中路径是 %homepath%/.nh/bin/ , 和二进制命名 'nhctl.exe', 无需授予Windows下的额外执行权限)

升级插件¶
IDE 启动时,Nocalhost 将自动检查并安装最新的更新。
卸载¶
您可以通过以下内容完全卸载 nocalhost
卸载 IDE 插件¶
卸载 IDE 中的 Nocalhost IDE 插件
删除 nhctl¶
删除根目录中的.nh文件夹
.nh 文件夹在您的~/目录中, 您可以通过以下命令将其删除
.nh 文件夹在您的<ROOT PATH>/User/username/目录中, 您可以删除它.