diff --git a/app/pages/docs/cli-generate.mdx b/app/pages/docs/cli-generate.mdx index 64bbbf3d..1cc0b16d 100644 --- a/app/pages/docs/cli-generate.mdx +++ b/app/pages/docs/cli-generate.mdx @@ -269,10 +269,25 @@ field to the `Task` model. blitz generate model task subheading:string ``` - +default ones (e.g. with different styles). You can specify it in your `app/blitz-server` +file by exporting the `cliConfig` object + +```ts +import type { BlitzCliConfig } from "blitz" +... +export const cliConfig: BlitzCliConfig = { + customTemplates: "app/templates", +} +``` + +#### Generate custom templates + +```bash +blitz generate custom-templates +``` +The above command will generate the default templates used by blitz to a directory of your choosing in order +to provide a starting point to use this feature. It will also update the `cliConfig` configuration, in the `app/blitz-server` file, +with the latest data to allow immediate usage.