@halagram/captain-ms-cli
Command line tool for @halagram/captain-ms npm module
Last updated 2 years ago by ikechukwukalu .
MIT · Original npm · Tarball · package.json
$ cnpm install @halagram/captain-ms-cli 
SYNC missed versions from official npm registry.

Captain-ms CLI

NPM Version NPM Downloads

This is a Command Line Interface app for the captain-ms NPM module. It is used to create a Service template.

Installation

This module should be installed globally using the command below

npm install -g @halagram/captain-ms-cli

Command for creating a Service

$ captain-ms-cli users_service [options]

This creates a service with name, 'users_service'. You can specify optional parameters to configure the Service. Ex

$ captain-ms-cli users_service --port 3000 -M User

This creates a users service and then sets the default listen port to 3000 and the database model is User

A full list of options is given below:

-P 3000 or --port 3000 => this sets the default listen port to 3000

-L AppTag or --logger AppTag => this sets the logger tag to AppTag

-D users or --database users => this configures the service to use the 'users' database

-M User or --model User => this sets the model name

-F no or --folder no => this tells the app not to create the service in its own separate directory

Current Tags

  • 0.2.4                                ...           latest (2 years ago)

4 Versions

  • 0.2.4                                ...           2 years ago
  • 0.2.2                                ...           3 years ago
  • 0.2.1                                ...           3 years ago
  • 0.2.0                                ...           3 years ago
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 4
Last Month 6
Dependencies (1)
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |