What's the deal with Deno? We talk with a major contributor to find out. Listen now.

Questions tagged [salesforcedx-cli]

Questions relating to the `sfdx` binary that is supplied as part of the tools suite for Salesforce DX.

Filter by
Sorted by
Tagged with
1
vote
3answers
3k views

How to connect Visual studio Code to Salesforce

I have connecting command prompt to salesforce using below commands. D: cd salesforce CLI cd bin sfdx force:auth:web:login -d -a DevHub But i cant able to connect Visual studio code to salesforce. i ...
2
votes
1answer
1k views

“fatal signup error” when creating scratch org

I have a Dev Hub that is set up in my Developer Edition org. I have been using it for DX development for several weeks, but when I tried to create a scratch org today with the same configuration file (...
1
vote
0answers
358 views

DX CLI and VS Code Extensions

I've got VS Code 1.30.1 (user setup) installed along with: Node: 8.9.3 VS Code Extensions: All the ones availble as part of the Salesforce Extensions Pack https://marketplace.visualstudio.com/items?...
2
votes
1answer
2k views

Usage of cli command - sfdx force:source:convert

I used force:source:retrieve to retrieve the given list of components (classes, workflows etc) and committed the files to git. Now I want to deploy these components to higher environments like QA and ...
3
votes
1answer
213 views

SFDX auth login is throwing an error “Windows cannot find error opening a https://login.salesforce… Make sure you typed the name correctly”

When I try to login to Dev Hub using this command in the terminal: sfdx force:auth:web:login --setdefaultdevhubusername --setalias NewDevHub I encountered an error as shown in the picture above. I'...
0
votes
0answers
1k views

SFDX: Authorize a Dev Hub command

I get "sfdx force:auth:web:login --setdefaultdevhubusername ended with exit code 1"
0
votes
2answers
549 views

Saving metadata to git/bitbucket

How can we commit data from unpackaged folder to the repo folder. I have master repo created and want to commit the changes to the metadata which is retrieved via retrieve cli command. If I try to ...
16
votes
3answers
15k views

How to push code to production with Visual Studio Code & DX

I am using Visual Studio Code to develop new functionality. However, after completing the testing in the sandbox, I want to push the code to production. When I choose "SFDX: Deploy Code to org", it ...
1
vote
0answers
608 views

Authentication into Dev Hub does not work in CLI

I type in Salesforce CLI the following command: $ sfdx force:auth:web:login -d -a DevHub My browser opens up a login form. I pick the org which has Dev Hub enabled. Then in browser I am getting ...
3
votes
1answer
1k views

Unable to delete custom field using force:source:delete CLI command

I realize the command is still in beta, but I am unable to delete a custom field using the force:source:delete command. I have tried force:source:delete -m CustomField:myObject__c.myField__c, which ...
2
votes
1answer
412 views

Using Salesforce DX with B2B Commerce (CloudCraze)

we are about to work on B2B Commerce (CloudCraze) and are looking into the possibility of using the Salesforce CLI for CI/CD. Can anyone tell me, if this is generally possible and if there are any ...
2
votes
1answer
126 views

confused about the different org types involved in a salesforce development env

I'm new to SF development and only need to do some very small stuff for our org (e.g. triggers, custom fields)... This is our setup: we have a productive Salesforce org with a single licence for our ...
1
vote
1answer
895 views

hitting limits while creating a unlocked package version

I run the following command sfdx force:package:version:create -p SFExtension -d force-app -k xxxx --wait 10 -v DevHub and with my 6th (5 finished successfully) execution I get this error: ERROR: ...
2
votes
1answer
786 views

Script to dynamically generate XML file based on most Git commit contents (Salesforce CI)

I'm using DX for my Continuous Integration, but post-scratch org when I want to deploy into a traditional sandbox for staging, I'm struggling with an automated way to deploy only the new commits (as ...
11
votes
4answers
15k views

No Option for “SFDX:Authorize an Org” command in VS Code Command Palette

I have performed below steps- Install CLI Install extensions "Salesforce Extension Pack" and "Saleforce CLI Itegration" I am getting only few SFDX command options in Command Palette. Also i have ...
3
votes
1answer
512 views

SFDX: this.log is not a function when running create commands

If i run this command sfdx force:lightning:component:create --type lwc --componentname TEST_LWC --outputdir force-app/main/default/lwc I get this error message: this.log is not a function This is ...
5
votes
1answer
475 views

Best practice to setup a development environment with source control,vscode and sandbox

i have been working on the traditional way of developing within salesforce using Force.comIDE / aside.io / developer console. i want to move to a more robust way of writing code using a source control(...
2
votes
1answer
5k views

SFDX: Deploy Source to Org : Error - SourcePathInvalid

I am Getting SourcePathInvalid for file path c://projectpath//projectname/extension-output-#2 at deployment time. Please refer attach image for more details.
1
vote
3answers
3k views

sfdx Error while creating package version

I'm working on "Unlocked Packages for Customers" trailhead module. While creating the package version I'm getting below error: ERROR: The --path (-d) value, [force-app], and --package (-p) value, [th-...
3
votes
3answers
224 views

Salesforce DX Use Case

We are a small team of three members and planning to implement SFDX in our project, I have some questions regarding the same. Is there any additional cost involved on sfdx? I believe no, but not able ...
1
vote
1answer
120 views

Query Multiple SObject using Salesforce Cli

Is it possible to export multiple SObjects data records without using Parent Child relationship? Suppose there are 2 SObjects Transaction__c and Country__c independent of each other.. I want to export ...
1
vote
1answer
304 views

How to use SFDX to import related records using an External ID from CSV File?

My question is as the title stated. In data loader, we can achieve this by explained in this official article: https://help.salesforce.com/articleView?id=000002783&type=1 One field in object B ...
5
votes
5answers
545 views

“ logger is not defined” on sfdx force:user:display output? [BUG]

I'm getting ERROR: logger is not defined. error after issuing sfdx force:user:display command. What I'm trying to input is: sfdx force:user:display sfdx force:user:display -u username It ...
3
votes
1answer
976 views

How can I upsert & populate Lookups with external Id using sfdx?

Trying to run the following command on my org using sfdx (Upserting csv into my scratch org) : 'sfdx force:data:bulk:upsert -s Product2 -i ExternalId__c -f data/srv-allproducts.csv -u MyORG ' This ...
3
votes
0answers
136 views

SFDX Can't Pull Source from Scratch Org “Metadata API received improper input” AppMenu and AppSwitcher [duplicate]

I'm using SFDX and I made a change to the visibility of my app in my scratch org but when I try to pull the changes down (sfdx force:source:pull) I get: ERROR: Metadata API received improper input....
0
votes
2answers
223 views

Does Salesforce DX support Amazon Linux AMI?

Is there any way to install Salesforce DX CLI on an Amazon Linux AMI EC2 instance or does it only support Ubuntu? If it doesn't support the AMI OS, Is there anything on the roadmap? I need to the DX ...
4
votes
1answer
1k views

How to setup Bamboo with Salesforce CLI?

Is there any guide on how to setup Bamboo with the Salesforce CLI. We are not using SalesforceDX yet but just want to setup a job to deploy from GIT repo in BitBucket onto a sandbox. I guess the steps ...
1
vote
1answer
2k views

How to get a complete new PULL of the scratch org components?

Currently when we issue the sfdx force:source:pull -f command, SFDX only pulls the differences in components. I want to know if there is a way to get a complete refreshed copy of "force-app" ...
4
votes
2answers
2k views

Deploy sfdx project to another sandbox with CI

SFDX project folder structure is little different from previous folder structure where all metadata folders are inside src folder. ANT agent on our Continuous Integration tool works for the old ...
4
votes
2answers
8k views

SFDX: create project using manifest not available

I have visual studio code installed in my desktop and updated SFDX to its latest version. However, when I open up the command palette for 'Create project', I am seeing only the following two options ...
1
vote
1answer
167 views

How to automatically enable Recordtypes for Scratch org admin

Whenever I create my scratch org I have to manually assign Record Types to the Standard User and System Administrator profile. Is there any way to automize that?
8
votes
2answers
433 views

Scratch org is created without Alias and reports “Cannot read property 'timeout' of undefined.”

From one day to the other I am unable to create scratch orgs using the command which worked before: sfdx force:org:create -f /Users/path/to/scratch-def.json -a MY_ORG -v DevHub -s -d 30 I receive ...
4
votes
1answer
3k views

SFDX CLI fails to connect to orgs with JSON error

I am using the latest CLI version 6.35.1-8b7320f7c2 and when I do sfdx force:auth:web:login -a DevHub -d ERROR: Unexpected token ] in JSON at position 88. Calling sfdx force:org:list renders ...
2
votes
1answer
1k views

Receiving Error: Entity of type 'flow' named 'xxxxxxxxxxxx' cannot be found when doing an sfdx force:source:pull command

I have made edits (Cloned/deleted old version) to a process builder in a scratch org and when I perform the sfdx force:source:pull command in GitBash I receive Error: "Entity of type 'flow' named '...
14
votes
2answers
3k views

SFDX Force:org:open fails and user is directed to the login screen

I have two scratch orgs that I've created this week, post Winter Release, that will not open from the command line using sfdx force:org:open. The login fails and I'm stuck staring at the login screen....
25
votes
2answers
5k views

SFDX Pull fails because of AppMenu/AppSwitcher

I created a scratch org with the new Winter release. After pushing my code without trouble, and updated it, I wanted to pull it to local files using : sfdx force:source:pull --forceoverwrite -u ...
1
vote
1answer
429 views

SFDX CLI installation failing on OS X

I am trying to install SFDX CLI on my macbook but it is failing and there are not enough details to see why it is failing. I have gone through the system requirements and my machine matches those ...
7
votes
2answers
525 views

sfdx force:lightning:lint throwing a Parsing Error with ES6 syntax

I'm running the SFDX lightning linter on a lightning component as part of a pull request for my organization, but am hitting the following error: error Parsing error: Unexpected token > Line:57:...
0
votes
1answer
740 views

the path specified is not a directory or doesn't contain a package.xml

I don't understand what is wrong in "Convert the Source and Push It to a New Scratch Org" from trail "Convert and Deploy an Existing App". I get this error: the path specified is not a directory or ...
0
votes
1answer
68 views

Do installing a Managed Package (listed in AppExchange) via Salesforce CLI, create a License & Lead in package developer's LMA org?

Can anyone confirm if this is the case. Though I don't really think this should be allowed, but I'm suspecting random licenses occurring and it's a hunch that they are being generated because it is ...
13
votes
2answers
7k views

How do I get Apex code coverage statistics when using Salesforce DX & Visual Studio Code

I am using Salesforce DX & Visual Studio Code to develop against a sandbox environment. After running an Apex test from Visual Studio Code, how can I view the code coverage from within Visual ...
7
votes
1answer
3k views

SFDX: Deploy Source to Org: Very slow

I am using command: SFDX: Deploy Source to Org To deploy Apex code to a sandbox environment. But often it is taking a very long time (multiple minutes) to respond/complete. QUESTION How can I get ...
1
vote
1answer
881 views

Create standard price book programmatically

I’ve created a scratch org, but it’s empty without a price book. I’d like to create it with script/code/CLI so it can be automated. Unless the price book is in place I can’t really add products w ...
5
votes
1answer
1k views

SFDX: Deploy Source to Org: Errors do not appear as Problems in Visual Studio Code

How do I get the errors returned from command: SFDX: Deploy Source to Org To appear in the Visual Studio Code Problem Window? As this would allow us to click on the error and be taken directly to ...
2
votes
1answer
278 views

How to create Salesforce DX project sub-modules using Visual Studio Code / Salesforce DX CLI

I would like to break my project into multiple submodules: project - config - module-1 -- main --- default ---- classes - module-2 -- main --- default ---- classes - etc Is there a Visual Studio ...
16
votes
1answer
2k views

SFDX: ERROR: INVALID_OPERATION: rollbackOnError option must be true on a production org. When using Salesforce DX pre-release and Visual Studio Code

I have a Visual Studio Code project which has beed authorised against a production environment. I am using the Salesforce DX CLI pre-release: sfdx plugins:install salesforcedx@pre-release When I ...
19
votes
3answers
10k views

How to run Apex anonymous code from Visual Studio Code

Is it possible / How would I run a block of Apex anonymous code from Visual Studio Code?
8
votes
1answer
4k views

How to switch between Salesforce DX orgs/projects when using Visual Studio Code

BACKGROUND Imagine you're working on 2-3 Salesforce projects each with a different target Orgs (sandboxes for different companies). You're actively working on project 1 (coding, running tests, ...
0
votes
1answer
512 views

Deletion of custom field on standard object not detected by force:source:pull

I did the following: In my scratch org I created a custom field (on a Standard Object). Then I executed force:source:pull so I had that custom field in my project folder. I created a new scratch org ...
1
vote
1answer
3k views

Visual Studio Code code-completion against Sandbox Org with Salesforce DX

How do I tell Visual Studio Code to use the Symbols from the Sandbox org? I would like to develop Apex using Visual Studio Code, and get code completion based on the configuration / meta-data in a ...

1
6
7
8 9 10