grizzly_api_cli
v1.0.130
Published
This README would normally document whatever steps are necessary to get your application up and running.
Downloads
19
Readme
Grizzly CLI is a highly scalable tool that enables you to create and manage your microservices in few steps and Build and Design your API using Swagger and OpenAPI format to match universal standards.
Installation
$ npm i grizzly_api_cli -g
Usage
To use grizzly cli , you should have an apikey which you use to connect with the command :$ grizzly config --apikey YourKey
You have 2 modes of use :
- Interactive mode with the command grizzly
- Inline mode
Inline mode commands :
Manage Micorservices :
create microservice : to create microservice with a free MangoDB database :
$ grizzly create microservice --name MicroserviceName
options : --datasource datasourceName : if you have already a datasource --database databaseName : to specify the data basedelete microservice :
$ grizzly delete microservice --microservice MicroserviceName
show microservices : to show all your microservices :
$ grizzly show microservices
Manage Endpoints :
- add endpoint :
$ grizzly add endpoint --name microserviceName --path endpointName --methode HTTPMethod
options :
- For parameters : --headers variable1:type=defaultValue variable2:type=defaultValue --formDatas variable1:type=defaultValue variable2:type=defaultValue --queries variable1:type=defaultValue variable2:type=defaultValue
- For PUT and POST methods : --request type : to specify if it is an Insert or Update
--number MANY/ONE : to specify the number of elements to return
- delete endpoint :
$ grizzly delete endpoint --name microserviceName --ressourceGroup endpointGroup --v version --endpoint endpointName