Bulk Operations¶
Why bulk workflows exist¶
Bulk workflows apply consistent policy changes across many repositories while keeping reviewable, deterministic plan artifacts.
Workflow model¶
- Author policy file (YAML or JSON).
- Run
bb bulk planto produce a reviewed plan with a deterministicplanHash. - Review and store plan artifact.
- Run
bb bulk apply --from-plan ...to execute exactly that reviewed plan. - Query operation status with
bb bulk status <operation-id>.
Example policy¶
See: docs/examples/bulk-policy.yaml.
bb bulk plan -f docs/examples/bulk-policy.yaml -o .tmp/bulk-plan.json
bb bulk apply --from-plan .tmp/bulk-plan.json
bb bulk status <operation-id>
Safety and contract notes¶
bulk planperforms no server writes.bulk applydoes not support--dry-run; usebulk planas preview.bulk applypersists status artifacts under local config directory (override withBB_BULK_STATUS_DIR).- JSON mode is available for plan/apply/status commands using global
--json.
Schema and IDE integration¶
- Schemas are published under JSON Schemas.
- Add YAML schema comment for editor validation and completion:
# yaml-language-server: $schema=https://vriesdemichael.github.io/bitbucket-server-cli/latest/reference/schemas/bulk-policy.schema.json