Use the Visual Studio Code "Prophet Debugger"? extension to connect to a Salesforce Commerce Cloud sandbox
Microsoft Visual Studio Code, Prophet Debugger extension, and SalesForce Commerce Cloud logos

Use the Visual Studio Code "Prophet Debugger" extension to connect to a Salesforce Commerce Cloud sandbox

I just finished working my way through a Medium article by Manu Saini regarding connecting VSCode (Visual Studio Code) projects to SFCC (Salesforce Commerce Cloud) sandboxes, and simplified it for use in my company documentation. The article was very thorough, so if you want further details, I definitely recommend checking it out, but if you want the "quick and dirty" version, here are the steps.


Prerequisites

  • VSCode installation (get it for free at code.visualstudio.com)
  • An account with administrative access to the SFCC sandbox you want to connect to
  • An active code version on the sandbox


Instructions


1. Install the “Prophet Debugger” extension in VSCode.

  • Extensions (ctrl+shift+x) > “prophet debugger”


2. Import and open the project in VSCode.


3. Run a launch command from VSCode Command Palette.

  • View > Command Palette > “Debug: launch.json”

 

4. Create a dw.json file

  • Create at the root level of project
  • Add this code:
{

    "hostname": "<your host>.demandware.net",

    "username": "<your sandbox username",

    "password": "<your sandbox password>",

    "code-version": "<your sandbox's code version>"

}

Hint: If you’re having trouble with this step, check to make sure the code-version in your dw.json configuration is the code version for your sandbox (see Administration > Site Development > Code Deployment), not the version of Node that is being used!

 

5. Clean and upload the cartridges using the VSCode Command Palette

  • View > Command Palette > “Prophet: Clean Project/Upload All”

 

6. Update the preferences of the code editor to enable auto upload

  • File > Preferences > Settings > “extension.prophet.upload.enabled“
  • Set to enabled/true


That's it! You're connected!

Aravind Tallapaka

Technical lead at concordusa

1 年

Is there a way to retrieve the code from sandbox using the prophet?

回复

要查看或添加评论,请登录

Sondra Coffin的更多文章

  • Welcome to the Wonderful World of HTML

    Welcome to the Wonderful World of HTML

    HTML is a computing language that is used to “tell” computers how a web page should be structured. It is a fundamental…

  • Pug.js Basics

    Pug.js Basics

    Pug (formerly known as Jade) is a template engine that allows you to dynamically manipulate the HTML and CSS that are…

    6 条评论
  • 10 Minute Vue App

    10 Minute Vue App

    The Intro Vue is a front-end JavaScript framework that packs a lot of the same features of other popular frameworks…

  • Getting Started with Asynchronous JavaScript

    Getting Started with Asynchronous JavaScript

    When I'm trying to learn something new and am finding trouble wrapping my head around the overarching concept, my first…

  • Git Refresher

    Git Refresher

    * * * PLEASE NOTE * * * ?As of June 2020, GitHub now refers to the "master" branch as the "main" branch by default…

  • Quick Tip: Shortcut a query in Oracle SQL Developer or SQL Server Management Studio

    Quick Tip: Shortcut a query in Oracle SQL Developer or SQL Server Management Studio

    After going back and forth copy-and-pasting or trying to remember queries for my current project, I decided wanted to…

  • My Journey into SOAP

    My Journey into SOAP

    Introduction This article embodies my understanding of SOAP-- which is admittedly simplified in some areas-- in the…

    2 条评论
  • 3 Quick Tips for Absolute Beginner Coders

    3 Quick Tips for Absolute Beginner Coders

    I've gotten a lot of messages from people across the world asking about my journey into code, so I wanted to take a few…

    2 条评论
  • Why You Should Hire a Candidate with Teaching Experience

    Why You Should Hire a Candidate with Teaching Experience

    Having been an educator for several years, I know firsthand how valuable teachers' knowledge, skills, and work ethic…

    6 条评论
  • A Teacher's To-Do List

    A Teacher's To-Do List

    I recently wrote an article for staffing managers on Why You Should Hire a Candidate with Teaching Experience, and…

    2 条评论

社区洞察

其他会员也浏览了