1.0.0-rc.15 • Published 3 months ago

@microlambda/cli v1.0.0-rc.15

Weekly downloads
1,469
License
MIT
Repository
github
Last release
3 months ago

Microlambda CLI

This project contains the Microlambda Command Line Interface @microlambda/cli.

Getting started

When the package will be published on NPM registry, it will be installable like any other package.

  • Either globally npm i -g @microlambda/cli and runnable with mila --version
  • Or in a project-scope: npm i -D @microlambda/cli and runnable with npx mila --version.

In the meantime, you can install it locally.

CLI

Commands:

  • mila init: generate a serverless typescript microservices project. Ask for scope (e.g. @project), default runtime, default region. Generates shared packages, types package, test helpers package, and one hello world micro-service with a functional test example. Ask for an authentication strategy (no-auth, local, external Oauth2 i.e. azure AD, GAuth).
  • mila start [-i --service $serviceName -p | --port 3000]: if run in project root : start the given service, or all them if not specified. -i option open an inquirer to select one or many services. if run in service folder: start this service (options are ignored. The file changes watcher is done here. (if it was done in the plugin there would be many watchers running concurrently). Watch file changes in all the codebase. By parsing lerna.json configuration file, the start command understands which services needs to be re-compiled and restarted and restarts them.
  • mila test [-i --service $serviceName]: run the test for one or many services.
  • mila stop [-i --service $serviceName]: stop one or many services.
  • mila restart [-i --service $serviceName]: restart one or many services.
  • mila package $stage [-i --service $serviceName]: Package one or many services using packagr utility. Packagr automatically remove development dependencies, useless dependencies such as aws-sdk or aws-lambda. I also deduplicate same version dependencies shared between microservices.
  • mila deploy $stage [-i --service $serviceName]: Deploy one or many services. Arguments: $stage is the targeted stage for deployment. Options: same than above.
  • mila status -i: display the list of services and if there are running. Option -i allow to navigate and start/stop/restart/logs for a service. To quit logs press q.
  • mila logs $serviceName: display the logs for the given service.
  • mila new $serviceName: generates a new service (an inquirer pre-filled with default values will ask for region, runtime, dependencies). Ask for data store.
1.0.0-rc.15

3 months ago

1.0.0-rc.9

7 months ago

1.0.0-rc.8

7 months ago

1.0.0-rc.13

7 months ago

1.0.0-rc.12

7 months ago

1.0.0-rc.11

7 months ago

1.0.0-rc.10

7 months ago

1.0.0-rc.1

7 months ago

1.0.0-rc.14

7 months ago

1.0.0-rc.2

7 months ago

1.0.0-alpha.31

1 year ago

1.0.0-alpha.30

1 year ago

1.0.0-alpha.27

1 year ago

1.0.0-alpha.29

1 year ago

1.0.0-alpha.28

1 year ago

1.0.0-alpha.19

2 years ago

1.0.0-alpha.9

2 years ago

1.0.0-alpha.8

2 years ago

1.0.0-alpha.18

2 years ago

1.0.0-alpha.17

2 years ago

1.0.0-alpha.12

2 years ago

1.0.0-alpha.11

2 years ago

1.0.0-alpha.14

2 years ago

1.0.0-alpha.13

2 years ago

1.0.0-alpha.21

2 years ago

1.0.0-alpha.20

2 years ago

1.0.0-alpha.26

2 years ago

1.0.0-alpha.23

2 years ago

1.0.0-alpha.22

2 years ago

1.0.0-alpha.25

2 years ago

1.0.0-alpha.24

2 years ago

1.0.0-alpha.7

2 years ago

0.2.24-alpha.0

2 years ago

1.0.0-alpha.5

2 years ago

1.0.0-alpha.2

2 years ago

1.0.0-alpha.1

2 years ago

0.3.0-alpha.2

2 years ago

0.3.0-alpha.0

2 years ago

0.3.0-alpha.1

2 years ago

0.2.22-alpha.1

3 years ago

0.2.23-alpha.0

3 years ago

0.2.23-alpha.1

3 years ago

0.2.22-alpha.0

3 years ago

0.2.21-alpha

3 years ago

0.2.20-alpha

3 years ago

0.2.19-alpha

3 years ago

0.2.16-alpha

3 years ago

0.2.17-alpha

3 years ago

0.2.18-alpha

3 years ago

0.2.15-alpha

3 years ago

0.2.14-alpha

3 years ago

0.2.7-alpha

3 years ago

0.2.11-alpha

3 years ago

0.2.10-alpha

3 years ago

0.2.6-alpha

3 years ago

0.2.2-alpha

3 years ago

0.2.0-alpha

3 years ago

0.2.3-alpha

3 years ago

0.2.1-alpha

3 years ago

0.1.9-alpha

3 years ago

0.1.10-alpha

3 years ago

0.1.7-alpha

3 years ago

0.1.8-alpha

3 years ago

0.1.6-alpha

3 years ago

0.1.5-alpha

3 years ago

0.1.4-alpha

3 years ago

0.1.3-alpha

3 years ago

0.1.2-alpha

3 years ago

0.1.0-alpha

3 years ago

0.1.1-alpha

3 years ago

0.0.26-alpha

3 years ago

0.0.25-alpha

3 years ago

0.0.24-alpha

3 years ago

0.0.22-alpha

3 years ago

0.0.23-alpha

3 years ago

0.0.21-alpha

3 years ago

0.0.19-alpha

3 years ago

0.0.20-alpha

3 years ago

0.0.18-alpha

3 years ago

0.0.17-alpha

3 years ago

0.0.16-alpha

3 years ago

0.0.15-alpha

4 years ago

0.0.14-alpha

4 years ago

0.0.13-alpha

4 years ago

0.0.12-alpha

4 years ago

0.0.11-alpha

4 years ago

0.0.10-alpha

4 years ago

0.0.9-alpha

4 years ago

0.0.8-alpha

4 years ago

0.0.7-alpha

4 years ago

0.0.6-alpha

4 years ago

0.0.5-alpha

4 years ago

0.0.4-alpha

4 years ago

0.0.3-alpha

4 years ago