conventional-cli provides a framework for defining and managing Command Line Interface (CLI) arguments in a structured and conventional manner. It allows developers to specify argument properties such as long and short names, descriptions, types (like enum or glob), default values, and whether they are required or deprecated. The library ships with TypeScript types, enabling type-safe CLI development. The current stable version is 1.2.0, released on January 29, 2020. Based on the release history, the project had a brief period of active development in early 2020 but has not seen any updates or releases since then, indicating a very low release cadence and an effectively abandoned status. Its primary differentiator is its emphasis on establishing a consistent, conventional structure for CLI argument definitions, which can aid in standardization and potentially simplify automated parsing or documentation generation for CLI tools.
npm install conventional-cliVerified import paths — ran on the pinned version, not inferred.
Demonstrates how to define a CLI argument with various properties using the Argument class and ArgumentTypes enum.
Evaluate alternative, actively maintained CLI argument parsing libraries for new projects. For existing projects, consider vendoring the code or migrating.
Ensure your project explicitly uses `conventional-cli@^1.2.0` if you depend on these features. However, due to the project's abandoned status, consider carefully before using.
Ensure you are using `import { Argument } from 'conventional-cli';` for ES modules and TypeScript. If using CommonJS, it might be `const { Argument } = require('conventional-cli');` but the library primarily targets ESM/TypeScript usage.Verify that `conventional-cli` is correctly installed and its type definitions are accessible. Ensure the assigned value for `argument.type` is one of the valid `ArgumentTypes` enum members (e.g., `ArgumentTypes.enum`, `ArgumentTypes.path`).
No dependency data recorded yet.