Domain operations

4 operations named domain.*. Every one runs in a batch through apply_ops, dry_run_ops, the CLI or the admin.

Updated
OperationWhat it doesPermissionConfirmation
domain.adddomain.add with domain ownership and provider gates.site.adminnone
domain.primarydomain.primary with domain ownership and provider gates.site.adminnone
domain.verifydomain.verify with domain ownership and provider gates.site.adminnone
domain.deletedomain.delete with domain ownership and provider gates.site.admindestructive

domain.add

domain.add with domain ownership and provider gates.

permission: site.adminwrites: siteclass: externalundo: explicit recovery

Example input

{
  "hostname": "www.example.com"
}

Input

FieldTypeRequiredNotes
hostnamestringyesAt least 1 character. At most 255 characters.

Output

FieldTypeRequiredNotes
domainobjectyes
domain.idstringyes
domain.siteIdstringyes
domain.hostnamestringyes
domain.kindstringyesOne of "platform", "custom".
domain.isPrimarybooleanyes
domain.redirectToPrimarybooleanyes
domain.statusstringyesOne of "pending", "active", "error".
domain.dnsStatusstringyes
domain.providerstring | nullyes
domain.providerIdstring | nullyes
domain.providerStatusstring | nullyes
domain.sslStatusstring | nullyes
domain.dnsTargetstring | nullyes
domain.ownershipVerificationobject | nullyes
domain.sslValidationRecordsarray of object | nullyes
domain.lastErrorstring | nullyes
domain.lastCheckedAtstring | nullyes
domain.verifiedAtstring | nullyes
domain.createdAtstringyes
domain.updatedAtstringyes

A dry run refuses an external operation, so it has no dry-run line: run it alone in a batch.

domain.primary

domain.primary with domain ownership and provider gates.

permission: site.adminwrites: siteclass: transactionundo: yes

Example input

{
  "domainId": "9c0d1e2f-3a4b-4c5d-9e6f-7a8b9c0d1e2f"
}

Input

FieldTypeRequiredNotes
domainIdstring (uuid)yes

Output

FieldTypeRequiredNotes
domainobjectyes
domain.idstringyes
domain.siteIdstringyes
domain.hostnamestringyes
domain.kindstringyesOne of "platform", "custom".
domain.isPrimarybooleanyes
domain.redirectToPrimarybooleanyes
domain.statusstringyesOne of "pending", "active", "error".
domain.dnsStatusstringyes
domain.providerstring | nullyes
domain.providerIdstring | nullyes
domain.providerStatusstring | nullyes
domain.sslStatusstring | nullyes
domain.dnsTargetstring | nullyes
domain.ownershipVerificationobject | nullyes
domain.sslValidationRecordsarray of object | nullyes
domain.lastErrorstring | nullyes
domain.lastCheckedAtstring | nullyes
domain.verifiedAtstring | nullyes
domain.createdAtstringyes
domain.updatedAtstringyes

Try it

yarn splash domain.primary '{"domainId":"9c0d1e2f-3a4b-4c5d-9e6f-7a8b9c0d1e2f"}' --dry-run

domain.verify

domain.verify with domain ownership and provider gates.

permission: site.adminwrites: siteclass: externalundo: explicit recovery

Example input

{
  "domainId": "9c0d1e2f-3a4b-4c5d-9e6f-7a8b9c0d1e2f"
}

Input

FieldTypeRequiredNotes
domainIdstring (uuid)yes

Output

FieldTypeRequiredNotes
domainobjectyes
domain.idstringyes
domain.siteIdstringyes
domain.hostnamestringyes
domain.kindstringyesOne of "platform", "custom".
domain.isPrimarybooleanyes
domain.redirectToPrimarybooleanyes
domain.statusstringyesOne of "pending", "active", "error".
domain.dnsStatusstringyes
domain.providerstring | nullyes
domain.providerIdstring | nullyes
domain.providerStatusstring | nullyes
domain.sslStatusstring | nullyes
domain.dnsTargetstring | nullyes
domain.ownershipVerificationobject | nullyes
domain.sslValidationRecordsarray of object | nullyes
domain.lastErrorstring | nullyes
domain.lastCheckedAtstring | nullyes
domain.verifiedAtstring | nullyes
domain.createdAtstringyes
domain.updatedAtstringyes

A dry run refuses an external operation, so it has no dry-run line: run it alone in a batch.

domain.delete

domain.delete with domain ownership and provider gates.

permission: site.adminwrites: siteclass: externalconfirm: destructiveundo: explicit recovery

Example input

{
  "domainId": "9c0d1e2f-3a4b-4c5d-9e6f-7a8b9c0d1e2f"
}

Input

FieldTypeRequiredNotes
domainIdstring (uuid)yes

Output

FieldTypeRequiredNotes
successtrueyes

A dry run refuses an external operation, so it has no dry-run line: run it alone in a batch.

Generated from the operation registry and the MCP tool catalogue (source ada45690b9ef1968).

Something wrong on this page? Write to docs@librettocms.com.

Libretto docs

Colophon. These docs are a Libretto site: 68 pages in two languages, 20 guide pages imported from Markdown and 41 reference pages generated from the operation registry. Set in Softcore, with code in IBM Plex Mono. Its outline:

/ Libretto docs /start Get started /start/request-access Request access /start/workspace Your workspace /start/first-site Your first site /start/invite-a-client Invite a client /start/connect-claude Connect Claude to Libretto /build Build /build/first-page Build a page /build/layers-and-canvas Layers and canvas /build/site-components Site components /design-system Design system /design-system/tokens Colours, space and themes /design-system/components Components and variants /design-system/fonts Typography and fonts /motion Motion /motion/scenes Scenes and recipes /motion/image-sequences Image sequences /motion/reduced-motion Reduced motion /publish Publish /publish/languages Site languages /publish/versions Publish and versions /publish/members-and-forms Members and forms /publish/domains Domains /handover Hand a site to a client /glossary Glossary /agents Agents and API /agents/mcp MCP server /agents/cli CLI /agents/batches Batches /agents/errors Errors and findings /agents/operations Operations /search Search