Skip to main content

Nexigon CLI

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

Installation and Setup​

Download the most recent version of Nexigon Cli 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 a user access token starting with u_sk:

Nexigon Hub URL: https://demo.nexigon.dev/
User Access Token: [hidden]

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

~/.nexigon/cli.toml
hub-url = "https://demo.nexigon.dev/"
token = "u_sk_Ufw5NttTcMJYJFVw4pHBxB2HpwztZkn1Emou6XvLtk5R332a3NT71xhR2xxhTp6MFd"

Port Forwarding​

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

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