fastify / fastify-cli

Run a Fastify application with one command!
MIT License
657 stars 163 forks source link

Core plugin installation utility #695

Open matthyk opened 9 months ago

matthyk commented 9 months ago

Prerequisites

🚀 Feature Proposal

A CLI utility within fastify-cli. The process could be similar to the one you go through when you run npm init.

Motivation

If you create a new project using fastify-cli, you will normally also use plugins, e.g. for authentication or database access. However, I find it unnecessarily time-consuming to find out the names of the desired plugins, i.e. whether it is now called fastify-postgres, @fastify/postgres or @fastify/pg. Since a list of core plugins is also maintained in the docs, fastify-cli could contain a utility for the installation of core plugins. This could also be categorised according to subject areas, e.g. authentication, database access, security, etc.

Example

No response

mcollina commented 9 months ago

Would you like to work on this?

I recall there was a UI tool build by @Eomm... I think we could put that on the website.

matthyk commented 9 months ago

Absolutely! Do you have any recommendations for a package to build an interactive CLI?

mcollina commented 9 months ago

inquirer is the best one.

matthyk commented 9 months ago

First draft #696