Skip to main content

list-domains

List custom domains attached to an environment
1 min read

List an environment's custom domains and their verification status. Results are paginated and sorted by ID.

Usage#

Flags#

--projectstringrequired#
Project ID or slug.
--appstringrequired#
App ID or slug.
--environmentstringrequired#
Environment ID or slug.
--limitinteger#
Maximum domains per response, from 1 to 100.

Default: "100"

--cursorstring#
Cursor returned by the previous page when hasMore is true.

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.