dcloud deploy domains add

Attach a custom domain to an app

IAM deploy:ManageDomainChanges stateAsks before it deletes (-y skips)

Synopsis

dcloud deploy domains add id --domain domain [flags]

Arguments

  • <id>Required

    string

    Also accepted as --id. Constraints: uuid

Flags

  • --domainRequired

    string

    Hostname to serve the app on, or *.host for every subdomain of host

    Constraints: 1-253 chars, /^(\*\.)?[a-z0-9.-]+$/i

  • --is-primaryOptional

    boolean (--is-primary / --no-is-primary)

    Mark this as the app’s primary domain; default false

Example

dcloud deploy domains add id --domain example

Generated from the API description, the same one the API checks requests against and the CLI is built from.