# Overview

`@1023-ventures/piral-cli-api-client-generator` is the api generator for ordovician projects

By prefixing the package with `piral-cli` it is discoverable by the `pb` command, a cli tool for piral.

By running `pb rupel-csharp-codegen` it will run the command found in [./src/rupel-csharp-codegen.js](./src/rupel-csharp-codegen.js)

Most of the code that gets ran outside of the cli tool can be found in the [scripts](./scripts) folder

## Scripts

### downloadSwaggerJson.js

Utility script that will download a swagger schema file and save it to the provided destination

### generate.js

The piece that does a lot of heavy lifting. Uses a docker image for [openapi-generator](https://github.com/OpenAPITools/openapi-generator).

## cli Commands

### ordovician-open-api-generate

[ordovician-open-api-generate](./src/ordovician-api-generate.js) can be ran via the command `pb ordovician-open-api-generate`
