Skip to main content
Hi...

We want to share a scratch org between two developers. How could we do?

Thanks
1 answer
  1. Jun 30, 2019, 1:58 AM
    @Pedro Garcia

    Create a Scratch Org User: 

    Sometimes you need other users to test with different profiles and permission sets.

     

    sfdx force:user:create --setalias qa-user --definitionfile config/user-def.json

    user-def.json

    ​​

    {

    "Username": "tester1@sfdx.org",

    "LastName": "Hobbs",

    "Email": "tester1@sfdx.org",

    "Alias": "tester1",

    "TimeZoneSidKey": "America/Denver",

    "LocaleSidKey": "en_US",

    "EmailEncodingKey": "UTF-8",

    "LanguageLocaleKey": "en_US",

    "profileName": "System Administrator",

    "permsets": ["Dreamhouse", "Cloudhouse"],

    "generatePassword": true

    }

    https://developer.salesforce.com/docs/atlas.en-us.sfdx_dev.meta/sfdx_dev/sfdx_dev_scratch_orgs_users_def_file.htm

    https://developer.salesforce.com/docs/atlas.en-us.sfdx_dev.meta/sfdx_dev/sfdx_dev_scratch_orgs_create_users.htm

    Salesforce : The push command doesn’t handle merges. Projects and scratch orgs are meant to be used by one developer. Therefore, we don’t anticipate file conflicts or the need to merge. However, if the push command detects a conflict, it terminates the operation and displays the conflict information to the terminal. You can rerun the push command and force the changes in your project to the scratch org.

    https://developer.salesforce.com/docs/atlas.en-us.sfdx_dev.meta/sfdx_dev/sfdx_dev_push_md_to_scratch_org.htm

     
0/9000