dbpm plan
Generate and print a deployment plan as JSON without executing anything. Useful for inspecting what dbpm would do before committing to a deployment.
Syntax
Section titled “Syntax”dbpm plan source [--mode MODE] [--env ENV] [--approve] [--package NAME] [--dependency-source SOURCE]... [--registry-url URL] [--connect STRING] [--runner EXEC]EBNF diagram
Section titled “EBNF diagram”flowchart LR command["command"] --> dbpm["dbpm"] dbpm --> plan["plan"] plan --> source["source"] source --> options["{ option }"] options --> end_node(("end"))
options -. expands to .-> option["option"] option --> mode["--mode MODE"] option --> env["--env ENV"] option --> approve["--approve"] option --> package["--package NAME"] option --> dependency_source["--dependency-source SOURCE"] option --> registry_url["--registry-url URL"] option --> connect["--connect STRING"] option --> runner["--runner EXEC"]
mode -. choices .-> mode_note["bootstrap-core, install, upgrade, reinstall, resume, validate"] package -. only when source is a workspace root .-> package_note["selects workspace package"] dependency_source -. repeatable .-> dep_note["may satisfy manifest dependencies"] registry_url -. only for registry sources .-> registry_note["sets registry base URL"] connect -. enriches output .-> state_note["includes installed state from Core"]Arguments
Section titled “Arguments”| Argument | Default | Description |
|---|---|---|
source | required | Package source. See source types. |
--mode | install | Deployment mode to plan. One of: bootstrap-core, install, upgrade, reinstall, resume, validate. |
--env | development | Target environment name. |
--approve | false | Approve policy-gated actions. |
--package | none | Package name or application name to select when source is a workspace root. |
--dependency-source | none | Additional source that may satisfy a dependency declared in the manifest. Repeatable. |
--registry-url | DBPM_REGISTRY_URL or https://registry.dbpm.io | Registry base URL for registry: sources. |
--connect | DBPM_CONNECT | Connect string. When provided, the plan includes the currently installed state from Core. |
--runner | DBPM_SQL_RUNNER or sqlplus | SQL runner executable. |
Output
Section titled “Output”Prints a dbpm.plan.v0 or dbpm.multi-plan.v0 JSON object to stdout.
When --connect is provided, the plan includes installed_state for each package, enabling accurate preflight evaluation. Without --connect, installed state is omitted and the plan reflects resolution only.
For upgrade with --connect, if a stepwise chain is required, the output is a dbpm.upgrade-chain.v0 plan with a steps array.
Examples
Section titled “Examples”Plan an install without a database connection:
dbpm plan gh-maven:512itconsulting/utl_interval:com.512itconsulting.database:utl_interval:1.0.0Plan an upgrade with installed state:
dbpm plan gh-maven:512itconsulting/utl_interval:com.512itconsulting.database:utl_interval:1.2.0 \ --mode upgrade --connect user/pass@dbPlan a multi-package install with a dependency:
dbpm plan gh-maven:rsantmyer/simple_scheduler:com.512itconsulting.database:simple_scheduler:1.1.0 \ --dependency-source gh-maven:512itconsulting/utl_interval:com.512itconsulting.database:utl_interval:1.0.0Plan from the dbpm registry:
dbpm plan registry:simple_scheduler@^1.1.0 --registry-url https://registry.dbpm.ioPlan a package from a workspace root:
dbpm plan ~/repos/my_workspace --package simple_schedulerPlan a local package:
dbpm plan ~/repos/my_package --mode upgrade --connect user/pass@dbplannever writes to the database or modifies the lockfile.- The plan output is the same JSON structure that
install,upgrade, and other execution commands use internally. Reviewing it before deployment is good practice for production environments. - Environment policy is evaluated in the plan. A
policy.resultof anything other thanallowedmeans the execution commands will also fail unless--approveis passed.
Source: docs/commands/plan.md