https://github.com/tolkonepiu/keencli
Bash script to control Keenetic routers via HTTP API
https://github.com/tolkonepiu/keencli
bash-script keenetic keenetic-routers zyxel zyxel-keenetic
Last synced: 5 months ago
JSON representation
Bash script to control Keenetic routers via HTTP API
- Host: GitHub
- URL: https://github.com/tolkonepiu/keencli
- Owner: tolkonepiu
- License: mit
- Created: 2023-10-02T06:55:13.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2025-12-23T02:20:45.000Z (6 months ago)
- Last Synced: 2025-12-24T16:36:50.131Z (6 months ago)
- Topics: bash-script, keenetic, keenetic-routers, zyxel, zyxel-keenetic
- Language: Shell
- Homepage:
- Size: 425 KB
- Stars: 6
- Watchers: 1
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# keencli
Bash script to control Keenetic routers via HTTP API
[

](https://github.com/tolkonepiu/keencli/releases/latest)
[

](LICENSE)
[

](https://github.com/tolkonepiu/keencli/actions/workflows/linters.yml?query=branch%3Amain)
[

](https://github.com/tolkonepiu/keencli/actions/workflows/tests.yml?query=branch%3Amain)
---
[](https://asciinema.org/a/612771?autoplay=1)
---
## Requirements
- GNU/Linux or macOS with Bash 4+
- [yq](https://mikefarah.gitbook.io/yq/)
- [curl](https://curl.se)
## Supported routers
Tested with KeeneticOS 3.5+
## Install
Download bash script there and make it executable:
```sh
wget https://github.com/tolkonepiu/keencli/raw/main/keencli
chmod +x keencli
```
## Usage
An keencli command has the following structure:
```sh
keencli [options and parameters]
```
For example, to view system information, the command would be:
```sh
keencli show system
```
To view help documentation, use one of the following:
```sh
keencli --help
keencli --help
keencli --help
```
To get the version of the keencli:
```sh
keencli --version
```
To turn on debugging output:
```sh
DEBUG=1 keencli
```
To turn off color output:
```sh
NO_COLOR=1 keencli
```
## Development
keencli uses [bashly](https://github.com/DannyBen/bashly/) for generating
the one-file script from files in the [src](src) directory
1. Install bashly (requires ruby):
```sh
gem install bashly
```
1. Edit code in [src](src) directory
1. Generate script:
```sh
bashly generate --upgrade
```