DEV Community

Cover image for NPM - CLI tool to generate .gitignore file
Lucas.T
Lucas.T

Posted on

NPM - CLI tool to generate .gitignore file

Generate .gitignore file with template for your project

Features ✨

Install 🐙

npm i -g cligit
Enter fullscreen mode Exit fullscreen mode

Usage 💡

cligit <commands> [options]
Enter fullscreen mode Exit fullscreen mode

OR

npx cligit <commands> [options]
Enter fullscreen mode Exit fullscreen mode

Use this if you don't want install this package globally.

Commands

Commands are optional but allow you to skip question for choosing template.

You can find the template availables in this github repository where template name is filename without the extension.

Example - Supposing you'like to create a .gitignore file and your project works with NodeJs you should run this cligit Node

Options

  • --path optional, The path to create the .gitignore file.

Exemples 🖍

With template name

cligit Node
Enter fullscreen mode Exit fullscreen mode

With custom path

cligit --path dev/foo/
Enter fullscreen mode Exit fullscreen mode

With template and custom path

cligit C --path dev/foo/
Enter fullscreen mode Exit fullscreen mode

Good code and have fun 🧑‍💻

Top comments (0)