Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
8 changes: 8 additions & 0 deletions help/generate.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,11 @@ Usage: fastify generate <FOLDER>
Sets up project with `npm init -y` and
generates a sample Fastify project
in the <FOLDER>. 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