{"repo":"fastify/fastify-cli","free":true,"listed":false,"github":"https://github.com/fastify/fastify-cli","clone":"git clone https://github.com/fastify/fastify-cli.git","description":"Run a Fastify application with one command!fixed","language":"JavaScript","stars":731,"topics":["fastify","cli","tool","scaffold","fastify-tool","fastify-library"],"license":"MIT","category":"cli-tools","readme_excerpt":"fastify-cli Command line tools for Fastify. Generate, write, and run an application with one single command! Install Usage fastify-cli offers a single command line interface for your Fastify project: Which will print a help message: start You can start any Fastify plugin with: A plugin can be as simple as: If you are using Node 8+, you can use Promises or async functions too: For a list of available flags for fastify start see the help: fastify help start . If you want to use custom options for the server creation, just export an options object with your route and run the cli command with the --options flag. These options also get passed to your plugin via the options argument. And if you are using EcmaScript Module format: If you want to use custom options for your plugin, just add them after the -- terminator. If used in conjunction with the --options argument, the CLI arguments take precedence. Modules in EcmaScript Module format can be used on Node.js = 14 or = 12.17.0 but = 14 and the nearest parent package.json has \"type\": \"module\" (more info here). If your package.json does not have \"type\": \"module\" , use .mjs for the extension ( plugin.mjs in the above example). Options You can pass the following options via CLI arguments. You can also use --config or -c flag to pass a configuration file that exports all the properties listed below in camelCase convention. In case of collision (i.e., An argument existing in both the configuration file and as a command-line argument, t","default_branch":null,"files":null,"tree":[],"storefront":"/r/fastify","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/fastify/fastify-cli/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}