Questions tagged [cli]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
24 views

How can I uninstall all packages from a particular org as quickly and simply as possible?

How can I clean my org and uninstall all packages from a particular org as quickly and simply as possible?
  • 14.4k
1 vote
1 answer
63 views

Connecting to Github Organization Account

Great news! Salesforce DevOps Center is Generally Available. I am struggling to connect it to a repository owned by Organization. DevOps Center guide says the following: GitHub repos owned by an ...
0 votes
0 answers
23 views

Salesforce CLI Export Error sObject type 'Product2' is not supported

I logged into CLI successfully with the command sfdx force:auth:web:login -r https://login.salesforce.com And tried exporting using the below command and below is the error C:\Users\xxxxx>sfdx ...
0 votes
1 answer
29 views

Salesforce CLI Command to delete Unmanaged Package

We are doing some early spring cleanup and need to uninstall some managed and unmanaged packages. I can use the CLI command below to delete the Managed packages using the Namespace prefix. sfdx force:...
1 vote
0 answers
92 views

SFDX Error: Selected Components Are Not Available

Recently, my colleagues started receiving error an error whenever attempting to retrieve or diff components, for production or any of our sandboxes. ] I have recently joined the team, and I did not ...
2 votes
1 answer
44 views

Moving to Source-tracked development, can't pull __pc fields

I inherited an org that has person accounts enabled. (boo, hiss.) The team is currently using sandboxes and org-based development. (boo, hiss.) I was finally able to pull all? the metadata from ...
  • 7,088
0 votes
0 answers
23 views

Unable to extract bulk data using data loader CLI

I am unable to extract values/data using data loader CLI. I was able to extract data from sandbox but unable to extract from production. I have generated encrypted password but it is still throwing ...
0 votes
2 answers
222 views

Strange error force:org:shape:list: Cannot read properties of undefined (reading 'length')

Strange error force:org:shape:list: Cannot read properties of undefined (reading 'length') When I executed a command force:org:shape:list, I am obtaining a very strange misterious error: Cannot read ...
  • 14.4k
1 vote
1 answer
628 views

Facing "Error: unable to get local issuer certificate Code: UNABLE_TO_GET_ISSUER_CERT_LOCALLY" when trying to update CLI. How to overcome this one

To set up SFDX , first I did install CLI and when I tried updating the same, I'm facing this issue. Can anyone please help me out.
  • 11
0 votes
0 answers
279 views

Running the Data Loader from the command line

I'm trying to setup a scheduled export with the data loader. I'm trying to follow the instructions provided by Salesforce here but can't get past Step 1. Has anyone had a similar issue trying to ...
0 votes
0 answers
102 views

VSCode - Missing Plug Icon from CLI Extension

A coworker of mine is missing his plug icon that's made available through the Salesforce CLI Integration (installed via salesforce extension pack). After going through the status bar options, trying a ...
1 vote
1 answer
111 views

Use Salesforce CLI To Retrieve object action

In my dev org I have a custom action on an object. I want to use the Salesforce CLI get pull the custom action to my local machine. The action type is Lightning Component if that makes any difference. ...
  • 275
2 votes
0 answers
97 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 ...
0 votes
2 answers
163 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-...
  • 14.4k
0 votes
0 answers
414 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 ...
2 votes
0 answers
33 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 ...
  • 340
0 votes
0 answers
45 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 ...
0 votes
1 answer
367 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 ...
3 votes
1 answer
231 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, ...
4 votes
1 answer
187 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 ...
3 votes
1 answer
311 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 ...
  • 183
0 votes
1 answer
281 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 ...
1 vote
1 answer
402 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 ...
  • 153
0 votes
0 answers
177 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 --...
  • 1
0 votes
1 answer
76 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
1 answer
438 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 ...
  • 113
0 votes
1 answer
536 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 ...
  • 41
2 votes
0 answers
143 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 ...
  • 183
1 vote
0 answers
55 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
1 answer
732 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 ...
  • 14.4k
0 votes
1 answer
62 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 ...
  • 14.4k
0 votes
1 answer
568 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 ...
  • 148
5 votes
1 answer
436 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
2 answers
442 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
0 answers
303 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
1 vote
1 answer
2k 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 ...
  • 724
4 votes
2 answers
2k 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
1 answer
367 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
1 answer
92 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 ...
  • 485
1 vote
1 answer
764 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 ...
  • 4,144
1 vote
0 answers
278 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
1 answer
551 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
1 answer
69 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
1 answer
118 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
1 answer
759 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,015
1 vote
1 answer
467 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
0 answers
239 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
0 answers
134 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
1 answer
549 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:...
1 vote
1 answer
129 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 ...
  • 49