# molted settings

Source: https://molted.email/docs/cli/settings

Manage tenant settings (cooldown, consent enforcement, etc.)

| Command | Description |
| - | - |
| [`molted settings get`](#molted-settings-get) | Get current tenant settings |
| [`molted settings update`](#molted-settings-update) | Update tenant settings |

## Agent context

View and update tenant-level settings like the cooldown period between duplicate sends to the same recipient. cooldownMinutes (default 10, 0 to 1440; values outside are clamped) blocks a re-send of the same template to the same email from the same mailbox within the window.

Updating needs a workspace key (admin, or all mailboxes) with manage scope; a mailbox-scoped key gets 403 mailbox\_scope\_denied.

requireConsentForMarketing (default false): when true, a MARKETING template send to a recipient without active consent on file is blocked with reason "no\_consent". Active means the latest consent record for that recipient has no revokedAt -- a revokedAt in the future still counts as withdrawn now. Off by default -- consent stays a ledger you check yourself (`molted consent check`) until you opt the policy engine into enforcing it. Transactional templates are always exempt, and so are list broadcasts (`molted lists send`) and a list's double opt-in confirmation email -- the list subscription itself (with its own opt-in and unsubscribe) is the consent, whatever this setting is. Turning this ON tightens, so an agent key may do it directly; turning it OFF loosens and is human-gated, same as lowering the cooldown or clearing the physical address -- an agent key gets 403 human\_decision\_required (or a warning, depending on the tenant's human-gate mode).

physicalAddress (default none, at most 500 characters): the tenant's physical mailing address; a marketing send is blocked ("missing\_physical\_address") until one is set (CAN-SPAM). A template's \{\{physical\_address}} is filled with it at send time (any template type); a marketing email without it gets the address as a footer. Setting it when none exists is not a loosening, so an agent key may do it directly with `--physical-address`; changing or clearing an existing address needs a human, same as lowering the cooldown or turning\
requireConsentForMarketing off.

### Examples

```bash
molted settings get
molted settings update --cooldown-minutes 5
molted settings update --require-consent-for-marketing true
molted settings update --physical-address "123 Main St, Springfield, IL 62704"
```

## Commands

### molted settings get

Get current tenant settings

```bash
molted settings get
```

### molted settings update

Update tenant settings

```bash
molted settings update [options]
```

| Option | Description | Default |
| - | - | - |
| `--cooldown-minutes <minutes>` | Cooldown between duplicate sends (0-1440, default 10; lowering it is human-gated) | |
| `--require-consent-for-marketing <bool>` | Block marketing sends without active consent (true/false, default false) | |
| `--physical-address <address>` | Tenant physical mailing address for CAN-SPAM (set when none exists; changing or clearing an existing one needs a human) | |

See [CLI overview](https://molted.email/docs/cli.md) for global options, credentials and output format.
