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
0
votes
0answers
21 views

Channel Program object is not available in scratch org

I'm creating a Scratch Org. Following is my command. sfdx force:org:create -f config\project-scratch-def.json --setalias My-Scratch-Org --durationdays 30 --setdefaultusername --json But then once the ...
2
votes
0answers
36 views

SFDX: Get Apex Debug Logs returns “undefined”

This is driving me insane - I am no longer receiving full log files when running SFDX: Get Apex Debug Logs via VS Code's command palette. Instead, I get an empty file with the correct file name, but a ...
2
votes
1answer
23 views

SFDX is not recognized as an internal or external command on VS Code

I'm doing some Trailhead challenges that require me to download Salesforce CLI and SF Extension Pack on VSC. I've already downloaded both (as well as Java). I've added Java and SFDX to PATH yet I keep ...
10
votes
1answer
381 views

sfdx plugin installation crash: TypeError: Cannot read property 'dim' of undefined

Since today, my docker image crash because sfdx plugins:install seems to crash I tried with 2 different plugins, and the result is the same I also tried on Windows: same crash $ sfdx plugins:install ...
1
vote
3answers
68 views

Unable to run custom hello world SFDX plugin locally

I followed the instructions mentioned in the documentation: Scaffold a Salesforce CLI Plug-In. After generating the boilerplate code with command: sfdx plugins:generate hello, I got the project as ...
1
vote
1answer
83 views

Issue with setting default org in VSCode

I am trying to set a default org in VScode but it is not working. I get a Cannot read property 'getInstance' of undefined error. ERROR running force:auth:web:login: Cannot read property 'getInstance' ...
2
votes
2answers
110 views

SFDX Best practices for managing custom objects?

We would like to use the SFDX Cli to version our custom objects in a Git repository. For now, because we're new to SFDX and our codebase will be small, we want a single sfdx app. We currently have ...
1
vote
0answers
11 views

SFDX Command Executor Not Found

With a custom plugin I've written, whenever I try to run one of my plugin commands, I always receive the following: (node:14344) Error Plugin: mypluginname: command executor not found module: @oclif/...
0
votes
0answers
21 views

Command 'CCDX: Deploy Source To Salesforce' resulted in an error (Cannot read property 'path' of undefined)

Facing below error when I am trying to deploy LWC from VS Code Command 'CCDX: Deploy Source To Salesforce' resulted in an error (Cannot read property 'path' of undefined) Steps to generate error: ...
0
votes
1answer
25 views

405 When trying to install custom plugin from internal Github

I have a custom DX plugin hosted on an internal GitHub Enterprise repo. When I try and run sfdx plugins:install git@github.mycompany.com:myusername/my-repo.git it returns: (node:18800) Error Plugin: ...
5
votes
1answer
239 views

Deprecated or invalid utility class SLDS

I have been trying to use SLDS in LWC. However, I am noticing these issues recently. The same style classes were working before without any issues. Does anything worng with my VS code or is really ...
2
votes
0answers
47 views

Specifying individual CustomField in package.xml (vscode) does not deploy to Org, but when retrieving by object it does?

When retrieving CustomFields in package.xml by specifying: <types> <members>ObjectName.FieldName__c</members> <name>CustomField</name> </types> They retrieve ...
1
vote
2answers
61 views

SFDX: How to log in by session id and session url

We are writing a nodejs application which should execute some set of actions against SF org triggered by incoming http request coming from that org. Such request will contain base url and session id ...
1
vote
1answer
63 views

Running Anonymous Apex error: This org has reached its daily usage limit of apex log headers

I am running updates via sfdx commands by sending an .apex file. The command looks like this: sfdx force:apex:execute -f <myFile.apex> <my_org_credentials> After running 1000 of these, I ...
1
vote
0answers
26 views

How ignore Entitlement Process in Salesforce DX CLI?

I tried many times to ignore the Entitlement process (with versioning enable) and was unable to do it. All Scratch organizations that I created, after the first push, the first pull return many errors ...
3
votes
1answer
126 views

SFDX: How can I make my plugin available to install via sfdx plugins:install and a git repo reference?

We have written a plugin for use by our PS and QA teams for complex and large "data plan" loading and want to make it as easy to install for them as possible. We don't want to make it ...
0
votes
1answer
27 views

Local LWC server - there are no components present

I wanted to try out the local development Salesforce feature in VSCode. I am able to run the server, I am able to approach localhost:3333/ but I am unable to see any LWCs. In our org we are not using ...
0
votes
0answers
21 views

DX CLI - Cant find Error after moving a folder

I recently took a folder on my desktop and made it the child of another folder, and now get the following error message when running commands in the CLI: (node:13468) Error Plugin: sfdx-cli: could not ...
0
votes
2answers
42 views

How to deploy Source Format Git Branch into non-scratch org using jenkins?

How to deploy Source Format Git Branch meaning SFDX format into non-scratch org or full copy sandbox or production using jenkins?
0
votes
0answers
28 views

sfdx force:source:deploy attempt from explorer fails, then the same command works in terminal window after a couple of tries

This is more annoying that anything, but any suggestions would be useful. I have a correct installation of VS code, Salesforce CLI, and all necessary extensions. loaded LWC sfdx project from Github ...
1
vote
1answer
30 views

Accesing .sfdx/alias.json from an SFDX plug-in

I want to access ~/.sfdx/alias.json from an SFDX plug-in. (I know I can use sfdx force:alias for this; it's just an example.) I'm having a very hard time figuring out what the docs at https://...
1
vote
2answers
65 views

Cannot pull from scratch org after discard changes in visual studio code

I use git and sfdx with vs code. I have a scratch org where I made changes to the roles. I did sfdx pull source from scratch org. But I discarded the changes thinking I can pull them again from ...
0
votes
0answers
37 views

Problem While pushing into Scratch Org

When I trying to push into my Scratch Org from CLI, using the command sfdx force:source:push -u TestScratchOrg -f then I'm encountering the error Unhandled rejection TypeError: Cannot read property '...
2
votes
1answer
96 views

How to properly install the preview release salesforcedx core plugin

On every release I run into some sort of trouble with this testing phase and having the preview CLI core plugin installed. The instructions are short and clear HERE That said, those instructions don'...
1
vote
1answer
21 views

Issue with Salesforce Package directories

While Creating a new package version, I have to keep all the components in the same folder otherwise it is giving me errors. Even though the component exists in other directory. So,There are 2 use ...
0
votes
0answers
9 views

Errors for external object in unlocked packages

how to add external objects and external data sources in an unlocked package? Is there any particular feature/setting needs to be enable? I have added the datasources also. But getting errors like ...
2
votes
3answers
104 views

How to diff metadata from Github with my managed package

SFDX looks promising for this, but I'm confused and am running out of time. Your help is appreciated. It seems this could do what I need... sfdx force:source:diff But it appears to only work on ...
1
vote
0answers
40 views

SFDX error for external objects

I have added external object in an unlocked package. This object is getting call from apex classes. I have added the datasources also. But getting errors like below: 1. Invalid type: Schema....
1
vote
1answer
47 views

SFDX error for LiveChatTranscript object

I have added LiveChatTranscript object in my unlocked package but while versioning getting error LiveChatTranscript: Invalid fullName, must end in a custom suffix ( for ex. __c ) Can anyone help me ...
1
vote
1answer
112 views

Sfdx Auth Url is getting expired after certain time

For CI pipeline for authentication I am using "sfdx force:Org:Display --targetusername ProductionHub --verbose" command to get Sfdx Auth Url. Then by using "sfdx force:auth:Sfdxurl:Store -f ...
0
votes
1answer
12 views

List of components which can be deployed as a part of unlocked package

In sandbox 1 created one object and fields. Then changed the FLS(field level security) for one field. Added this object in a unlocked package then after versioning installed it in sandbox 2. FLS did ...
2
votes
1answer
80 views

Unable to navigate code path for a specific project in VS Code

I am having trouble with navigate the code path by using "Go to definition" / "Peek Preview" for one project. I also don't see any SFDX commands on Command palette. The project has below structure. (I ...
0
votes
1answer
125 views

Cannot find “Custom Settings” in Org Browser (Visual Studio Code, SFDX) [duplicate]

I creating a Custom Setting in a sandbox, called Global Settings (Global_Settings__c). I am trying to pull the Custom Setting into my SFDX project via Visual Studio Code, but "Custom Settings" does ...
1
vote
1answer
44 views

Unlocked package name changed or package delete option

I have below questions: Can we change the name of a created unlocked package? Also can we delete any unlock package which is already created? Please provide solution if available.
2
votes
1answer
376 views

Cannot retrieve WorkflowAlert, WorkflowFieldUpdate, WorkflowRule from package.xml through sfdx cmd

I want to retrieve all my WorkflowAlert, WorkflowFieldUpdate, WorkflowRule from my sandbox and deploy them to another one. Here is my package.xml file : <?xml version="1.0" encoding="UTF-8" ...
0
votes
1answer
69 views

ERROR force:data:tree:import CANNOT_INSERT_UPDATE_ACTIVATE_ENTITY entity type cannot be inserted

My issue is whenever I am trying to sfdx import user records to another org I get this error: ERROR running force:data:tree:import: {"hasErrors":true,"results":[{"referenceId":"ProfileRef1","errors":...
1
vote
3answers
135 views

Determine if authorized org with SalesforceDX is Developer or Production

I'm struggling to determine the type of environment of authorized orgs using the SalesforceDX auth commands. Once you've registered an org if you run sfdx force:org:list --json The output results ...
1
vote
1answer
498 views

invalid fullname must end in a custom suffix(for ex. _c)

Added AccountContactRelation object inside my DX unlocked package but while versioning getting error invalid fullname must end in a custom suffix(for ex. _c)” What is the issue for this?please advice....
4
votes
1answer
185 views

Parsing Jest response and fail Bitbucket Pipeline

This is an extension to Lean and reusable DX Bitbucket Pipeline for PR checks. Similar to Apex tests I also want to run all JEST tests when a scratch org is created using my shell scripts AND from ...
2
votes
0answers
34 views

SFDX versioning error for leadsource field

I have account,contact, opportunity,case and lead in my unlocked package. For case entitlements,multicurrency fields (ex. currencyisocode, slastartdate, entitlementid etc.) I have added ""features": [...
1
vote
1answer
33 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 ...
0
votes
1answer
40 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
35 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
1answer
39 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 ...
1
vote
1answer
275 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 ...
0
votes
0answers
432 views

ERROR_HTTP_414 - <h1>Bad Message 414</h1><pre>reason: URI Too Long</pre> on VS Code

I am trying to push the code to my scratch org through VS Code using following command - sfdx force:source:push --json --loglevel fatal But getting following error on VS Code. ERROR_HTTP_414" - "...
1
vote
0answers
2k views

SFDX: Create Project failed to run

Facing problem to complete this trailhead trail ( https://trailhead.salesforce.com/content/learn/projects/quick-start-lightning-web-components/set-up-visual-studio-code) I have installed Salesforce ...
3
votes
1answer
113 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 ...
0
votes
0answers
148 views

sfdx force:auth:web:login freezes

When I try to authenticate to the org by going to "VSCode" and clicking on "No Default Org Set" then Select the environment and then I type alias name. The spinner comes at the ...
1
vote
1answer
39 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>>...