DEV Community

shivamkapasia0
shivamkapasia0

Posted on • Edited on

1 1

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.

Speedy emails, satisfied customers

Postmark Image

Are delayed transactional emails costing you user satisfaction? Postmark delivers your emails almost instantly, keeping your customers happy and connected.

Sign up

Top comments (0)

Image of Docusign

🛠️ Bring your solution into Docusign. Reach over 1.6M customers.

Docusign is now extensible. Overcome challenges with disconnected products and inaccessible data by bringing your solutions into Docusign and publishing to 1.6M customers in the App Center.

Learn more