Skip to main content

CLI reference

dbml-sharepoint COMMAND [OPTIONS]

build

Generate the full deployment bundle (deploy.js, rollback.js, assess.js, manifests, reporting, INDEX.md, checksums.txt — plus demo-data.js with --seed).

OptionDefaultMeaning
--schema PATHrequiredPath to the DBML schema file
--mapping PATHrequiredPath to the mapping YAML
--release PATHrequiredPath to release.yaml
--site-url URLrequiredTarget SharePoint site URL
--site-role ROLEdefaultWhich entities deploy here; must match a site_role declared by the mapping's entities
--out PATH./buildOutput directory
--dry-runoffValidate only; no JS output
--seedoffAlso emit demo-data.js from the mapping's demo_items
--extension NAMEmapping's extension:Extension to apply; resolved via entry points

Behaviour worth knowing:

  • Validation errors refuse the build (exit 2) — the manifest lists every finding.
  • --site-role is checked against the roles the mapping actually declares; a misspelled role is an error, never a silently empty deploy plan.
  • An extension that requires its own project CLI causes build to exit with instructions rather than emitting a half-configured bundle.

report

Emit the reporting pack only (no site URL required): powerquery/, sql/views.sql, REPORTING.md, DATA-DICTIONARY.md.

OptionDefaultMeaning
--schema PATHrequiredPath to the DBML schema file
--mapping PATHrequiredPath to the mapping YAML
--site-role ROLEdefaultWhich entities to include
--out PATH./reportsOutput directory
--release PATHoptionalStamp release provenance into the outputs

version

Print the deployer version.