redwood generate scaffold <model>

Generate Pages, SDL, and Services files based on a given DB schema Model. Also accepts <path/model>

Arguments

NameDescription
modelModel to scaffold. You can also use <path/model> to nest files by type at the given path directory (or directories). For example, redwood g scaffold admin/post

Options

NameDescription
--force, -f
  • Dangerous 💥
--typescript, --tsGenerate TypeScript files Enabled by default if we detect your project is TypeScript