Quickly build a CLI app
npm install @qui-cli/qui-cliQuickly build a CLI app


``sh`
npm install @qui-cli/qui-cli
`ts
import CLI from '@qui-cli/qui-cli';
const args = CLI.init({
opt: {
example: {
description: 'An example option'
}
}
});
CLI.log.debug(args);
`
See examples for common use cases.
This package is a convenience wrapper for a number of individual, more-focused plugins that can operate individually or in concert to support developing CLI apps. This package combines…
- @qui-cli/colors (ANSI colors with Chalk) at cli.colorscli.env
- @qui-cli/env (.env file management with dotenv) at cli.log
- @qui-cli/log (logging with winston) at cli.progress
- @qui-cli/progress (progress bars with cli-progress) at cli.root
- @qui-cli/root (package root detection with app-root-path) at cli.shell
- @qui-cli/shell (shell execution with shelljs) at cli.validators`
- @qui-cli/validators (validate input from @inquirer/prompts) at
…and was written to work in concert with:
- ora (spinners)
- @inquirer/prompts (CLI input)