CLI

CLI program for adding utility methods to your the project for lazykit like a pro.

1. Introduction

One of the way to add utility methods to your project is by just copying the code and pasting it in your project. But, this is not the best way to do it. The best way to do it is by using the CLI program provided by lazykit. The CLI program will add the utility method to your project in a more efficient way.

2. Initial Setup

For the initial setup, you can run the following command.

Note: To initialize the project, you need to have a package.json file in your project.

npx @jrtilak/lazykit@latest init

I. Questions

This will ask you a few questions with its default values.

II. Flags

You can pass the following flags to the init command to skip the questions.

Flag

Alias

Description

--javascript-jsInitialize the project with javascript
--typescript-tsInitialize the project with typescript
--path <path>-p <path>Initialize the project in the given path
--force-fForce initialize the project, even if the project is already initialized
--separate-sInitialize the project configuration in separate file called lazykit.config.js else in package.json

3. Teardown

This command will remove the config file from your project.

npx @jrtilak/lazykit@latest teardown

4. Installation

For the installation, of the methods you can run the following command

npx @jrtilak/lazykit@latest add <method-name>

For detail docs see Installation.