Fluid Forge
Why Forge
Concepts
Get Started
  • Consume a Data Product
  • See it run
  • Demos
  • Local (DuckDB)
  • Source-Aligned (Postgres → DuckDB)
  • AI Forge + Data Models
  • MCP Output Port — Serve to AI Agents
  • GCP (BigQuery)
  • Snowflake Team Collaboration
  • Declarative Airflow
  • Orchestration Export
  • Jenkins CI/CD
  • Universal Pipeline
  • 11-Stage Production Pipeline
  • Catalog Forge End-to-End
CLI Reference
  • Agent Policy (concept)
  • MCP Output Port — Serve to Agents
  • MCP deep-dive
  • AI-assisted authoring
  • LLM providers & backends
  • Overview
  • Quickstart
  • Examples
  • Your own CI
  • Your own scaffolding
  • Custom validator
  • Apply hook
  • Reference
  • Overview
  • Architecture
  • GCP (BigQuery)
  • AWS (S3 + Athena)
  • Snowflake
  • Local (DuckDB)
  • Custom Providers
  • Roadmap
GitHub
Why Forge
Concepts
Get Started
  • Consume a Data Product
  • See it run
  • Demos
  • Local (DuckDB)
  • Source-Aligned (Postgres → DuckDB)
  • AI Forge + Data Models
  • MCP Output Port — Serve to AI Agents
  • GCP (BigQuery)
  • Snowflake Team Collaboration
  • Declarative Airflow
  • Orchestration Export
  • Jenkins CI/CD
  • Universal Pipeline
  • 11-Stage Production Pipeline
  • Catalog Forge End-to-End
CLI Reference
  • Agent Policy (concept)
  • MCP Output Port — Serve to Agents
  • MCP deep-dive
  • AI-assisted authoring
  • LLM providers & backends
  • Overview
  • Quickstart
  • Examples
  • Your own CI
  • Your own scaffolding
  • Custom validator
  • Apply hook
  • Reference
  • Overview
  • Architecture
  • GCP (BigQuery)
  • AWS (S3 + Athena)
  • Snowflake
  • Local (DuckDB)
  • Custom Providers
  • Roadmap
GitHub
  • Introduction

    • Home
    • Why Fluid Forge
    • Getting Started
    • Snowflake Quickstart
    • See it run
    • Forge Data Model
    • Vision & Roadmap
    • Playground
    • FAQ
  • Concepts

    • Concepts
    • Builds, Exposes, Bindings
    • What is a contract?
    • Quality, SLAs & Lineage
    • Governance & Policy
    • Agent Policy (LLM/AI governance)
    • Providers vs Platforms
    • Fluid Forge vs alternatives
  • Data Products

    • Consume a Data Product
    • Product Types — SDP, ADP, CDP
  • Walkthroughs

    • Walkthrough: Local Development
    • Source-Aligned: Postgres → DuckDB → Parquet
    • AI Forge And Data-Model Journeys
    • Walkthrough: MCP Output Port
    • Walkthrough: Deploy to Google Cloud Platform
    • Walkthrough: Snowflake Team Collaboration
    • Declarative Airflow DAG Generation - The FLUID Way
    • Generating Orchestration Code from Contracts
    • Jenkins CI/CD for FLUID Data Products
    • Universal Pipeline
    • The 11-Stage Pipeline
    • End-to-End Walkthrough: Catalog → Contract → Transformation
  • CLI Reference

    • CLI Reference
    • Core workflow

      • fluid init
      • fluid demo
      • fluid forge
      • fluid validate
      • fluid plan
      • fluid apply
      • fluid diff
      • fluid status
    • Build & ship

      • fluid bundle
      • fluid generate
      • fluid generate artifacts
      • fluid validate-artifacts
      • fluid verify-signature
      • fluid generate iac
      • fluid generate-airflow
      • fluid generate-pipeline
      • fluid viz-graph
      • fluid publish
      • fluid ship
      • fluid rollback
      • fluid schedule-sync
    • AI & Agents

      • fluid ai
      • fluid agents
      • fluid mcp
      • fluid memory
      • fluid stats
      • fluid skills
    • Quality & governance

      • fluid test
      • fluid verify
      • fluid contract-tests
      • fluid contract-validation
      • fluid policy
      • fluid policy check
      • fluid policy compile
      • fluid policy apply
    • Standards & interoperability

      • fluid odps
      • fluid odps-bitol
      • fluid odcs
      • fluid export
      • fluid export-odps
      • fluid exporters
      • fluid import
      • fluid market
      • fluid datamesh-manager
    • Project & workspace

      • fluid product-new
      • fluid product-add
      • fluid workspace
      • fluid contract
      • fluid split
      • fluid config
      • fluid providers
      • fluid plugins
      • fluid provider-init
      • fluid auth
      • fluid secrets
      • fluid ide
      • fluid scaffold-ci
      • fluid scaffold-composer
      • fluid scaffold-ide
      • fluid docs
      • fluid runs
      • fluid retention
      • fluid describe
      • fluid doctor
      • fluid roadmap
      • fluid version
    • Catalog adapters

      • Source Catalog Integration (V1.5)
      • Publishing to a Catalog — Overview
      • BigQuery Catalog
      • Snowflake Horizon Catalog
      • Databricks Unity Catalog
      • Google Dataplex Catalog
      • AWS Glue Data Catalog
      • DataHub Catalog
      • Data Mesh Manager Catalog
      • OpenMetadata Catalog
    • CLI by task

      • CLI by task
      • Add quality rules
      • Add agent governance
      • Debug a failed pipeline run
      • Switch clouds with one line
  • Recipes

    • Recipes
    • Recipe — add a quality rule
    • Recipe — switch clouds with one line
    • Recipe — tag PII in your schema
    • Write a contract that consumes another contract
    • Generate per-environment overlays
  • SDK & Plugins

    • SDK & Plugins
    • Quickstart — your first plugin
    • Examples

      • Runnable examples
      • Example: hello-scaffold — the minimal viable plugin
      • Example: gitlab-ci-scaffold — generate a complete CI project
      • Example: steward-validator — a custom governance rule
      • Example: prod-key-guard — apply-time invariant check
    • Journeys

      • Journeys
      • Your own CI/CD

        • You have your own CI/CD setup, no problem
        • GitLab CI — the bundle template
        • GitHub Actions — the bundle template
        • Jenkins — the bundle template
        • CircleCI — the bundle template
      • You have a strict project layout, no problem
      • You have governance rules, no problem
      • You want a check at apply time, no problem
    • Reference

      • Reference
      • Roles reference
      • Entry points reference
      • Trust model
      • Packaging
      • Companion packages
  • Providers

    • Providers
    • Provider Architecture
    • GCP Provider
    • AWS Provider
    • Snowflake Provider
    • Local Provider
    • Creating Custom Providers
    • Provider Roadmap
  • AI & Agents

    • MCP Server
    • Built-in And Custom Forge Guidance
    • Forge Discovery Guide
    • Forge Memory Guide
    • Authoring Forge Tools
    • Guided fluid forge UX
    • LLM Providers
    • LiteLLM Backend
    • Capability Warnings
    • Cost Tracking
    • FLUID Forge Contract GPT Packet
    • Agentic Primitives
  • Operate & Deploy

    • Airflow Integration
    • Blueprints
    • Source-Aligned Acquisition
  • Govern & Secure

    • Governance, Compliance & the Business Case
    • Governance & Compliance
    • Network Safety
    • Credential Resolver — Security Model
  • Configuration & Reference

    • Environment Variables
    • Typed Errors
    • Typed CLI Errors
    • API Stability — fluid_build.api
  • Architecture & Releases

    • V1.5 Catalog Integration — Architecture Deep-Dive
    • V1.5 + V2 Hardening — Release Notes
  • Project

    • Contributing to Fluid Forge
    • Fluid Forge Docs Baseline: CLI 0.9.0
    • Fluid Forge Docs Baseline: CLI 0.8.11
    • Fluid Forge Docs Baseline: CLI 0.8.10
    • Fluid Forge Docs Baseline: CLI 0.8.9
    • Fluid Forge Docs Baseline: CLI 0.8.8
    • Fluid Forge Docs Baseline: CLI 0.8.7
    • Fluid Forge Docs Baseline: CLI 0.8.6
    • Fluid Forge Docs Baseline: CLI 0.8.5
    • Fluid Forge Docs Baseline: CLI 0.8.4
    • Fluid Forge Docs Baseline: CLI 0.8.3
    • Fluid Forge Docs Baseline: CLI 0.8.0
    • Fluid Forge Docs Baseline: CLI 0.7.11
    • Fluid Forge Docs Baseline: CLI 0.7.9
    • Fluid Forge v0.7.1 - Multi-Provider Export Release

fluid product-add

Append a source, exposure, or data-quality rule to an existing FLUID contract — writing each into its canonical home so the contract still passes fluid validate afterwards.

Requires a build newer than 0.10.0

Schema-valid output landed in the fix merged after 0.10.0 (currently on main; ships in a later release). On the released 0.10.0, product-add still writes legacy top-level sources / exposures / dataQuality keys that fail fluid validate (root: Additional properties are not allowed). Until you upgrade, scaffold with fluid product-new or move the items into their canonical homes by hand. The --platform, --expose, and --severity options below are also new in that build.

Syntax

fluid product-add CONTRACT WHAT --id ID \
  [--description TEXT] [--type TYPE] [--location LOC] \
  [--platform PLATFORM] [--expose EXPOSE_ID] [--severity LEVEL]

Each WHAT maps to a different part of the contract:

WHATCanonical homeShape written
sourceconsumes[]{ productId, exposeId } — an upstream product expose this contract reads
exposureexposes[]{ exposeId, kind, binding, contract } — a data interface this product publishes
dqexposes[].contract.dq.rules[]{ id, type, severity } — attached to a target expose

Key options

OptionApplies toDescription
CONTRACTallPath to an existing contract.fluid.json or contract.fluid.yaml.
WHATallWhat to add: source, exposure, or dq.
--idallRequired. exposure → exposeId; source → upstream productId; dq → rule id.
--descriptionallFree-text. Stored as description (exposure/dq) or purpose (source).
--typeexposure, dqexposure → expose kind (table/view/file/stream/topic/…; default table). dq → rule type (completeness/freshness/uniqueness/valid_values/accuracy/schema/…; default completeness). Unrecognized values fall back to the default.
--locationexposure, sourceexposure → binding.location.path. source → the upstream exposeId (defaults to --id).
--platformexposurebinding.platform (local/gcp/aws/snowflake/…; default local). The binding.format is derived from the platform.
--exposedqTarget exposeId the rule attaches to. Defaults to the first expose; errors if the contract has no expose yet.
--severitydqRule severity: info/warn/error/critical (default warn).

Examples

# source -> a consumes[] upstream reference
fluid product-add contract.fluid.json source \
  --id sales.orders_v1 --location orders_curated --description "Curated orders feed"

# exposure -> an exposes[] interface (binding.platform + location)
fluid product-add contract.fluid.json exposure \
  --id customer_360 --type table --platform snowflake --location analytics.customer_360

# dq -> a rule under the target expose's contract.dq.rules[]
fluid product-add contract.fluid.json dq \
  --id orders_freshness --type freshness --severity error --expose customer_360

Notes

  • Each item is written to its canonical home (consumes[], exposes[], or the target expose's contract.dq.rules[]) and deduplicated — exposes[] by exposeId, consumes[] by (productId, exposeId), and dq rules by id within the expose — keeping the last occurrence.
  • product-add emits no version-specific optional keys, so the result validates against the contract's own fluidVersion (e.g. a 0.7.2 contract stays 0.7.2-valid).
  • The contract is rewritten atomically. YAML inputs are written back as JSON (.yaml/.yml → .json); convert back manually if you prefer YAML on disk.
  • To create a brand-new product first, see fluid product-new. To validate or apply the result, see fluid validate and fluid apply.

Canonical contract shape

The FLUID schema (fluid-schema-0.7.5.json) is closed at the top level; its required keys are fluidVersion, kind, id, name, metadata, and exposes. There are no top-level sources, exposures, or dataQuality keys — which is why product-add writes to the homes below (and why hand-edited contracts should too):

ConceptCanonical home
an upstream sourceconsumes[] ({ productId, exposeId }), or a source-aligned exposes[] entry
a consumer interfaceexposes[] — each requires exposeId, kind, binding, contract
a data-quality ruleexposes[].contract.dq.rules[]

A binding requires platform, format, and location. A data-quality rule (exposes[].contract.dq.rules[]) requires id, type, and severity:

  • type — one of freshness, completeness, uniqueness, valid_values, accuracy, schema, anomaly_detection, drift_detection.
  • severity — one of info, warn, error, critical.
exposes:
  - exposeId: orders_curated
    kind: table
    binding:
      platform: local
      format: parquet
      location:
        path: output/orders_curated.parquet
    contract:
      schema:
        - name: order_id
          type: string
      dq:
        rules:
          - id: orders_freshness
            type: freshness
            severity: error

An alternate inline form is exposes[].contract.quality[].{rule, expression, severity}.

Edit this page on GitHub
Last Updated: 6/27/26, 4:58 PM
Contributors: jeffwatson-ai, Claude Opus 4.6 (1M context), fas89
Prev
fluid product-new
Next
fluid workspace