Skip to main content

Custom Domain

When you deploy your application, you'll receive a unique URL for each environment (test, staging, production). By using custom domain, you can replace these default URLs with your own, personalized URL for your application.

  • Create custom domain

    Use command :

    Using appid
    initz create customdomain --appid=<appid> --test=<test> --stg=<stg> --prod=<prod>
    Using app name
    initz create customdomain --name=<app-name> --test=<test> --stg=<stg> --prod=<prod>
    Flags
    --name
    • Indicates tha name of the application.
    • can use either name or appid
    • required
    • Shorthand : n
    --appid
    • Indicates the id of the application.
    • can use either name or appid
    • required
    --test
    • Set URL for test environment.
    • Optional
    --stg
    • Set URL for stage environment.
    • Optional
    --prod
    • Set URL for production environment.
    • Optional
  • Get custom domain

    Use command :

    Using appid
    initz get customdomain --appid=<appid>
    Using app name
    initz get customdomain --name=<appname>
    Flags
    --name
    • Indicates tha name of the application.
    • can use either name or appid
    • required
    • Shorthand : n
    --appid
    • Indicates the id of the application.
    • can use either name or appid
    • required