What CLI utilities/commands do you use when creating a new project?

horusgoul

Horus Lugo

Posted on February 15, 2020

What CLI utilities/commands do you use when creating a new project?

Let's all share the commands that we run when bootstrapping a new project, maybe we can all get to know a few new tools that can help us create our future projects!

Here's my list:

git init

I always use git, so this is usually the first command I run.

yarn init

Most of my projects are related to web development and this is an easy way to create a package.json file.

npx tsc --init

If my project uses TypeScript, this command generates a tsconfig.json with great documentation about all the configuration properties.

npx gitignore

As I use git in every project, I need to have a .gitignore to prevent committing some files. For example, running npx gitignore node will generate a .gitignore file for this kind of project.

There are multiple types supported, you can check the list by running npx gitignore -types

npx licensed

This one allows you to choose a license for your project and then it will generate its corresponding LICENSE file, and that's great if you want to make your project open source.


That would be it for me, now it's your turn to share with us the commands you use the most when you start a new project.

Cat typing

💖 💪 🙅 🚩
horusgoul
Horus Lugo

Posted on February 15, 2020

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related