#### To Create a Domain With a Specific Profile

A usage profile depicts how a particular domain is going to be used. It determines how the templates for various files are customized. Currently, only the customization for `domain.xml` template is supported. Every domain has a configuration which is stored in a set of files. Any number of domains each of which has a distinct administrative identity can be created in a given installation of the Application Server. Choose an appropriate profile for the domain, depending on the applications that will run on the new domain.

If you create a domain without specifying the profile, the profile with which the domain is created is determined by the value of the `AS_ADMIN_PROFILE` variable in the `asadminenv.conf` file. The default value of the `AS_ADMIN_PROFILE` variable depends on the distribution of Application Server from which the Application Server was installed.

1. Launch the `asadmin` utility.

   For instructions see Starting the `asadmin` Utility.

2. Create the domain.

       $ asadmin create-domain --user username --passwordfile passwordfile
        --profile profile-name mynewdomain

   In the `create-domain` command to create the domain, specify the `--profile` profile-name option explicitly.

   profile-name is one of the following case-sensitive profile names:

   `developer`

     Specifies the developer profile.

   `cluster`

     Specifies the cluster profile.

   `enterprise`

     Specifies the enterprise profile.

   If a domain is created with the developer profile, clustering and node agent features are not available for the domain. To use clusters and server instances, create a domain with the cluster profile or the enterpriseprofile.

3. When prompted, identify the admin password and master password.

   Since the port numbers were not identified, the default port numbers for the properties of the domain being created are displayed.