Git Product home page Git Product logo

keencli's Introduction

keencli

Bash script to control Keenetic routers via HTTP API

version license linters tests


keencli


Requirements

  • GNU/Linux or macOS with Bash 4+
  • yq
  • curl

Supported routers

Tested with KeeneticOS 3.5+

Install

Download bash script there and make it executable:

wget https://github.com/tolkonepiu/keencli/raw/main/keencli
chmod +x keencli

Usage

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>

Development

keencli uses bashly for generating the one-file script from files in the src directory

  1. Install bashly (requires ruby):

    gem install bashly
  2. Edit code in src directory

  3. Generate script:

    bashly generate --upgrade

keencli's People

Contributors

renovate[bot] avatar tolkonepiu avatar

Stargazers

 avatar

Watchers

 avatar  avatar

keencli's Issues

Add hotspot and ntce summary information

Add commands for hostspot and ntce summary:

sumbytes:

keencli request "/rci/show/ip/hotspot/summary?attribute=sumbytes&count=10&detail=3"

sumspeed:

keencli request "/rci/show/ip/hotspot/summary?attribute=sumspeed&count=10&detail=3"

ntce applications:

keencli request "/rci/show/ntce/summary?application=true&attrib=sumbytes&count=5&detail=3"

ntce categories:

keencli request "/rci/show/ntce/summary?group=true&attrib=sumbytes&count=5&detail=3"

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

This repository currently has no open or pending branches.

Detected dependencies

github-actions
.github/workflows/linters.yml
  • actions/checkout v4
  • reviewdog/action-yamllint v1
  • actions/checkout v4
  • reviewdog/action-shellcheck v1
  • actions/checkout v4
  • reviewdog/action-shfmt v1
  • actions/checkout v4
  • reviewdog/action-markdownlint v0
  • actions/checkout v4
  • ruby/setup-ruby v1
  • reviewdog/action-suggester v1
.github/workflows/tests.yml
  • mig4/setup-bats v1
  • actions/checkout v4
regex
.github/workflows/linters.yml
  • ruby 3.2.2
  • DannyBen/bashly 1.1.0
.github/workflows/tests.yml
  • bats-core/bats-core 1.10.0

  • Check this box to trigger a request for Renovate to run again on this repository

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.