Questions tagged [cli]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
0 answers
24 views

sfdx-cli convert - SyntaxError: Unexpected token '.' post rollback

today I updated the sfdx-cli from version 7.143.0 to version 7.149.1; then I had to revert back (I performed an npm install --global sfdx-cli@7.143.0) because of some node dependencie s- atm I cannot ...
user avatar
0 votes
2 answers
37 views

How can I update my Github Actions CI script to install sfdx?

I used to have a script wget https://developer.salesforce.com/media/salesforce-cli/sfdx-linux-amd64.tar.xz mkdir sfdx-cli tar xJf sfdx-linux-amd64.tar.xz -C sfdx-cli --strip-...
user avatar
  • 13.2k
0 votes
0 answers
64 views

How can one authenticate Dataloader CLI when instance has MFA enabled?

Since moving my data export script out of my company's sandbox and into prod, I've been having a hard time getting Dataloader to authenticate, and I suspect this may be due to the Salesforce ...
user avatar
2 votes
0 answers
26 views

SFDX Plugin HelpClass is not a constructor

I'm building a custom sfdx plugin but getting this following error when calling the command with -h param: HelpClass is not a constructor. This happens only when calling my plugin like this sfdx ...
user avatar
  • 320
0 votes
0 answers
34 views

PcakgeInstallationCommand is failed with "No TOKEN named force:base.cardSpacingMargin found"

PackageinstallCommand is failed with below issue, CLI Version: SFDX-CLI 7.96.1 ERROR: Encountered errors installing the package!,Installation errors: 1) (intelligentDiscoveryStatus) No TOKEN named ...
user avatar
0 votes
1 answer
39 views

Unable to install Salesforce CLI

I just recieved my work laptop and I am trying to install my salesforce DX. I have downloaded Salesforce CLI but not able to install it. The installation wizard is opening a popup box stating that not ...
user avatar
2 votes
1 answer
41 views

How can I create salesforce user (not `Account` record) through salesforce CLI?

I want to create a User through Salesforce CLI. I know that I can create Scratch-Org users (DOC), but I want to create one in production organization; I know that I can create user through API (DOC, ...
user avatar
4 votes
1 answer
166 views

Can I check Salesforce CLI Release notes right within the terminal?

I want to find and read about all the new features and enhancements in the Salesforce CLI every time I decide to upgrade to the latest. Is there a command that I can execute to read the Salesforce CLI ...
user avatar
3 votes
1 answer
128 views

SFDX force:source:diff not in Documentation

More than two months ago, the VS Code command SFDX Diff File Against Org stopped working for SObject related metadata (see issue #3586 in GitHub). Wondering what might delay a much needed fix, I have ...
user avatar
  • 163
0 votes
1 answer
103 views

CLI Unification: Is there an 'sf' equivalent of 'sfdx' --dev-debug?

I run into an issue authenticating a Salesforce org with the new sf executable. Using sf login org -a myAlias giving me an this error: JsonParseError: Unexpected end of JSON input For sfdx it was ...
user avatar
1 vote
1 answer
116 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 ...
user avatar
  • 151
0 votes
0 answers
74 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 --...
user avatar
  • 1
0 votes
1 answer
47 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?
user avatar
0 votes
1 answer
158 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 ...
user avatar
  • 113
0 votes
1 answer
255 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 ...
user avatar
  • 31
2 votes
0 answers
36 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 ...
user avatar
  • 163
1 vote
0 answers
46 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 - ...
user avatar
0 votes
1 answer
360 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 ...
user avatar
  • 13.2k
0 votes
1 answer
30 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 ...
user avatar
  • 13.2k
0 votes
0 answers
125 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:...
user avatar
0 votes
1 answer
458 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 ...
user avatar
  • 98
5 votes
1 answer
311 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 --...
user avatar
1 vote
2 answers
228 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 ...
user avatar
0 votes
0 answers
127 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 ...
user avatar
  • 1
1 vote
1 answer
1k 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 ...
user avatar
  • 574
3 votes
2 answers
952 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 ...
user avatar
0 votes
1 answer
256 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, ...
user avatar
0 votes
1 answer
53 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 ...
user avatar
  • 441
1 vote
1 answer
522 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 ...
user avatar
  • 3,735
1 vote
0 answers
209 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 ...
user avatar
3 votes
1 answer
371 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 ...
user avatar
5 votes
1 answer
60 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 ...
user avatar
0 votes
1 answer
81 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 ...
user avatar
5 votes
1 answer
502 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....
user avatar
  • 931
1 vote
1 answer
283 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 ...
user avatar
2 votes
0 answers
177 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 &...
user avatar
0 votes
0 answers
95 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 ...
user avatar
4 votes
1 answer
336 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:...
user avatar
0 votes
0 answers
76 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 ...
user avatar
  • 31
2 votes
2 answers
232 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'...
user avatar
0 votes
2 answers
122 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 ...
user avatar
1 vote
1 answer
1k 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.
user avatar
4 votes
1 answer
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 ...
user avatar
0 votes
1 answer
76 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 ...
user avatar
  • 109
0 votes
3 answers
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
user avatar
0 votes
1 answer
371 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 ...
user avatar
1 vote
1 answer
294 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 ...
user avatar
  • 51
7 votes
2 answers
2k 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 '...
user avatar
  • 389
0 votes
1 answer
300 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 ...
user avatar
0 votes
1 answer
18 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>,...
user avatar