Questions tagged [cli]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
0answers
14 views

Command 'SFDX: Run Apex Tests' resulted in an error (command 'sfdx.force.apex.test.run' not found)

I am learning Salesforce Apex development by taking a trailhead tutorial. Tutorial: Find and Fix Bugs with Apex Replay Debugger I followed the tutorial along and got the following error when I try to ...
0
votes
0answers
33 views

Issue With Salesforce CLI update

Hi I have just updated the version of the Salesforce CLI--from 7.110.0 ----- to 7.129.0-c662c12 After Update i am getting below error :--- 19:19:27.198 sfdx force:auth:web:login --setalias test --...
0
votes
1answer
41 views

How to "install" LWC?

I need to start with LWC but I used my company pc, and it has some bureaucracies to install software so I cannot install Salesforce CLI.. There's another way? Extension on Visual Studio Code works?
0
votes
1answer
29 views

Issue with installing the SFDX CLI in Linux

I had some issues with my SFDX CLI as I was not able to use SFDX commands from the terminal of my VS Code in Linux. So I looked up on the web and as part of one solution that I found on web, I was ...
0
votes
1answer
94 views

sfdx problem on wsl - CMD.EXE was started with the above path as the current directory. UNC paths are not supported

I try try install SFDX on my WSL (Ubuntu 20.04 LTS on WSL with Windows 10). Looks like the version 7.119.2 has been installed, but when referencing sfdx, it doesn't hit the one installed on Linux, it ...
2
votes
0answers
21 views

jsconfig.json Problem in a Package Dependency

I have been trying to build (force:package:version:create) a package first-project which depends on an other package other-project of mine. I got the following error: Unexpected file found in package ...
1
vote
0answers
25 views

RealTimeEventSettings error when pulling source

I am unable to resolve an error related to RealTimeEventSettings when pulling the source from a scratch org. I believe this settings file is a result of toggling real-time event monitoring settings - ...
0
votes
1answer
191 views

Avoid strange error 'The "path" argument must be of type string. Received null', when fthe path is not null

When I execute the command sfdx force:source:deploy -u o14 -p CPQFields I receive an error The "path" argument must be of type string. Received null, despite the path CPQFields is not null ...
0
votes
1answer
21 views

Linux version of SFDX fails to provide results for "sfdx force:user:list" command

When I tried to build a dynamic script in GitHub Actions using SFDX, I have been puzzled by the weird behaviour of sfdx force:user:list --json command in linux version of SFDX. In MacOS version of ...
0
votes
0answers
107 views

How to fix Authorize an org failed to run?

I am getting the following error :- 18:09:25.152 sfdx force:auth:web:login --setalias vscodeOrg --instanceurl >https://login.salesforce.com --setdefaultusername 18:09:25.154 sfdx force:auth:web:...
0
votes
1answer
297 views

SFDX CLI error in VS code

I have installed SFDX CLI along with Node JS, when I execute any command in console, I am getting as the attached image, I tried to get help from google, but find none, any hint from expert will be ...
5
votes
1answer
163 views

The Salesforce CLI Binary URL installs older version of Salesforce CLI. How to update Salesforce CLI to the latest version?

I have been installing the Salesforce CLI in my Circle CI scripts using the below mkdir sfdx wget -qO- https://developer.salesforce.com/media/salesforce-cli/sfdx-linux-amd64.tar.xz | tar xJ -C sfdx --...
1
vote
2answers
100 views

CLI Scratch Org misbehaving behaviour on enableRelateContactToMultipleAccounts

I am using CLI to create Scratch Orgs based from a definition file. The objective is to enable ContactsToMultipleAccounts when pushing our source data. The issue, is the Scratch Org is being created ...
0
votes
0answers
26 views

ERROR running force:package:version:create: typesArr.filter is not a function

Not sure why this has started happening. I was creating a new unlocked package for a client and started see this error ERROR running force:package:version:create: typesArr.filter is not a function ...
0
votes
0answers
69 views

Unexpected file found in package directory:

I am trying to deploy some components from github branch to dev sandbox with VS Code I am on the branch, where I have a code, and connected to the sandbox. I tried: sfdx force:source:deploy -c -p ...
1
vote
1answer
637 views

How to combine/manage all aliases for the same org

I have a trailhead playground org (not a scratch org) for which I've created multiple aliases and now I'd like to know how I can keep one and delete all the others using the Salesforce CLI? Also, is ...
0
votes
0answers
22 views

sfdx won't pull down full profile information [duplicate]

I'm using sfdx force:source:retrieve -m Profile what returns is a list of profiles but only the userPermissions, none of the object permissions or other things.
3
votes
2answers
694 views

How do I best switch versions of sfdx and plugins?

When there are bugs in different versions of SFDX CLI and the Plugins: There is a need to switch to another version. But I find uninstalling and re-installing too time consuming. Often people post ...
0
votes
1answer
161 views

Why are my recordtypes not being updated, they are going into the wrong folder

I have a CLI situation whereby the recordtypes I make changes too are not being updated on a retrieve. I cannot find flaws in my process, I change the connected org correctly my XML has the fields, ...
0
votes
1answer
38 views

cli connect to org dev hub not working

I'm running sfdx auth:web:login --setalias <alias> --instanceurl <instance url> from a command prompt. It opens a browser login page and I enter the credentials and hit enter. The browser ...
1
vote
1answer
368 views

Node version error during Salesforce DX pre-release plugin installation

When installing the Salesforce CLI with the Spring '21 pre-release Salesforce DX plugin, I'm getting an incompatible node version error. This command: sfdx plugins:install salesforcedx@pre-release ...
1
vote
0answers
152 views

sfdx:force:package:installed:list is throwing TIMEOUT error

Summary force:installed:list command is throwing time out error as Your query request was running for too long. Steps To Reproduce: 1.ScratchOrg is created 2.Installed two packages with packageID ...
3
votes
1answer
276 views

How can I get the Org Connection info from the org currently used in the command on which a CLI Hook is running?

When developing a custom CLI plugin, we're able to retrieve Org Connection using this.org.getConnection(), as the class is extending SfdxCommand. How can I do the same thing in a CLI hook ? I would ...
5
votes
1answer
55 views

What are the available values for workspaceElement state in CLI Hooks?

Looking at the doc for CLI Hooks, some hook types like predeploy and postsourceupdate return a workspaceElement. This element contains a state property that contains only one character, that I assume ...
0
votes
1answer
64 views

enable Forecasts and other settings via CLI

In order to prepare new scratch org I need to enable a few settings. Those settings are: enable Forecsts, enable Scheduling, enable Field Service, and few more... This is doable by clicking in ...
5
votes
1answer
353 views

Salesforce CLI deploy files with spaces failing

I am trying to deploy files to a non-source tracked org with the cli deploy command as follows: sfdx force:source:deploy -u [ORG] -p "force-app/main/default/layouts/Snapshot__mdt-Snapshot Layout....
1
vote
1answer
200 views

How to integrate SFDX with REST [duplicate]

My goal is to download all attachments of a given Case. I was managed to perform the needed queries to and I have a pointer to the ContentVersion object I need. They problem is that I don't know how ...
2
votes
0answers
155 views

Dataloader CLI problems with mapping of CSV File

I try to DELETE some Data from my Org. I have written a process-conf.xml with 4 Beans which work in BulkApi Mode and a Windows Batch File which calls the Jobs: Job1) extract DATA from SF via SOQL &...
0
votes
0answers
75 views

Automatically export data from Salesforce

I created a script to automatically extract data from Data Loader. I tried testing the SOQL in the dev console and it's showing the correct data, but when I used it in XML file the process is ...
4
votes
1answer
220 views

Is there any way to make a shell script to automate creation and preparation of a scratch org wait between steps?

I have the following shell script: sfdx force:org:create -f ./config/project-scratch-def.json -a ScratchOrg sfdx force:package:install --package 04t0M000001mF9bQAE -u ScratchOrg sfdx force:package:...
0
votes
0answers
74 views

Why code coverage result is different when we run it from CLI and Salesforce

We are working on SonarQube code coverage, We are using Salesforce CLI for generating the code coverage result and we are importing that result in the SonarQube. We see that there is a difference in ...
2
votes
2answers
208 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'...
0
votes
2answers
92 views

-rf means in SFDX CLI command? [closed]

rm -rf mdapipackage in this command what -rf means? When I am using in my Visual Studio its showed below error. Please help me with this. Remove-Item : A parameter cannot be found that matches ...
1
vote
1answer
735 views

Is Deployment of Queues not supported from sfdx CLI

While deploying queues from vs code using sfdx cli, I'm getting below error: ERROR running force:source:deploy: The specified metadata type is unsupported: [queues] It seems it's not supported.
4
votes
1answer
2k views

Issue with Prod deployment from VS Code sfdx CLI

I'm trying to deploy my objects from VS Code to Prod. All my object is in Source format. But when I try to deploy, I get below error : sf:INVALID_OPERATION: INVALID_OPERATION: testLevel of NoTestRun ...
0
votes
1answer
70 views

How to install the apps from sample gallery in a developer edition org?

While writing the command on salesforce CLI sfdx force:user:permset:assign -n ebikes I'am getting an error-> Permission set "ebikes" not found in target org. Do you need to push source? Any solutions ...
0
votes
3answers
3k 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
357 views

Specify a valid template error while creating project in VS code

I am currently running Salesforce CLI version 6.44.0. When I configure the project in VS code then face an error that mentioned in heading of this question. In order to resolve the error, I updated ...
1
vote
1answer
243 views

Retrieving StandardValueSet member WorkOrderPriority returns WorkOrderLineItemPriority

I'm struggling with retrieving standard picklist Priority from the WorkOrder object. I'm trying to determine if I'm doing something massively wrong, or if there is a bug in the metadata API. I have ...
7
votes
2answers
1k 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 '...
0
votes
1answer
240 views

Unable to parse package2-descriptor.json: invalid attribute 'versionNumber'

I am trying to make a version of my package but it fails every time. I am able to create a scratch org, install package dependencies, and push my source code successfully. But when I go to create a ...
0
votes
1answer
16 views

DX - List of Bundle/Prefix types?

With the DX CLI you can't deploy certain individual files - ex. aura and lightning components. You have to use syntax like sfdx force:source:deploy -m AuraDefinitionBundle:<aura bundle name>,...
1
vote
1answer
313 views

SFDX FORCE:DATA:TREE:EXPORT Nested __r Relationship Query

I am attempting to export data using the FORCE:DATA:TREE:EXPORT CLI command, using a nested query like the following (for use in our Scratch-Orgs): SELECT ...,(SELECT ... FROM My_Custom_Object__r) ...
1
vote
1answer
445 views

force:data:tree:export / force:data:tree:import across __r relationships

I am still fairly new to SaleforceDX. I have been tasked with putting together a sample data plan matching a small portion of our production data, for our new Scratch-Orgs. With foreign-key type ...
0
votes
1answer
1k views

timed out error in salesforce dx when on office network

When I am using my office network I am not able to deploy code to any sandbox using salesforce dx it shows the timed out error and when I use sfdx force:org:list in CLI it shows all org's connected ...
2
votes
0answers
368 views

Issue with CLI on WSL Ubuntu

Wondering if anyone has any thoughts about this. When I try to redirect stdout in my WSL terminal I get an error about having an open pipe. But I can run the same command from Git Bash without any ...
3
votes
1answer
778 views

Account fields available in default scratch org but not in regular dev org

I am pushing Metadata from a (namespaced) scratch org with that definition { "orgName": "my_DEV", "country": "US", "edition": "Developer", "language": "en_US", "hasSampleData": true, "...
4
votes
2answers
2k views

Salesforce DX Question (deploy profiles)

Anyone who already tried the new Salesforce CLI to transfer Metadata from one org to another? Is it possible to transfer Profiles? I already tried to search for a guide but I wasn't able to find one....
0
votes
0answers
102 views

Salesforce CLI Installation error - The Requested Operation requires elevation

I downloaded salesforce CLI from here However when i run the .exe file, I get the error I searched for solutions online, and tried all options as suggested but unable to get past this error. If ...
2
votes
1answer
164 views

How is this possible to use the Salesforce CLI after changing my user's password?

Couple of days ago, when logging in to the Org via browser, I was prompted to update my password. Last time I used Salesforce CLI was 2 weeks ago and today I had to do it again. However, no password ...