Skip to main content
Documentation

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.

Download Nexigon CLI 0.6.0 for your platform:

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 either a user access token starting with u_sk or an organization API token starting with org_sk. Organization token access is limited by the tokenโ€™s policy.

Nexigon Hub URL: https://eu.nexigon.cloud/
User or Organization API 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>]*