Installation
nhctl
The Nocalhost command-line tool: nhctl, allows you to run commands against Nocalhost. You can use nhctl to install application, switch services to DevMode, sync codes, forward ports. See nhctl for full list of sub commands.
Install nhctl on Linux
Install nhctl binary with curl on Linux
- Download the latest release with command:
curl -sL https://git.io/JLsgQ | sh
- Make the nhctl binary executable.
chmod +x ./nhctl
- Move nhctl binary in to your PATH.
sudo mv ./nhctl /usr/local/bin/nhctl
- Test you installed.
nhctl version
Install nhctl using package management
If you are on Linux and using Homebrew package manager, nhctl is available for installation.
brew install nocalhost/repo/nocalhost
nhctl version
Install nhctl on macOS
Install nhctl binary with curl on macOS
- Download the latest release with command:
curl -sL https://git.io/JLsgQ | sh
- Make the nhctl binary executable.
chmod +x ./nhctl
- Move nhctl binary in to your PATH.
sudo mv ./nhctl /usr/local/bin/nhctl
- Test you installed.
nhctl version
Install nhctl with Homebrew on macOS
- Run the installation command
brew install nocalhost/repo/nocalhost
- Test you installed
nhctl version
Install nhctl on Windows
Install nhctl with installer
- Download the installer file from this link.
- Use the installer to install nhctl, kubectl and helm. It will automatically add the installation directory to your PATH.
- Open the CMD or PowerShell, test you installed.
nhctl version
Install nhctl binary on Windows
- Download the latest release from this link.
Or if you have curl installed, use this command:curl -L "https://github.com/nocalhost/nocalhost/releases/latest/download/nhctl-windows-amd64.exe" -o nhctl.exe
- Add nhctl binary in to your PATH.
- Test you installed.
nhctl version
You will see:
nhctl: Nocalhost CLI
Version: v0.0.5
Git commit: 605cbf149a4b4d8983111b8984111365a5f54192
Built: Sat Dec 12 13:29:03 2020
OS/Arch: linux/amd64
Go version: go1.14.4
Install Nocalhost VScode Plugin
The Nocalhost VScode Plugin allows you to use Nocalhost on VSCode Editor. You can install application, open DevSpace, start DevMode in VSCode conveniently.
Install Nocalhost VScode Plugin on VScode Marketplace
Follow this link: https://marketplace.visualstudio.com/items?itemName=nocalhost.nocalhost
Or Install Nocalhost VScode Plugin on VScode Editor
- Open the VScode Editor, and click left bar "Extensions" icon.
- Type "nocalhost" in the search input box.
- Select the "nocalhost-vscode-plugin", and the click install button to install.