DEV Community

shivamkapasia0
shivamkapasia0

Posted on • Updated on

B2B testing environment using SFDX and shell scripts.

B2B testing environment using SFDX and shell scripts.

Step 1:

Install SFDX CLI , Git and VSCode.

Step 2:

Clone the repo using Vscode by opening the command palette (cmd+shift+p) and choose git clone and paste the repo url

https://github.com/forcedotcom/b2b-commerce-on-lightning-quickstart.git

  • open the cloned repo in VSCode and go to sfdx directory and run the script using git.Alt Text Alt Text
  • After running script in git successfully open VSCode. ## Step 3: Open VSCode and run the following commands in sfdx directory for auth devHub.

sfdx force:auth:web:login -d

Run the command that creates the scratch org and specify the username for the administrator:

sfdx force:org:create -f config/project-scratch-def.json username= -s -d

e.g: sfdx force:org:create -f config/project-scratch-def.json username=kapasiashivam007@gmail.com -s -d 30

To open the new org:

sfdx force:org:open

Now scratch org has been created but you need credentials, so to get scratch org credentials Go to terminal >> type

sfdx force:org:display

Generate scratch org password using command:

sfdx force:user:password:generate --targetusername "yourUserName"

Thanks for visiting.

Top comments (0)