Command

bengal.version.create

Create a new version snapshot.

Copies the current documentation to a versioned directory and updates configuration to include the new version.

Usage

bengal.version.create [OPTIONS]

Options

Option Type Description
--dry-run flag BOOLEAN

Show what would be done without making changes

--from TEXT

Source directory to snapshot (default: docs)

Default:docs
--label, -l TEXT

Human-readable label for the version (default: version ID)

--to TEXT

Destination directory (default: _versions/<version_id>/docs)

Arguments

Argument Type Description
source PATH Default:.
version_id required TEXT

Examples

    bengal version create v2
    bengal version create v2 --label '2.0 (Stable)'
    bengal version create v1 --from docs --to _versions/v1/docs