CLI Cortex Framework deploy
uv run cortex-deploy deploys compiled Google Cloud Cortex Framework artifacts from
the build output directory to enabled Dataform workspaces or Git
repositories configured in deployment.targets.
Synopsis
uv run cortex-deploy [-h] \
[-c CONFIG_PATH | --config CONFIG_PATH] \
[--output-dir OUTPUT_DIR] \
[--enable-apis] [--create-datasets] \
[--disable-telemetry] [-y | --yes]
Replace the following:
CONFIG_PATH: path to your globalconfig.yamlfile, for example:config/config.yaml.OUTPUT_DIR: path to the compiled build output directory, for example:dist.
Pre-flight validation behavior
Pre-flight checks depend on the enabled target types in deployment.targets:
type: dataformtargets: When at least one enabled target usestype: dataform,uv run cortex-deployvalidates required Google Cloud deployment-target APIs (dataform.googleapis.comon repository projects,bigquery.googleapis.comon target dataset projects and enabled BigLake Delta Sharing catalog projects,bigqueryreservation.googleapis.comandcloudresourcemanager.googleapis.comwhen BigLake Delta Sharing catalogs are enabled, anddatacatalog.googleapis.comon policy tag taxonomy projects and column-level security target projects when column policy tags are configured underdata.security). It also verifies or creates missing target BigQuery datasets (includingdata.defaultAssertionDataset, which defaults todataform_assertions, whendata.assertionsEnabledistrue) and checks their locations againstdata.bigQueryLocation, validates BigLake BigQuery Enterprise Plus query capacity reservations, verifies that referenced Data Catalog policy tags exist, matchdata.bigQueryLocation, and belong to taxonomies with Enforce access control (FINE_GRAINED_ACCESS_CONTROL) enabled whendata.security.enabledistrue, and logs partition drift warnings if existing target tables differ from configured partitioning.- Git-only (
type: git) targets: When all enabled entries indeployment.targetsusetype: git,uv run cortex-deployalways skips Google Cloud API and target dataset validation. Passing--enable-apisor--create-datasetslogs a warning and has no effect.
Global flags
The following table describes all flags supported by uv run cortex-deploy:
| Flag | Description | Default |
|---|---|---|
-h, --help |
Show the command help message and exit. | None |
-c, --config CONFIG_PATH |
Path to the global config.yaml configuration file. |
config/config.yaml |
--output-dir OUTPUT_DIR |
Path to the compiled build output directory to reconcile with enabled targets. | dist |
--enable-apis |
Enable required Google Cloud deployment-target APIs automatically without interactive prompts when at least one enabled target uses type: dataform. Logs a warning and has no effect when all enabled targets use type: git. |
false |
--create-datasets |
Create missing target BigQuery datasets—including data.defaultAssertionDataset (default dataform_assertions) when data.assertionsEnabled is true—without interactive prompts when at least one enabled target uses type: dataform. Logs a warning and has no effect when all enabled targets use type: git. | false |
--disable-telemetry |
Disable telemetry event logging during execution. For details, see Cortex Framework telemetry. | false |
-y, --yes |
Automatically confirm interactive prompts during non-interactive CI/CD runs, such as creating a missing remote Git branch or overwriting and deleting tracked files outside ignorePatterns on type: git targets. |
false |
--assertions ASSERTIONS_FILE |
Deprecated (no-op; scheduled for removal in v8.0). Passing this flag emits a deprecation warning and has no effect. Pass --assertions to uv run cortex-build or uv run cortex-build-and-deploy instead. For declarative YAML assertions, see Configure data quality assertions. |
None |
Examples
Deploy compiled artifacts from dist/ to enabled targets in config.yaml:
export CORTEX_CONFIG_FILE=config/config.yaml
uv run cortex-deploy --config $CORTEX_CONFIG_FILE
What's next
- Review Dataform and Git target options in the Deployment guide.
- Run compilation and deployment in one step with
uv run cortex-build-and-deploy. - Apply column policy tags and reconcile row access policies after
Dataform workflow runs with
uv run cortex-apply-security.