qnapcli

0.1.12 • Public • Published

QNAP CLI Utility

NPM Version Build Status

This utility allows you send command to your QNAP.

Installation

Install this CLI globally:

[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:

qnapcli <command> [options]

Command:

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

Global Options:

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

Some Examples:

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

Package Sidebar

Install

npm i qnapcli

Weekly Downloads

11

Version

0.1.12

License

none

Last publish

Collaborators

  • tommaso.marchionni