Questions tagged [cli]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
10
votes
1answer
5k views

LightningComponentBundle “Not available for deploy for this API version” error

I receive a strange error "Not available for deploy for this API version" for deploying LightningComponentBundle by sfdx force:source:deploy command or by VS Code Menu Item "SFDX Deploy Source To Org"....
7
votes
2answers
969 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 '...
7
votes
1answer
355 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="${...
5
votes
1answer
51 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 ...
4
votes
1answer
581 views

SFDX CLI - Locked with an active writer?

I'm getting the following error when trying to access the sfdx command : Does any one know what's happening ? I can't find anything here nor on the internet.. I tried re-installing the CLI + ...
4
votes
1answer
98 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....
4
votes
1answer
4k 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....
3
votes
2answers
922 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....
3
votes
1answer
81 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 ...
2
votes
1answer
127 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 ...
2
votes
1answer
116 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'...
2
votes
1answer
45 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:...
2
votes
1answer
518 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, "...
2
votes
2answers
2k 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 ...
2
votes
1answer
680 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
86 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 &...
2
votes
0answers
235 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 ...
1
vote
1answer
177 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
0answers
53 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 ...
1
vote
1answer
63 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 ...
1
vote
1answer
102 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 ...
1
vote
1answer
254 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
2k 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
243 views

Sandbox OAuth Error 1800 through VS Code, CLI, and MavensMate

I'm trying to sign into a sandbox org, but I'm getting an error when running through the OAuth flow: We can't authorize you because of an OAuth error. For more information, contact your Salesforce ...
0
votes
3answers
708 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
2answers
40 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
616 views

SFDX CLI and connection to second Playground

I want to experiment sfdx,so I'd like to link a playground I just created from my Trailhead (because I already linked my first playground) The fact is, the password seems to be different from my ...
0
votes
1answer
30 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 ...
0
votes
1answer
176 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
157 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>,...
0
votes
0answers
9 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 ...
0
votes
0answers
20 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
15 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
29 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 ...
0
votes
0answers
12 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
53 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
1answer
29 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
0answers
30 views

Lightning Explorer problem and Update of CLI

I was trying to access the Lightning Explorer in VS Code, but nothing is appearing when I click on the ligtning icon. I then tried to update the CLI, and i am getting the following error: S3 host ...
0
votes
0answers
183 views

sfdx force:auth:web:login freezes

When I try to authenticate to the org by going to "VSCode" and clicking on "No Default Org Set" then Select the environment and then I type alias name. The spinner comes at the ...
0
votes
1answer
298 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 ...
0
votes
1answer
431 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 ...
0
votes
0answers
54 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 ...
0
votes
0answers
516 views

SalesforceDX - standard object, custom fields are not being deployed

I currently testing the possibilites of SalesforceDX and found couple of issues with deploying packages from Prod to Scratch orgs. Does anyone have experienced issues with deploying custom fields of ...
0
votes
2answers
491 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 ...