Generate command
Use the generate
command to scaffold a new registry .json
template. This helps in adding custom app
or component
templates into your registry easily.
Run the generate command
backcraft g json --type=app --name=your-project-name
This generate a json file.
Available Flags
Prop | Type | Default | Description |
---|---|---|---|
type | string | app | Type of template (`app` or `component`) |
name | string (Optional) | - | Template file name (without extension) |
Understand the Output
- Generate JSON file.
- You can use json file as registry with custom command.