qckwinsvc2_updated

1.0.3 • Public • Published

drawing Quick Windows Service 2

dependencies devDependencies npm module

CLI tool that installs/uninstalls your NodeJS app as a windows service. qckwinsvc2 is a Wrapper around node-windows.

This is a new version based on qckwinsvc which is not maintained anymore. This new CLI supports additional features such as argument passing.

Special thanks to tallesl

Made with ♡ by Suyeon® feel free to download, modify or publish this code as you want.

Visit suyeon.org for more information.

Setup

npm i qckwinsvc2 -g

Table of Contents

  1. Installing your service
  2. Uninstalling your service
  3. List installed services
  4. Start/Stop services
  5. Disclaimer

Installing your service

Interactively

> qckwinsvc2 install
[INPUT] Please provide a name for your service: Hello
[INPUT] Please provide a description for your service: Greets the world
[INPUT] Please provide your script's path:  C:\index.js
[OPTIONAL] Please provide your script's arguments:
[INFO] Service Hello installed.
[INFO] Service Hello started.

Non-interactively

> qckwinsvc2 install name="Hello" description="World" path="C:\index.js" args="-a -c" now
[INFO] Service Hello installed.
[INFO] Service Hello started.

Uninstalling your service

Interactively

> qckwinsvc2 uninstall
[INPUT] Please provide a name for your service: Hello
[INFO] Service Hello stopped.
[INFO] Service Hello uninstalled.

Non-interactively

> qckwinsvc2 uninstall name="Hello"
[INFO] Service Hello stopped.
[INFO] Service Hello uninstalled.

Start and stop your service

Interactively

> qckwinsvc2 start
[INPUT] Please provide a name for your service: Hello
[INFO] Service Hello started.

Non-interactively

> qckwinsvc2 start name="Hello"
[INFO] Service Hello started.

List installed services

> qckwinsvc2 list
[INFO] Here's a list of all the services installed through qckwinsvc2:
    [1]    Hello
    [2]    World

Disclaimer

drawing

Made with ♡ by Suyeon® feel free to download, modify or publish this code as you want.

Visit suyeon.org for more information.

Dependencies (1)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i qckwinsvc2_updated

    Weekly Downloads

    0

    Version

    1.0.3

    License

    MIT

    Unpacked Size

    30 kB

    Total Files

    5

    Last publish

    Collaborators

    • abzokhattab