项目作者: tommasomarchionni

项目描述 :
Qnap command client
高级语言: JavaScript
项目地址: git://github.com/tommasomarchionni/qnapcli.git
创建时间: 2017-01-15T13:58:04Z
项目社区:https://github.com/tommasomarchionni/qnapcli

开源协议:MIT License

下载


QNAP CLI Utility

NPM Version
Build Status

This utility allows you send command to your QNAP.

Installation

Install this CLI globally:

  1. [sudo] npm install -g qnapcli

Features

  • Allows the QNAP to beep.
  • Force QNAP to restart.
  • Force QNAP to shutdown.
  • Force QNAP to sleep.

Usage

qnapcli is mostly self documenting. After installation, run the qnapcli --help command from your command line.

Usage:

  1. qnapcli <command> [options]

Command:

  1. beep make qnap beep
  2. options:
  3. --count how many times you want beep? Default is 1
  4. --interval how much time in milliseconds from one beep to another? Default is 1000
  5. restart force qnap to restart
  6. shutdown force qnap to shutdown
  7. sleep force qnap to sleep

Global Options:

  1. --protocol the protocol to use, default is https
  2. --host the host to use, required
  3. --port the port to use, default is 443
  4. --username the user to authenticate as, required
  5. --password the user's password, required
  6. --strictssl if 1, requires SSL certificates be valid, default is 1
  7. --timeout timeout in milliseconds for request, default is 5000

Some Examples:

  1. qnapcli beep --host=192.168.0.100 --username=admin --password=password --strictssl=0 --protocol=http --port=8080
  2. qnapcli beep --host=192.168.0.100 --username=admin --password=password --count=4
  3. qnapcli beep --host=username.myqnapcloud.com --username=admin --password=password
  4. qnapcli restart --host=username.myqnapcloud.com --username=admin --password=password