This projects provides a golang API and a command line tool to access the Nordic Power Profile Kit 2. The code is heavily based on the the ppk2-api-python project.
Usage: ppk2-cli [OPTION]
-l, --list List PPK2 devices
-p, --port port Serial port of device
-s, --sample-time seconds Sample time in seconds (default 0.1)
--sn sn Serial number (sn) of device
--source Source the target, needs voltage to be specified
--time seconds The application quits after the given number of seconds
--version Display the version and exit
--voltage mV Voltage (in mV) to source or expected voltage in ampere meter mode
As this code is mostly based on ppk2-api-python it uses the same licesne which is the GPLv2.