Attach domain
domain_attachAttach a custom hostname to a Lizard service or generate a default subdomain when none exists; the response lists DNS records to add before verification.
Instructions
Every app already gets a *.onlizard.com domain automatically on its first deploy (check service_show's domain field before calling this — do not invent or guess a hostname). Only call this tool when the user explicitly wants to attach their own custom domain (pass hostname), or when service_show shows no domain yet (e.g. the service was created with skipInitialDeploy and never deployed) and they want one generated. Calling this again without hostname generates another subdomain rather than returning the existing one. For a domain bought on Lizard (domain_owned_list) or a subdomain of it, the DNS records are set for you; if that would replace records that point elsewhere, the call refuses and lists them, and force: true replaces them. Otherwise the response lists the DNS records the user must add, then domain_verify.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| port | No | ||
| force | No | Move the domain here if it's attached to another of your services; on a bought domain, also replace records that point elsewhere | |
| project | Yes | ||
| service | Yes | ||
| hostname | No | Custom hostname to attach; omit to generate a default subdomain |