Website • Documentation • Playground
- Language - Javascript and Typescript with @types
- Flexibility - Able to change complete flow with middlewares
- Boilerplate - Write less code. whether it's a dead simple project or complex one
- Extensions - Add cool functionalities with plugins
- Platform - Write once and run in CLI or web UI. Desktop interface is coming soon
- Performance - It is faster than existing tools. Benchmarks inside
- Testing - Dedicated testing setup for unit test and integration test
- Lot more - Features, sub-commands, boilerplate generator...
Scaffold new project directly using npx command
> npx lesy new my-cli
Or, you can install lesy cli globally and generate a new project
> npm i -g lesy
> lesy new my-cli
Also you can create your own project setup and run lesy. Learn more.
#!/usr/bin/env node
const lesy = require("@lesy/compiler");
const commands = [{ name: "hello", run: () => console.log("hello world") }];
lesy({ commands }).parse();
./cmd hello
It is just a tiny bit of lesy. There are lot of other cool stuffs like, advance commands, middlewares, features, configs, and plugins. Learn more
-
UI Pilot
Run commands in Web UI. Supports input, console, workspace and more... -
Store
Key-value storage in the system -
Config reader
Setup config files like myapp.config.json, myapp.config.yml, myapp.config.js -
Scaffold generator
Generate projects with handlebars templating -
Prompt
Wrapper around inquirer plugin for prompts and questions -
Help
Automatically generate beautiful help with sub commands support. Highly customizable -
Arg validator
Prompt if required args are not supplied
MIT