fob-mdm contracts

A conformance contract says that one integration's copy of one field must match the golden value, and how a mismatch is fixed: auto pushes the golden value to the app, ticket asks the app's owner to change it. See Hub-First Editing and Conformance.

fob-mdm contracts <action> [target] [options]
ActionDescription
listList contracts
showShow one contract
createRequire an app's copy of a field to match golden
editChange whether a field must match, or how drift is fixed
deleteDelete a contract and the conformance state it produced

contracts list

List contracts.

fob-mdm contracts list [options]
Argument or optionRequiredDefaultDescription
--integration <id>Only this integration's contracts.
--object <object>Only contracts on this object's fields (id or slug).
--page <n>1Page number.
--limit <n>100Rows per page (max 500).
--allFetch every page (up to 15000 rows).
--jsonPrint the raw JSON response.
fob-mdm contracts list
fob-mdm contracts list --integration 5

API: List Contracts

contracts show

Show one contract.

fob-mdm contracts show <id> [options]
Argument or optionRequiredDefaultDescription
<id>YesContract id.
--jsonPrint the raw JSON response.
fob-mdm contracts show 3

API: Get Contract

contracts create

Require an app's copy of a field to match golden.

fob-mdm contracts create --integration <id> --field <field> [options]
Argument or optionRequiredDefaultDescription
--integration <id>YesIntegration id.
--field <field>YesField id, or key on the integration's object.
--mode <mode>autoauto: push the golden value. ticket: ask the app's owner. One of auto, ticket.
--no-must-matchRecord the field without requiring it to match.
--jsonPrint the raw JSON response.
fob-mdm contracts create --integration 5 --field bank_ifsc --mode ticket
ID:           3
Integration:  5
Field:        bank_ifsc (12)
Must match:   yes
Enforcement:  ticket

--field takes a field id, or a key on the object the integration links to.

API: Create Contract

contracts edit

Change whether a field must match, or how drift is fixed.

fob-mdm contracts edit <id> [options]
Argument or optionRequiredDefaultDescription
<id>YesContract id.
--mode <mode>Enforcement mode. One of auto, ticket.
--must-matchThe app must match golden.
--no-must-matchThe app needn't match.
--jsonPrint the raw JSON response.
fob-mdm contracts edit 3 --mode auto

API: Update Contract

contracts delete

Delete a contract and the conformance state it produced.

fob-mdm contracts delete <id> [options]
Argument or optionRequiredDefaultDescription
<id>YesContract id.
-y, --yesSkip the confirmation.
fob-mdm contracts delete 3 --yes

Deletes the contract and the conformance state it produced.

API: Delete Contract

Every command also takes --profile <name> and --help. See Command-line Interface.

Using an AI agent? Give it the raw Markdown of this page, or the docs index.