1.2.9 • Published 6 years ago
@inceptionpad/incpad-ms-cli v1.2.9
InceptionPad Microservice Client
Install
yarn global add @inceptionpad/incpad-ms-cliUsage
incpadMS -h1. Credentials
Please configure AWS credentials at the first time using the client.
incpadMS credentials -hOutput:
Usage: credentials [options]
Options:
-k, --key <key> set aws_access_key_id
-s, --secret <secret> set aws_secret_access_key
-n, --profile-name <profile_name> set AWS credentials profile name
-h, --help output usage information2. Integrate services into a project
As a microservice user, you can fork a microservice template with below command on the root directory of the project.
incpadMS integrate3. Develop a new service
As a developer planning to develop a new microservice, you should fetch an empty service project with below command.
incpadMS init -hOutput:
Usage: init [options] <project_name>
Options:
-s, --sentry-token <sentry_token> specify the sentry project token
-w, --without-dep do not install dependence
-b, --branch <branch> branch of git repo
-h, --help, output usage information--sentry-tokenoption is for setting the sentry token of this project.--without-depoption is for initializing microservice project without installing dependences.--branchoption is for specifing the branch of target repo.
4. Deploy
You can easily deploy the microservice to AWS serverless.
incpadMS deploy -hOutput:
Usage: deploy [options] [profile_name]
Options:
--help, -h output usage informationThe profile_name is from incpadMS credentials -n <profile_name>
5. Error code manager
You can manage you error code and error info with this command
incpadMS error -hUsage: error [options]
Options:
-l,--list list all local errors
-p,--target-path [targetName] error instance dir
-c,--create-error [createError] create a new error
-t,--template-path [templatePath] template dir
-h, --help output usage information-loption will list all error defines in this project-poption just specific the error dir path, default./src/error/-coption just means you want to create a new error, new error will use the template from-toption-toption just specific the template file where the error template come from, default./template/Errors.js.tpl
Author
👤 InceptionPad Inc
- Github: @tanlukang
Show your support
Give a ⭐️ if this project helped you!
This README was generated with ❤️ by readme-md-generator