Skip to main content
Documentation
Preview
You're viewing the Next docs β€” a rolling preview of in-development changes. The current release docs may differ.

Nexigon CLI

Nexigon CLI is a command line tool to interact with Nexigon Hub and access devices remotely.

Installation and Setup

For older builds and checksums, see the Nexigon CLI releases.

Nexigon CLI 0.6 is not released yet. For installation instructions and downloads for the current release, see the 0.5 documentation.

On Linux and macOS, ensure that the binary is executable with chmod +x nexigon-cli.

If you want, put the binary into some global directory for executables, e.g., ~/.local/bin.

Configure Nexigon CLI by running the following command:

nexigon-cli configure

You need to provide the URL to your Nexigon Hub instance and a user access token starting with u_sk:

Nexigon Hub URL: https://eu.nexigon.cloud/
User Access Token: [hidden]

The configure command will create a file ~/.nexigon/cli.toml with the following structure:

~/.nexigon/cli.toml
hub-url = "https://eu.nexigon.cloud/"
token = "u_sk_Ufw5NttTcMJYJFVw4pHBxB2HpwztZkn1Emou6XvLtk5R332a3NT71xhR2xxhTp6MFd"

Port Forwarding

Agent 0.6 permits a remote port if it is declared as an HTTP export, appears in the enabled forwarding.allowed-tcp-ports list, or the device enables forwarding.allow-all-ports. See the agent configuration guide.

To forward a port to your local machine, use the following command:

nexigon-cli forward <device id> [<local port>:<remote port>]*