fastify-cli icon indicating copy to clipboard operation
fastify-cli copied to clipboard

Core plugin installation utility

Open matthyk opened this issue 1 year ago • 4 comments

Prerequisites

  • [X] I have written a descriptive issue title
  • [X] I have searched existing issues to ensure the feature has not already been requested

🚀 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

matthyk avatar Jan 09 '24 08:01 matthyk

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.

mcollina avatar Jan 09 '24 08:01 mcollina

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

matthyk avatar Jan 09 '24 08:01 matthyk

inquirer is the best one.

mcollina avatar Jan 09 '24 10:01 mcollina

First draft #696

matthyk avatar Jan 09 '24 16:01 matthyk