Tested with KeeneticOS 3.5+
Download bash script there and make it executable:
wget https://github.com/tolkonepiu/keencli/raw/main/keencli
chmod +x keencli
An keencli command has the following structure:
keencli <command> <subcommand> [options and parameters]
For example, to view system information, the command would be:
keencli show system
To view help documentation, use one of the following:
keencli --help
keencli <command> --help
keencli <command> <subcommand> --help
To get the version of the keencli:
keencli --version
To turn on debugging output:
DEBUG=1 keencli <command> <subcommand>
To turn off color output:
NO_COLOR=1 keencli <command> <subcommand>
keencli uses bashly for generating the one-file script from files in the src directory
-
Install bashly (requires ruby):
gem install bashly
-
Edit code in src directory
-
Generate script:
bashly generate --upgrade