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

PropTypeDefaultDescription
typestringappType of template (`app` or `component`)
namestring (Optional)-Template file name (without extension)

Understand the Output

  • Generate JSON file.
  • You can use json file as registry with custom command.