Documentation (@dile/cli)
This is the CLI from the Dile Components catalog, designed to quickly build the scaffolding for apps and components that require more configuration effort, especially those dedicated to creating dynamic CRUDs.
This directory contains the detailed CLI documentation.
Before you start
Before you start using the CLI, you need to have some essential knowledge of frontend development. You should be familiar with HTML, CSS, and JavaScript. It’s also ideal to feel comfortable using the terminal and to have some understanding of frontend tools like Vite.
You will also need to have the Node.js platform installed on your computer.
Installation
It is recommended to install the CLI globally so that it is available in any folder of your command-line terminal.
To install Dile CLI run this command in a terminal window:
npm i -g @dile/cli
You'll need Node.js installed on your system, version 18+ or higher, for this CLI to work.
Guides
You can use the CLI both to develop applications from scratch and to add functionality to any project you are currently working on. Since the components it creates are based on Web Components, you can use them in traditional websites, Vanilla JavaScript projects, or applications built with frameworks or libraries such as Angular, React, Vue, and others.
Creating applications
With Dile CLI you can create applications from scratch, generating the entire initial structure of a new project based on Web Components and Lit, as a starter kit.
The application will already include a series of essential functionality, such as a routing system, components to show feedback to users, components to manage user authentication, etc.
You can find all the details about generating new applications in the create-app command page.
Creating components
There is a whole series of commands for creating components that you can then integrate into any application or website you are building.
- Commands index
- Component generators:
dile CLI