Operazioni sulle impostazioni

2 operazioni di nome settings.*. Ognuna si esegue in un batch con apply_ops, dry_run_ops, la CLI o l’admin.

Aggiornato il
OperationWhat it doesPermissionConfirmation
settings.readRead the draft site settings, key by key: the theme's setting fields (companyName, legalLine, supportEmail, logoWidth, socialImage, favicon, the analytics and consent keys analyticsProvider, analyticsSiteId, analyticsHost, consentPolicyVersion, ...), blockReveal (the reveal every block of the page's sections, or the footer's, plays), styleBreakpoints (the list breakpoints.update replaces; absent while the site keeps the defaults) and redirects (the list redirects.update replaces).site.readnone
settings.updateWrite site settings key by key: each key of the input replaces that setting and the others stay.site.editnone

settings.read

Read the draft site settings, key by key: the theme's setting fields (companyName, legalLine, supportEmail, logoWidth, socialImage, favicon, the analytics and consent keys analyticsProvider, analyticsSiteId, analyticsHost, consentPolicyVersion, ...), blockReveal (the reveal every block of the page's sections, or the footer's, plays), styleBreakpoints (the list breakpoints.update replaces; absent while the site keeps the defaults) and redirects (the list redirects.update replaces).

permission: site.readreads onlyclass: read

Esempio di input

{}

Input

L’input è un record: vedi lo schema qui sotto.

{
  "type": "object",
  "properties": {},
  "additionalProperties": false
}

Output

FieldTypeRequiredNotes
settingsrecord of any JSONyes

Provala

yarn splash settings.read '{}' --dry-run

settings.update

Write site settings key by key: each key of the input replaces that setting and the others stay. The analytics and consent keys are checked together on the result (an unknown provider, a site id of the wrong shape is refused), and blockReveal against its contract (null clears it). styleBreakpoints, the layout frames and redirects are refused here: use breakpoints.update, layout.update and redirects.update. Settings are versioned: the public site serves them after the next publish; undo restores the previous values.

permission: site.editwrites: settingsclass: transactionundo: yes

Esempio di input

{
  "siteTitle": "Studio"
}

Input

L’input è un record: vedi lo schema qui sotto.

{
  "type": "object",
  "propertyNames": {
    "$ref": "#/$defs/__schema0"
  },
  "additionalProperties": {
    "$ref": "#/$defs/__schema1"
  },
  "$defs": {
    "__schema0": {
      "type": "string",
      "minLength": 1
    },
    "__schema1": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "number"
        },
        {
          "type": "boolean"
        },
        {
          "type": "null"
        },
        {
          "type": "array",
          "items": {
            "$ref": "#/$defs/__schema1"
          }
        },
        {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {
            "$ref": "#/$defs/__schema1"
          }
        }
      ]
    }
  }
}

Output

FieldTypeRequiredNotes
settingsrecord of any JSONyes

Provala

yarn splash settings.update '{"siteTitle":"Studio"}' --dry-run

Generato dal registro delle operazioni e dal catalogo degli strumenti MCP (sorgente 6a1af3352873911a).

Qualcosa non va in questa pagina? Scrivi a docs@librettocms.com.

Guida di Libretto

Colophon. Questa guida è un sito Libretto: 70 pagine in due lingue, 21 pagine della guida importate da Markdown e 42 pagine di riferimento generate dal registro delle operazioni. Composta in Softcore, il codice in IBM Plex Mono. La sua struttura:

/it/ Guida di Libretto /it/start Per iniziare /it/start/request-access Richiedere l'accesso /it/start/workspace Il tuo spazio di lavoro /it/start/first-site Il tuo primo sito /it/start/invite-a-client Invitare un cliente /it/start/connect-claude Connettere Claude a Libretto /it/build Costruire /it/build/first-page Costruire una pagina /it/build/layers-and-canvas Livelli e canvas /it/build/site-components Componenti del sito /it/design-system Design system /it/design-system/tokens Colori, spazi e temi /it/design-system/components Componenti e varianti /it/design-system/fonts Tipografia e font /it/motion Movimento /it/motion/scenes Scene e ricette /it/motion/image-sequences Sequenze di immagini /it/motion/reduced-motion Movimento ridotto /it/publish Pubblicazione /it/publish/languages Le lingue del sito /it/publish/versions Pubblicazione e versioni /it/publish/members-and-forms Iscritti e moduli /it/publish/domains Domini /it/publish/redirects Reindirizzamenti /it/handover Consegnare un sito al cliente /it/glossary Glossario /it/agents Agenti e API /it/agents/mcp Server MCP /it/agents/cli CLI /it/agents/batches Batch /it/agents/errors Errori e segnalazioni /it/agents/operations Operazioni /it/search Cerca