function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Kruthi ShashirajKruthi Shashiraj 

Customer Community license in an Enterprise edition scratch org

Hi,

Even if our devhub orgs/Production orgs  have Customer community licenses enabled the "Enterprise edition" sratch org
that we create through the devhub/prod environment doesn't have the "Customer Community" License available.
We cannot create "developer edition" scratch orgs because, we need platform cache memory availabe for our builds.

Does anyone know how to get the Customer Community license in an Enterprise edition scratch org?
Sampath Kumar 175Sampath Kumar 175
Enable Dev Hub in Your Org

Enable Dev Hub in your org so you can create and manage scratch orgs from the command line. Scratch orgs are disposable Salesforce orgs to support development and testing.

Enabling Dev Hub in a production or business org is completely safe and won’t cause any performance or customer issues. Dev Hub comprises objects with permissions that allow admins to control the level of access available to a user and an org.

Consider these factors if you select a trial or Developer Edition org as your Dev Hub.

You can create up to 6 scratch orgs and package versions per day, with a maximum of 3 active scratch orgs.
Trial orgs expire on their expiration date.

Developer Edition orgs that are inactive for 365 days are deactivated.

You can define a namespace in a Developer Edition org that isn’t your Dev Hub, and you can enable Dev Hub in a Developer Edition org that doesn’t contain a namespace.

If you plan to create package versions or run continuous integration jobs, it’s better to use a production or business org as your Dev Hub because of higher scratch org and package version limits. Package versions are associated with your Dev Hub org. When a trial or Developer Edition org expires, you lose access to the package versions.

The Dev Hub org instance determines where scratch orgs are created.

Scratch orgs created from a Dev Hub org in Government Cloud are created on a Government Cloud instance.

Scratch orgs created from a Dev Hub org in Public Cloud are created on a Public Cloud instance.
To enable Dev Hub in an org:

Log in as System Administrator to your Developer Edition, trial, or production org (if you’re a customer), or your business org (if you’re an ISV).

From Setup, enter Dev Hub in the Quick Find box and select Dev Hub.

If you don't see Dev Hub in the Setup menu, make sure your org is one of the supported editions.

To enable Dev Hub, click Enable.

After you enable Dev Hub, you can’t disable it.

check this link for more details: https://help.salesforce.com/articleView?id=sfdx_setup_enable_devhub.htm&type=5

You want to lean about:-  Salesforce Online Training  (https://svtechhub.com/Salesforce-Online-Training.html)