Questions tagged [sfdx-plugin]

A plug-in adds functionality to the Salesforce CLI. Some plug-ins are provided by Salesforce and are installed by default when you install the CLI. Some plug-ins are provided by third parties and can be installed locally. When you have a requirement that an existing plug-in doesn’t meet, you can build your own.

Filter by
Sorted by
Tagged with
7
votes
2answers
620 views

ERROR running force:source:pull: Entity of type 'Workflow' named 'Workflow' cannot be found

I am having issues when pulling Workflows using SFDX with VS Code. The error that I get when pulling in the Workflow (sfdx force:source:pull) is: ERROR running force:source:pull: Entity of type '...
5
votes
1answer
381 views

Downgrading sfdx-cli

I'm wondering whether it's possible to downgrade sfdx-cli to use an earlier version? I'm trying to debug an issue with using it in pipeline scripts. When I run sfdx version --core I get sfdx-cli 7....
4
votes
5answers
6k views

SFDX - No org configuration found for name

Suddenly vscode stopped working with deploying the class to the sandbox I'm using and throws this message "No org configuration found for name INSTANCE NAME" I tried to create a new project for the ...
4
votes
1answer
491 views

Error: Cannot find module '@oclif/config'

I already sort of asked this question but there doesn't seem to be a solution for it. So I figured I would ask a new question about work arounds people have done. When running any form of sfdx ...
4
votes
1answer
1k views

SFDX: Retrieve all metadata brought wrong or metadata

I am still quite new to sfdx, so perhaps I am missing some important step but basically this are the steps I follow to create a project in VS CODE using the SFDX extension: I start by selecting the ...
4
votes
1answer
145 views

Is there an SFDX plugin that allows an existing field to be updated available somewhere?

I'm in the middle of writing a Jenkinsfile so we can have one Jenkins job that handles multiple branches and multiple org configurations. For the multiple org configurations, I'm using the parallel ...
3
votes
2answers
115 views

How to sign a SFDX Plugin?

I have created my plugin using sfdx plugins:generate and then I deployed it to npm. When I try to install it using sfdx plugins:install I got the message: This plugin is not digitally signed and its ...
3
votes
1answer
527 views

VS Code + sfdx: debug logs [duplicate]

Until a few weeks ago, vs code use to have a reasonable error message if there was an error when deploying. But I notice the last few weeks this is change and it is not very descriptive the problem, ...
3
votes
1answer
34 views

Difference between create-lwc-app and SFDX cli

Hello Salesforce community, I'm not sure where to ask the question so I'll ask it here. I'm beginner with LWC and Salesforce (but senior as frontend developer). Can you explain me the difference ...
2
votes
2answers
90 views

Error parsing file: LWC Metadata Xml Parser: Unexpected element: runtimeNamespace

I am trying to deploy an LWC and get this error : "Error parsing file: LWC Metadata Xml Parser: Unexpected element: runtimeNamespace". Here is the code of my js-meta.xml <?xml version="1.0" ...
2
votes
1answer
1k views

Scratch org: how to retrieve metadata

Scratch org: how to retrieve metadata I am probably missing some concepts, but this are the steps that I have follow to create a new scratch org from a developer edition org. Created a new dev org ...
2
votes
1answer
37 views

How to launch node debugging session when developing custom sfdx plugin

Working with a friend on some pretty cool sfdx plugins. Challenge seems to be if something goes wrong I get a pretty generic error, no stack trace, and it's a real challenging tracing things back to ...
2
votes
2answers
1k views

ERROR running force:source:push: No org configuration found for name

Not sure why this stopped working but all of the sudden sfdx forgot my org configuration. I pulled down the latest changes from the master branch and went to push them into my checked out branch and ...
2
votes
2answers
184 views

Warning: force:lightning:lwc:start is not a sfdx command

I am trying to use the new LWC Local Development Server. I've run command: sfdx update So I know I am using the latest version of the CLI. And I've installed the plugin: sfdx plugins:install @...
2
votes
2answers
94 views

Creating a project from sandbox using vscode

We donot have sfdx enabled in our instances. Can I use vscode IDE and create a proejct from sandbox with any of the salesforce extensions. I see the documentation around creating a scratch org, then ...
2
votes
0answers
19 views

SFDX occasionally fails decryption on all my authorized orgs, causing me to re-auth them all

I have been using SFDX for the last couple years as a way to log into seperate orgs easier. Every once and a while, I will load up terminal and try to log into an org, only to get this error: ERROR ...
2
votes
1answer
23 views

How do I display more characters when debugging SFDX code?

I have variable in my code defined as follows: String myString = myConfig.my_field_name__c; When debugging in the SFDX console (in VS Code), the variable's value is only displayed as: myString: '...
2
votes
2answers
264 views

FlowDefinition isn’t supported

I have an up to date SFDX and plugins. I continue to get the flow definition error when pushing with Illuminated Cloud to my scratch org. I am not sure what the next steps should be as I have followed ...
1
vote
1answer
267 views

What is “Sfdx Auth Url” attribute used for?

Till now, I have been working with SFDX orgs using JWT cert based auth auth:jwt:grantor authenticating using browser using auth:web:login I recently came across the --verbose attribute which gives ...
1
vote
1answer
22 views

sfdx package versioning error for BillingCountryCode and MailingCountryCode field

I have one class where contact MailingCountryCode and account BillingCountryCode is used. I have added both objects in project but still I am getting error while versioning the package. Error message>>...
1
vote
1answer
419 views

Can Not Update SFDX

I am running into an error when I am trying to update my SFDX version in my cli and I am unsure what it means. Olivias-MacBook-Pro:test op$ sfdx update › Warning: Use "npm update --global sfdx-...
1
vote
1answer
2k views

ERROR running force:source:retrieve: This command is required to run from within an SFDX project

I was able to create a project in VS code. Also able to authenticate the org. In the package.xml when i right click & click on "SFDX : Retrieve source in Manifest from Org" - i'm getting the ...
1
vote
1answer
85 views

Automating setup of scratch orgs

I want to write a script preferably in Node.js to automate sfdx force:org:create, sfdx force:user:password:generate, sfdx:org:push and, sfdx force:user:permset:assign. The script should take ...
1
vote
1answer
110 views

SFDX CLI - Unknown error when pushing code to Scratch

I created a new scratch and trying to push the code I received an uknow error: { "status": 1, "result": [ { "error": "Unknown" } ], "name": "DeployFailed", ...
1
vote
1answer
70 views

cannot run sfdx on my machine

I am having a problem with my machine when installing Salesforce CLI, I have included the App Path (C:\Program Files\Salesforce CLI\bin), but still, it is not recognized, when I tried doing echo %PATH%...
1
vote
1answer
34 views

SFDX unlocked package version component list

I have created one unlocked package for deployment purpose.Now I am adding new components to the package and doing versioning. How can I check the which version contains what metadata. EX. suppose my ...
1
vote
1answer
75 views

Unable To Install SFDX Plugin

I installed an SFDX plugin to help with data loading, but the version installed with sfdx plugins:install etcopydata installs an older version with some missing functionality. Running sfdx plugins:...
1
vote
1answer
239 views

Unable to install sfdx plugins:install @salesforce/lwc-dev-server

I am using 1.38.1 version of VSCode and i have done "http.proxyStrictSSL": false I am still getting error Error: unable to get local issuer certificate i tried in my personal laptop. Now ...
1
vote
1answer
30 views

DX Custom Plugin Help

Trying to understand the right way to have my sfdx plugin command just return a string as the default output, but so far every example shows the returning of an object. Structure under the src folder ...
1
vote
1answer
169 views

DX - Custom Plugin Install

Usually DX CLI plugins are installed via sfdx plugins:install <plugin-name> The examples provided from sfdx plugins:install --help list these: $ sfdx plugins:install myplugin $ sfdx plugins:...
1
vote
3answers
815 views

SFDX Install Unlocked Dependencies

I am starting to play with the @salesforce/command extensions for SFDX cli and thinking of writing a script that could handle install all unlocked dependencies recursively. As per this question it ...
1
vote
0answers
12 views

SFDX error after adding manage package dependency

After adding manage package subscriber id in the sfdx-project.json file I am getting below error ERROR at Row:1:Column:125 sObject type 'Package2VersionCreateRequest' is not supported. If you are ...
1
vote
1answer
29 views

Sfdx:create project… project is not creating

I have issue while creating project using command Sfdx:create project or with manifest in Command palette everything are fine but the problem is Nothing happen. its not creating project. I also set ...
1
vote
1answer
37 views

SFDX plugin to generate Apex classes from Swagger file is failing to install

I'm trying to install this plugin https://github.com/muenzpraeger/sfdx-plugin , due to some reason it is failing. Please let me know if there is any other way that i can generate classes using swagger ...
1
vote
0answers
27 views

Testing custom salesforce plugin

I am currently trying to test a custom salesforce plugin which deploys a payload to a specific org. The plugin itself is coded in typescript and the unit tests are using mocha/chai. I am running ...
1
vote
0answers
19 views

Salesforce DX vs. Einstein Discovery Stories and Models

I am currently developing an app containing Einstein Discovery elements in a scratch org. When pulling the source code using sfdx, the story and models built are not included, as well as the Write ...
1
vote
0answers
123 views

SFDX and Puppeteer

I am trying to use puppeteer in conjunction with the DX CLI. While I can easily created a puppteer object with something like: const puppeteer = require('puppeteer'); void (async () => { try ...
1
vote
1answer
461 views

Why ContentAssets Deployment creating “No Network Named” issue?

I am trying to migrate community configurations from one scratch orgs to another. Everything works fine except ContentAsset. I am getting the following error:- PS E:\Projects\xxxxx-build test> ...
1
vote
1answer
169 views

SFDX hello:org plugin not available when installed from npmjs

I've create a SFDX Plugin with sfdx plugins:generate. When the plugin is linked using sfdx plugins:link . the command hello:org is available and work properly. When this same plugin is deployed to ...
1
vote
0answers
92 views

SFDX ORG shape with PROD metadata

Our company PROD ORG is a big monolithic application with heavy tangled apex code and metadata. We are about to introduce some more apps in the near future and I personally wanted to follow the ...
1
vote
1answer
561 views

SFDX: retrieve Source from Org failing

In order to connect my VSC to my org and pull my org's datas to VSC, I followed the steps this great video shows ; In Visual Studio Code I : - SFDX: created project with Manifest - in the manifest -> ...
1
vote
0answers
28 views

SFDX create definition from a dev org

I am wondering if there is a way to create the sfdx scratch org definition straight from a dev org. i am aware of shape and snapshot however these are in pilot and what i am hoping for is something ...
0
votes
1answer
27 views

Ternary operator in class property throws error

I'm going insane here with the non-specific error messages of sfdx. <div class="item slds-col slds-size_{! v.itemsPerRow == 1 ? '12' : '4' }-of-12"> produces the error Cannot mix expression ...
0
votes
3answers
86 views

sfdx' is not recognized as an internal or external command, operable program or batch file

Unable to get past this error when Creating the Hello World Lightning Web Component I checked the path variable as described here
0
votes
1answer
82 views

Salesforce DX Usage with Classic and team work using scratch org

We are currently using Salesforce Classic and we have developers outside of United states using the remote desktops to login to the client machine and then using SF. I have seen the seminars for SFDX,...
0
votes
1answer
29 views

Possible to code a component (Aura or LWC) and see it in local?

So far, while coding a component (Aura, or LWC), we need everytime to deploy to the org to see modifications, is there a way to code in my local machine ? (localhost like) ? In Angular for example ...
0
votes
1answer
89 views

How to set maxRequest in sfdx plugin? Error: exceeded max limit of concurrent call

We're developing an SFDX plugin aiming to help us with data migration between orgs. SFDX plugins are using jsforce, as far as I've seen it's wrapped into @salesforce/core package. When writing using ...
0
votes
1answer
27 views

SFDX auth commands getting frozen

When I try to execute sfdx force:auth:web:login -r https://test.salesforce.com command it starts to run endlessly without any output. Happens both in cmd and VS Code. I've already tried updating the ...
0
votes
1answer
34 views

deployment error for Entilement object

I'm trying to deploy entitlement object meta data, layouts, and fields through ant tool. However, I keep getting an error: Invalid fullName, must end in a custom suffix ( for ex. __c ) Anybody ...
0
votes
1answer
201 views

VS Code retrieve Profile data

I retrieved with VS code all my profile, with * Profile in package.xml. But in definition of a profile "profileName-meta.xml", i can't find userPermission with false value. ...