2.1.5 • Published 10 months ago

@m-backend/cli v2.1.5

Weekly downloads
-
License
-
Repository
-
Last release
10 months ago

This library was generated with Nx.

Cli for M backend projects

This project is a lightweight CLI mainly for generating & compiling M Backend Core projects

How to use

Installation

Install the cli via npm with the following instructions:

npm i -g @m-backend/cli

Note: We highly recommend installing the CLI globally in order to use it as it should be (especially for project generation).

Usage

In order to execute anything, prefix the command with the keywords m-cli

Each command has its alternatives, feel free to use one of the possible alternatives for each command.

CommandArgumentsOptionsDefault ValuePossible valuesDescription
g, generate{PROJECT_NAME}--demoGenerates a project
r, run----Main command run it with the documented options
r, run--c, --configdebugproduction, dev or debugConfig environment webpack
r, run--e, --entry./src/main.ts-Define the entry point
r, run---ormEntryPath./src/app/databaseDefine the entry path of the orm plugin
r, run--o, --outdist-Defines the build output
v, version----Give the version of the Cli
ws, win-svc--Autodetect name/project pathdemo, C:\DevConvert a nodejs app to windows service (lib)
//--i, --installinstall-Install windows service
//--u, --uninstalluninstall-Uninstall windows service
//---max-old-space-size-1536Define the max old space size
//---domain-domain.localDefine domain (used by AD)
//---account-demoDefine user account
//---password-1596150erofuDefine password
//---nameAutodetect project namedemoDefine custom project name
//---pathAutodetect project path (remove project name and /dist)C:\app\projectDefine custom project path directory
//---scriptConcat path + name + dist + app.jsC:\app\project\demo\dist\app.jsDefine custom script directory

Examples

Generating a new project

m-cli g <YOUR_PROJECT_NAME> or m-cli generate <YOUR_PROJECT_NAME>

Compiling a project in debug mode

m-cli run or m-cli run --config={env}

Convert a project to Windows service

Install
m-cli ws -i or m-cli win-svc --install
With options
m-cli ws --name <PROJECT_NAME> --path <PATH> -i or m-cli win-svc --name demo --path C:\folders\ --install
Uninstall
m-cli ws -u or m-cli win-svc --uninstall
With options
m-cli ws --name <PROJECT_NAME> --path <PATH> -u or m-cli win-svc --name demo --path C:\folders\ --uninstall
2.1.2

10 months ago

2.1.4

10 months ago

2.1.3

10 months ago

2.1.5

10 months ago

2.0.2

10 months ago

2.0.1

10 months ago

2.1.1

10 months ago

2.1.0

10 months ago

1.6.3

1 year ago

1.6.2

1 year ago

1.6.1

1 year ago

1.6.0

1 year ago

2.0.0

1 year ago

1.5.9

1 year ago

1.5.8

1 year ago

1.5.7

1 year ago

1.5.6

1 year ago

1.5.5

1 year ago

1.5.4

1 year ago

1.5.3

1 year ago

1.5.2

1 year ago

1.5.1

1 year ago

1.5.0

1 year ago

1.5.10

1 year ago

1.5.12

1 year ago

1.5.11

1 year ago

1.5.14

1 year ago

1.5.13

1 year ago

1.5.16

1 year ago

1.5.15

1 year ago

1.5.18

1 year ago

1.5.17

1 year ago

1.4.9

1 year ago

1.4.8

2 years ago

1.4.6

2 years ago

1.4.5

2 years ago

1.4.4

2 years ago

1.4.3

2 years ago

1.4.2

2 years ago

1.4.7

2 years ago

1.4.1

2 years ago

1.4.0

2 years ago

1.3.0-4

3 years ago

1.3.0-3

3 years ago

1.3.0-2

3 years ago

1.3.0-1

3 years ago

1.3.0-5

3 years ago

1.3.8

2 years ago

1.3.7

2 years ago

1.3.6

2 years ago

1.3.5

2 years ago

1.3.4

2 years ago

1.3.3

2 years ago

1.3.2

3 years ago

1.3.1

3 years ago

1.3.0

3 years ago

1.2.1-0.5

3 years ago

1.2.1-0.6

3 years ago

1.2.1-0.3

3 years ago

1.2.1-0.4

3 years ago

1.2.1-0.1

3 years ago

1.2.1-0.2

3 years ago

1.2.8

3 years ago

1.2.7

3 years ago

1.2.6

3 years ago

1.2.10

3 years ago

1.2.5

3 years ago

1.2.4

3 years ago

1.2.0

3 years ago

1.2.3

3 years ago

1.2.2

3 years ago

1.2.1

3 years ago

1.1.1

3 years ago

1.1.9

3 years ago

1.1.8

3 years ago

1.1.7

3 years ago

1.1.6

3 years ago

1.1.5

3 years ago

1.1.4

3 years ago

1.1.3

3 years ago

1.1.2

3 years ago

1.1.12

3 years ago

1.1.11

3 years ago

1.1.10

3 years ago

1.1.16

3 years ago

1.1.15

3 years ago

1.1.14

3 years ago

1.1.13

3 years ago

1.1.19

3 years ago

1.1.18

3 years ago

1.1.17

3 years ago

1.1.20

3 years ago

1.1.0

3 years ago

1.0.0

3 years ago

0.0.2

3 years ago

0.0.1

4 years ago