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.

AWS GenAI LIVE image

How is generative AI increasing efficiency?

Join AWS GenAI LIVE! to find out how gen AI is reshaping productivity, streamlining processes, and driving innovation.

Learn more

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay