Skip to main content

create-domain

Attach a custom domain to an environment and start verifying it
1 min read

Attach a custom domain to an environment and start verifying it. The domain remains pending until its DNS records are verified.

Usage#

Flags#

--projectstringrequired#
Project ID or slug.
--appstringrequired#
App ID or slug.
--environmentstringrequired#
Environment ID or slug.
--domainstringrequired#
Fully qualified domain name without a scheme, port, or path.

Global Flags#

FlagTypeDescription
--root-keystringOverride root key ($UNKEY_ROOT_KEY)
--api-urlstringOverride API base URL (default: https://api.unkey.com)
--configstringPath to config file (default: ~/.unkey/config.toml)
--outputstringOutput format. Use json for raw JSON
--bodystringSend this JSON string as the request body. You cannot combine it with request-building flags.

Examples#

See Custom domains for DNS and verification details.