Command

bengal.collections.init

Generate a collections.py file with example schemas.

Creates a starter collections.py file at your project root with example schemas for blog posts and documentation pages.

Usage

bengal.collections.init [OPTIONS]

Options

Option Type Description
--force, -f flag BOOLEAN

Overwrite existing collections.py

--minimal, -m flag BOOLEAN

Generate minimal template using built-in schemas

Arguments

Argument Type Description
source PATH Default:.

Examples

  bengal collections init           # Generate full template
  bengal collections init --minimal # Use built-in schemas
  bengal collections init --force   # Overwrite existing file