Docs

amfelt deploy

Deploy a data contract to a target database.

Deploys an ODCS data contract to a target database using the configured target plugin. The target must be defined in the project’s amfelt.yaml file. The command generates DDL statements (CREATE TABLE, etc.) from the contract and executes them against the target database.

Use --dry-run to preview the generated DDL without executing it.

Usage  

amfelt deploy <target-name> [flags]

Examples  

deploy dwh --contract contracts/adventureworks.odcs.yaml
Deploys the adventureworks contract to the 'dwh' target defined in amfelt.yaml.

deploy dwh --contract contracts/sales.odcs.yaml --dry-run
Generates DDL for the sales contract without executing it.

deploy dwh --contract contracts/users.odcs.yaml --install
Deploys with auto-installation of the target plugin if not already installed.

Flags  

FlagTypeDefaultDescription
-c, --contractstring—path to the ODCS contract file to deploy
--dry-runboolfalsegenerate DDL without executing against the database
--forceboolfalseignore warnings and errors
--history-modestringscd2history table accumulation strategy; one of scd2, snapshot, append, scd1
--includestring—object selection glob(s) over the source contract for a select job; comma-separated (default *)
--installboolfalseautomatically install the required plugins
--layerstringallpipeline layer to deploy; one of staging, history, bridge, business, all
--pathstringamfelt.yamlpath of the Amfelt project file
--schema-prefixstring—base schema prefix override (e.g. “myproject” → myproject_stg, myproject_hst); overrides the PCF’s job.schemaPrefix, falls back to “amfelt” if neither is set

Global flags  

FlagTypeDefaultDescription
--amfelt-dirstring.amfeltdirectory for workspace files (such as plugins); does not move agent identity (controlled by AMFELT_DIR)
--configstring—directory or filename of the application configuration
-f, --formatstringdefaultlog format to use; either default, pretty, or json
-l, --levelstringinfominimum log level to display; either error, warn, info, or debug
-v, --verboseboolfalsetrigger to use verbose logging

Generated from amfelt v5.6.3.


Last updated on November 1, 2026