Fluentity CLI for model generation
npm install @fluentity/cliA command-line interface tool for generating Fluentity models. This tool helps streamline the process of creating and managing Fluentity models in your project.
``bashUsing npm
npm install -g @fluentity/cli
Usage
The CLI provides a simple interface for generating Fluentity models:
`bash
Generate a new model
fluentity generate:model [name]Generate a model with specific options
fluentity generate:model [name] --path ./custom/path --force
`$3
####
generate:model [name]Generates a new Fluentity model with the specified name.
Arguments:
-
[name] - Name of the model to generate (optional)Options:
-
-p, --path - Path where the model should be generated (default: './src/models')
- -f, --force - Overwrite existing model file if it exists####
parse:openapi [filename]Generates all Fluentity models from a JSON OpenAPI file.
Arguments:
-
[filename] - Name of the JSON file to parseOptions:
-
-p, --path - Path where the model should be generated (default: './src/models')
- -f, --force - Overwrite existing model file if it existsDevelopment
$3
- Node.js (Latest LTS version recommended)
- pnpm 8.0.0 or later
$3
1. Clone the repository
2. Install dependencies:
`bash
pnpm install
`$3
-
pnpm build - Build the project
- pnpm start - Run the CLI locally
- pnpm dev - Build and watch for changes
- pnpm test - Run tests
- pnpm test:coverage - Run tests with coverage
- pnpm test:ui` - Run tests with UIMIT © Cedric Pierre
- Cedric Pierre (jirotoh@gmail.com)