domain
Add custom domains to an app and check their DNS records.
lly domain [SLUG|ID] [list]
lly domain [SLUG|ID] add <HOSTNAME> [--wait]
lly domain [SLUG|ID] check <HOSTNAME>
lly domain [SLUG|ID] remove <HOSTNAME>Each public app has an address under lilylabs.app. lly domain adds custom domains. See Domains for verification states and restrictions.
list
Hostname Kind State Since
copperfox.lilylabs.app slug active 2d ago
shop.example.com custom pending 1m agoslug is the address assigned by LILY, custom a domain you added.
add
lly domain copperfox add shop.example.comAdds the domain to the app and prints the DNS records to create:
DNS records
Type Name Value Purpose
CNAME shop.example.com copperfox.lilylabs.app routing
TXT _lily-verify.shop.example.com lily-verify=dv_1 verificationThe domain setup in the console shows the same records. LILY verifies the domain automatically after the records are created. --wait waits until the domain is verified, for up to 10 minutes.
check
lly domain copperfox check shop.example.comShows the state and DNS records of a domain. LILY rechecks pending domains automatically.
remove
lly domain copperfox remove shop.example.comRemoves the domain from the app after confirmation. Without a terminal, -y is required.
Options
| Option | Description |
|---|---|
--wait | add: wait until the domain is verified |
Exit codes
| Code | Cause |
|---|---|
2 | remove without confirmation |
5 | Domain belongs to another app |
6 | --wait timed out after 10 minutes |
JSON output
list: the raw domain list. add and check: the raw domain. add --wait: {"hostname", "state", "verified"}. remove: {"released"}.
See also
- Add a custom domain: the same task step by step