/hikctl

Configuration management tool for Hikvision devices. 海康威视配置管理工具.

Primary LanguageGoGNU General Public License v3.0GPL-3.0

hikctl

PkgGoDev Go Report Card ci

Important: This tool is still under heavy development so only a basic set of configuration variables are available. This will be gradually expanded over time.

Configuration management tool for Hikvision devices.

The hikctl command line tool, inspired by the kubectl tool for Kubernetes, aims to provide a declarative way to manage configuration on Hikvision devices.

Install

Compile from source

To compile hikctl from source, clone the git repository.

git clone https://github.com/loozhengyuan/hikctl.git && cd hikctl

Next, run go install, which will compile the binary and install it to the $GOPATH/bin directory.

go install

Check that the binary is correctly installed by running hikctl version

hikctl version

Usage

Applying a configuration file

First, start by creating a set of configuration variables in a yaml file.

version: v0

To apply the configuration file, run the hikctl apply command as shown below.

hikctl apply hikvision.yaml

License

GPL-3.0