diff --git a/README.md b/README.md index acccbde5..c3a71431 100644 --- a/README.md +++ b/README.md @@ -223,6 +223,13 @@ This will add or alter the `main`, `scripts`, `dependencies` and `devDependencie for any files being added, the file will be overwritten with the new file added by generate. So if there is an existing `app.js` in this scenario, it will be overwritten. Use the `--integrate` flag with care. +#### Options + +| Description | Full command | +| --- | --- | +| Use the TypeScript template | `--lang=ts`, `--lang=typescript` | +| Overwrite it when the target directory is the current directory (`.`) | `--integrate`| + ### generate-plugin `fastify-cli` can help you improve your plugin development by generating a scaffolding project: diff --git a/help/generate.txt b/help/generate.txt index 79be593f..f2a111ad 100644 --- a/help/generate.txt +++ b/help/generate.txt @@ -3,3 +3,11 @@ Usage: fastify generate Sets up project with `npm init -y` and generates a sample Fastify project in the . Specify `.` to create files in the current working directory. + +OPTS + + --integrate + overwrite it when the target directory is the current directory (.) + + --lang=ts, --lang=typescript + use the TypeScript template