Loading
Visual Studio Code Based Modeler for Consumer Goods Cloud
Table of Contents
Select Filters

          No results
          No results
          Here are some search tips

          Check the spelling of your keywords.
          Use more general search terms.
          Select fewer filters to broaden your search.

          Search all of Salesforce Help
          Install Modeler Salesforce CLI Plugin

          Install Modeler Salesforce CLI Plugin

          After you install Salesforce CLI on your machine, install the Modeler Salesforce CLI plugin by using npm.

          Required Editions

          Make sure that all the required setup and tool installations listed in Prerequisites are complete.

          Available in: Enterprise and Unlimited Editions where Consumer Goods Cloud is enabled.
          User Permissions Needed
          To install Modeler CLI plugin Customizer, Admin

          Perform these steps to install the Modeler CLI plugin on your machine.

          1. In the Terminal or at the command prompt, run sf plugins install @ind-rcg/modeler-sfdx-cli-plugin.
          2. To verify that you installed your Modeler plugin correctly, run sf modeler workspace --help.
            The command returns a list of Modeler CLI commands.

          Review these configurations and error-handling guidance in case the Modeler CLI plugin installation on Windows fails.

          • Based on the version of Microsoft Build Tools that was installed during the Node.js installation, set the environment variable VCTargetsPath.

            Run this command for Microsoft Build Tools version 2019:

            set VCTargetsPath=C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\MSBuild\Microsoft\VC\v160\

            Include the backslash (\) at the end of the command to ensure that the environment variable is set correctly. If you are using a different version of Microsoft Build Tools, set the VCTargets path accordingly.

          • Ensure that you have the necessary rights to run Windows PowerShell in FullLanguage mode. To verify, run the$ExecutionContext.SessionState.LanguageMode command in PowerShell. It returns FullLanguage if you have the appropriate rights. If the FullLanguage mode doesn’t exist, manually install Microsoft Build Tools 2015 and restart your Windows machine.
          • If you get the "Unable to update lock within the stale threshold" error, we recommend that you retry the installation command a couple times. In each retry, use --verbose to see the progress.
          • If you installed Visual Studio Build Tools 2017 and you get node-gyp errors during the CLI installation, install Windows 8.1 SDK by using Visual Studio Installer.
          • If you installed multiple Microsoft Build Tools, make sure that node-gyp uses the correct versions. You can modify the .npmrc file to make node-gyp use the version of the build tools specified in VCTargetsPath. Here’s an example of the .npmrc file for Visual Studio 2019:
            msvs_version=2019
            msbuild_path=C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\MSBuild\Current\Bin\MSBuild.exe
           
          Loading
          Salesforce Help | Article