@codeoncesoftware/gr_cli_dev

1.0.3 • Public • Published

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 base  

  • delete 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

Dependencies (12)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i @codeoncesoftware/gr_cli_dev

    Weekly Downloads

    0

    Version

    1.0.3

    License

    ISC

    Unpacked Size

    304 kB

    Total Files

    33

    Last publish

    Collaborators

    • brahim.loukil
    • aymentoukebri
    • ziedabdssmad