A command-line interface for controlling Turing Pi boards.
Download the appropriate binary for your platform from the Releases page.
git clone https://github.com/davidroman0O/tpi.git
cd tpi/cli
go buildtpi [command] [flags]
# Power on node 1
tpi power on 1 --host=192.168.1.91
# Check power status
tpi power status --host=192.168.1.91
# Get information about the board
tpi info --host=192.168.1.91
# Set USB device mode for node 2
tpi usb device 2 --host=192.168.1.91
# Login and cache credentials
tpi auth login --host=192.168.1.91about- Display detailed information about the BMC daemonadvanced- Configure advanced node modes (normal, MSD)auth- Manage authentication and token persistenceeth- Configure the on-board Ethernet switchfirmware- Upgrade the firmware of the BMCflash- Flash a given node with an OS imageinfo- Print Turing Pi infopower- Power on/off or reset specific nodesreboot- Reboot the BMC chipuart- Read or write over UARTusb- Change the USB device/host configurationversion- Print version information
--host,-H- BMC hostname or IP address--user,-u- BMC username--password,-p- BMC password--api-version,-a- Force which version of the BMC API to use
The CLI supports caching authentication tokens for convenience:
# Login and cache token
tpi auth login --host=192.168.1.91
# Check authentication status
tpi auth status
# Logout/clear token
tpi auth logout --host=192.168.1.91Apache License 2.0