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]
| Action | Description |
|---|---|
list | List contracts |
show | Show one contract |
create | Require an app's copy of a field to match golden |
edit | Change whether a field must match, or how drift is fixed |
delete | Delete a contract and the conformance state it produced |
contracts list
List contracts.
fob-mdm contracts list [options]
| Argument or option | Required | Default | Description |
|---|---|---|---|
--integration <id> | Only this integration's contracts. | ||
--object <object> | Only contracts on this object's fields (id or slug). | ||
--page <n> | 1 | Page number. | |
--limit <n> | 100 | Rows per page (max 500). | |
--all | Fetch every page (up to 15000 rows). | ||
--json | Print 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 option | Required | Default | Description |
|---|---|---|---|
<id> | Yes | Contract id. | |
--json | Print 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 option | Required | Default | Description |
|---|---|---|---|
--integration <id> | Yes | Integration id. | |
--field <field> | Yes | Field id, or key on the integration's object. | |
--mode <mode> | auto | auto: push the golden value. ticket: ask the app's owner. One of auto, ticket. | |
--no-must-match | Record the field without requiring it to match. | ||
--json | Print 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 option | Required | Default | Description |
|---|---|---|---|
<id> | Yes | Contract id. | |
--mode <mode> | Enforcement mode. One of auto, ticket. | ||
--must-match | The app must match golden. | ||
--no-must-match | The app needn't match. | ||
--json | Print 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 option | Required | Default | Description |
|---|---|---|---|
<id> | Yes | Contract id. | |
-y, --yes | Skip 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.