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 ago

slug is the address assigned by LILY, custom a domain you added.

add

lly domain copperfox add shop.example.com

Adds 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        verification

The 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.com

Shows the state and DNS records of a domain. LILY rechecks pending domains automatically.

remove

lly domain copperfox remove shop.example.com

Removes the domain from the app after confirmation. Without a terminal, -y is required.

Options

OptionDescription
--waitadd: wait until the domain is verified

Exit codes

CodeCause
2remove without confirmation
5Domain 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

On this page