1.3.0 • Published 7 months ago

@fluentity/cli v1.3.0

Weekly downloads
-
License
MIT
Repository
github
Last release
7 months ago

Fluentity CLI

A command-line interface tool for generating Fluentity models. This tool helps streamline the process of creating and managing Fluentity models in your project.

Installation

# Using npm
npm install -g @fluentity/cli

# Using pnpm
pnpm add -g @fluentity/cli

# Using yarn
yarn global add @fluentity/cli

Usage

The CLI provides a simple interface for generating Fluentity models:

# Generate a new model
fluentity generate:model [name]

# Generate a model with specific options
fluentity generate:model [name] --path ./custom/path --force

Commands

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> - 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 parse

Options:

  • -p, --path <path> - Path where the model should be generated (default: './src/models')
  • -f, --force - Overwrite existing model file if it exists

Development

Prerequisites

  • Node.js (Latest LTS version recommended)
  • pnpm 8.0.0 or later

Setup

  1. Clone the repository
  2. Install dependencies:
    pnpm install

Available Scripts

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

License

MIT © Cedric Pierre

Author

  • Cedric Pierre (jirotoh@gmail.com)
1.3.0

7 months ago

1.2.1

7 months ago

1.1.0

7 months ago

1.0.6

7 months ago

1.0.5

7 months ago

1.2.0

7 months ago