People who code: we want your input. Take the Survey

Questions tagged [cli]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
0answers
23 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
74 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 ...
1
vote
1answer
26 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 ...
3
votes
1answer
69 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 --...
2
votes
2answers
172 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
0answers
22 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
33 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 ...
0
votes
2answers
565 views

NullPointerException processing XML configuration for Salesforce Data Loader CLI

Unfortunately I am unable to get Data Loader CLI (v45.0.0 running on Windows) running properly. This is the command I am using: process "C:\Users\erik\dataloader\custom" Account Even when I use a ...
0
votes
1answer
766 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 ...
1
vote
1answer
51 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
18 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
1answer
222 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
71 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
33 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
2answers
5k views

SFDX: retrieve Source from Org failing

In order to connect my VSC to my org and pull my org's datas to VSC, I followed the steps this great video shows ; In Visual Studio Code I : - SFDX: created project with Manifest - in the manifest -> ...
1
vote
1answer
227 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 ...
0
votes
0answers
11 views

Automating and scheduling CLI commands

I am using various sfdx commands combined with some commands of SFDMU plugin. I am trying to understand how to schedule the execution of CLI commands on Windows and if i can write a script to ...
1
vote
0answers
97 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
171 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
52 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
43 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 ...
4
votes
1answer
211 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
166 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 ...
3
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 ...
2
votes
0answers
129 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
36 views

CLI Dataloader to Sharepoint - Url error

I am trying to extracting an object from salesforce to sharepoint through CLI. I could achieve it in local machine however for sharepoint. I am receiving following error. DataloaderFiles\config\...
0
votes
0answers
22 views

Automatize archiving more than 1 million data from Salesforce - No cost option

I am currently helping up with Non-profit for automatically archiving the data with no cost solution. Plan is to save 2 years of data within salesforce (Big object) or outside with no cost. I spent ...
0
votes
0answers
62 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
147 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
16 views

Can I retrieve StandardValueSet into “package.xml” format with the Tooling API?

My question is related to this: Retrieving StandardValueSet with the Tooling API I'm trying to deploy custom picklist values of standard picklist fields from one org to "sister orgs" of a ...
0
votes
0answers
70 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 ...
0
votes
2answers
65 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 ...
0
votes
1answer
422 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.
0
votes
1answer
52 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 ...
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
3answers
1k 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
336 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 ...
5
votes
1answer
7k views

SFDX retrieve source in Manifest from org

I installed the sf extension for vscode and got everything to run with the default package.xml. I exported the whole package from my org with the help of Package builder and inserted it to the package....
1
vote
1answer
181 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 ...
0
votes
1answer
201 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
391 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 ...
1
vote
1answer
260 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) ...
2
votes
0answers
322 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 ...
2
votes
1answer
669 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, "...
3
votes
2answers
1k 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
75 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
141 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 ...
7
votes
1answer
469 views

Is this possible to rename a field using Tooling API or Ant Migration Tool or SFDX CLI?

I have tried to run renameMetadata call from Ant Migration Tool <target name="1. Rename field on Sandbox"> <sf:renameMetadata username="${sf.Sandbox.username}" password="${...
2
votes
2answers
3k views

ERROR running force:source:push: No org configuration found for name

Not sure why this stopped working but all of the sudden sfdx forgot my org configuration. I pulled down the latest changes from the master branch and went to push them into my checked out branch and ...