Skip to main content

Questions tagged [force-cli]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
3 votes
1 answer
129 views

UNSUPPORTED_API_VERSION: Invalid Api version specified on URL on Manifest Retrieval

After refreshing a sandbox last night, I was unable to retrieve metadata from the org using SFDX in VSCode due to a mismatch in API Versions. The error received was: 15:51:26.514 Starting SFDX: ...
Evelyn Maguire's user avatar
0 votes
1 answer
399 views

Unable to run sf package commands after MacOS upgrade to Sonoma

No sure if it's local config or OS upgrade but my sf cli commands have been broken especially the packaging commands. When I run below command I get an error related to JIT plugin (I am assuming JIT ...
Json Bourne's user avatar
1 vote
1 answer
182 views

Where can i learn to create saleforces cli plugin?

I am new to salesforce and i am looking for any tutorial paid or not to learn to create salesforce cli plugin
Beelzebub's user avatar
0 votes
2 answers
405 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-...
Patlatus's user avatar
  • 17.3k
4 votes
1 answer
4k views

When running sfdx force:apex:test:run we get the error "Your request exceeded the time limit for processing. connection was cancelled here"

We have test classes that we are running from the Salesforce CLI. If we run them from the Salesforce UI, the tests all pass fine. When running the same test classes from the CLI, however, most of the ...
Jph108's user avatar
  • 651
0 votes
1 answer
2k 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 ...
Patlatus's user avatar
  • 17.3k
1 vote
2 answers
171 views

Is it possible to use system.runas with the force cli?

Sometimes when creating UnitTests I'm unable to save classes for hours at a time. It'd be great - as a workaround - to develop UnitTests using the "force cli". However, I'm unable to execute ...
Emmett's user avatar
  • 11
0 votes
1 answer
889 views

Is there a way to stop LWC Local Development Server to auto refreshing when component file change?

LWC Local Development Server auto refreshes page whenever any LWC component files change. Sometimes I change JS code but I'm not finished with it, I need to go back to console to refer the console ...
Jay Rathod's user avatar
1 vote
1 answer
899 views

Visual Studio Setup with Salesforce CLI for M1 Mac

Getting a below error message while using the command "Authorise and Org" Starting SFDX: Authorize an Org 18:34:11.754 sfdx force:auth:web:login --setalias vscodeOrg --instanceurl https://...
Rohan's user avatar
  • 11
1 vote
0 answers
402 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 ...
Vijaykumar's user avatar
0 votes
1 answer
438 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 ...
SFDCDJ's user avatar
  • 1,904
0 votes
1 answer
45 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>,...
trebleCode's user avatar
5 votes
2 answers
8k views

This org appears to have a problem with its OAuth configuration. Reason: invalid_grant - audience is invalid

Error while trying to authorize an org through JWT from SFDX CLI on Windows. sfdx force:auth:jwt:grant --clientid <myclientid> --jwtkeyfile server.key --instanceurl https://mysandbox.my....
Praveen Tata's user avatar
2 votes
1 answer
118 views

Duplicate variable error when pushing code using CLI into scratch org

I am working on a batch class and I was having some code to push into scratch org to test. But it is giving me duplicate variable error while pushing the code. After this, I tried to copy the code and ...
Tarique Shamim's user avatar
4 votes
1 answer
3k views

Unable to delete custom field using force:source:delete CLI command

I realize the command is still in beta, but I am unable to delete a custom field using the force:source:delete command. I have tried force:source:delete -m CustomField:myObject__c.myField__c, which ...
raccoon.i's user avatar
0 votes
1 answer
2k views

the path specified is not a directory or doesn't contain a package.xml

I don't understand what is wrong in "Convert the Source and Push It to a New Scratch Org" from trail "Convert and Deploy an Existing App". I get this error: the path specified is not a directory or ...
Monte Cristo's user avatar
5 votes
1 answer
2k views

Why promoted unlocked package is still not available to install in production?

I have created an Unlocked package and promoted it to Released version using command sfdx force:package:version:promote However, when I try to install my package to production, I still receive an ...
Patlatus's user avatar
  • 17.3k
7 votes
1 answer
4k views

How do I create a managed package with SFDX?

I am trying to create a managed package using SFDX CLI. I am executing a command sfdx force:package:create -n name -t Managed -r force-app but receiving an error ERROR: You must specify a ...
Patlatus's user avatar
  • 17.3k
6 votes
1 answer
1k views

Is this possible to install SFDX CLI on Heroku instance?

I am trying to follow commands to install SFDX CLI on Heroku instance. When I execute commands >heroku run bash >wget https://developer.salesforce.com/media/salesforce-cli/sfdx-linux-amd64.tar....
Patlatus's user avatar
  • 17.3k
0 votes
2 answers
2k views

Salesforce CLI tools do not work together with Git Bash on Windows

I have a problem, when I try to use Salesforce CLI tools for DX, it works for when I type and execute them in standard windows "cmd" program but doesn't work when I run them from Git Bash terminal. ...
Patlatus's user avatar
  • 17.3k
2 votes
0 answers
42 views

MDAPI Convert is producing unexpected results due to url encoded symbols in filenames

I am trying to convert existing source to a SFDX project using the mdapi:convert command, however existing source files contain urlencoded symbols. EX: Pre_Review_and_or_Waiver__c-Pre-Review and%2For ...
Kenneth Link's user avatar
1 vote
1 answer
1k views

SFDX: Profile changes not being recognized on Source:Pull

I recently just spun up a new scratch org. Afterwards I pushed my current source repo using source:push. I noticed that apparently tab visibility was not set for some of my custom tabs/objects. I ...
Xtremefaith's user avatar
  • 4,570
0 votes
1 answer
431 views

How to remove scratch org details from metadata

When I pull down metadata from my production org (which is my devhub org), I have issues with scratch org metadata meddling with my repo. For example I have custom profiles that were created on the ...
Xtremefaith's user avatar
  • 4,570
11 votes
2 answers
9k views

Export SOQL CLI Results to CSV

I've got a automated Cron-like job that exports some data from Salesforce on a regular basis. The goal is to regularly export SFDC data to csv or tsv. I'm using the sfdx tool to perform this query - ...
snark17's user avatar
  • 247
4 votes
0 answers
334 views

Salesforce DX - Help for data:tree:export

I have a dev hub trial org where I have created an account record with the name 'Chaser' and it has an Id of '0011N00001Eam4C' When I run the following command, I receive 'Query Returned No results' ...
Chase Klingel's user avatar
1 vote
0 answers
1k views

Unable to Authenticate Login with Salesforce Data Loader CLI Using Custom Domain

I have scoured the internet looking for a solution that seems is extremely common among users looking to connect to Salesforce via Data Loader CLI. On top of reading just about every forum out there ...
Duan Uys's user avatar
0 votes
0 answers
228 views

How to Install a Managed Package into a scratch org [duplicate]

I have tried to install using force:deploy as well as force:install. When I try to install using the METADATAPACKAGEVERSIONID I get, ERROR running force:package:install:get: Encountered errors ...
Zack Walton's user avatar
  • 1,626
1 vote
1 answer
69 views

force-cli randomly fails

I'm trying to use force-cli (force-cli.heroku.com) to automate a weekly export from a salesforce org. It works great until it seemingly randomly doesn't work. #/bin/bash DATE="$(date -v-7d +%Y-%m-%d)...
mackmama's user avatar
  • 709
7 votes
4 answers
27k views

sfdx: command not found - Salesforce DX

i got access to the Salesforce DX preview and I want to use the listed commands in order to make some testing, after been looking for a way to use it I don't really see something that says how to ...
Edgar's user avatar
  • 1,279
3 votes
1 answer
836 views

CLI Data Loader Failure notification

I am tryin to figure out but unable to sure as what seems to be available in the available resource is that whenever the CLI Dataloader fails, User will not be able to get the notification. Just to ...
cloudy-ritz's user avatar
  • 2,583
1 vote
1 answer
146 views

Automatically Update Record in Salesforce using DML

I need to automatically update a record in Salesforce and I'm wondering how can I transform my existing Process Bean to update a certain record in Salesforce. <bean id="ExportOpportunityProducts" ...
Christine P.'s user avatar
0 votes
0 answers
324 views

Using Force-CLI, what do I need to do to get 'force import' to work?

I have a Developer account with Salesforce. A month ago my company asked me to work on an app for Salesforce. At first I only used the Developer Console. Now the project has gotten big, so I would ...
LRK9's user avatar
  • 854
2 votes
1 answer
107 views

Can I use 'force-cli import' as a destructive act, to purge unwanted files?

A month ago I started work on a project, building custom Apex classes. For awhile, the project was small, and I could manage it via the Developer Console. That is, by copying-and-pasting my code from ...
LRK9's user avatar
  • 854
2 votes
3 answers
127 views

Force cli query returns random column sequence

I have noticed that force CLI query returns the result in alphabetically for example if i will write query as force query select name,id from account then it will return the result as id then name. ...
ANITA SATPUTE's user avatar
3 votes
2 answers
865 views

Installing Dave Carolls Sublime Lightning - windows

I'm trying to install a plugin for salesforce Lightning by Dave Carroll, unfortunately, run into some issues. I'm not sure if I'm missing something or something else is wrong. I followed his tutorial ...
naruto-sfdc's user avatar
1 vote
1 answer
2k views

Having issue with Data Loader CLI

I am having issue with Data Loader: Trying to use “update” providing Account Id to update custom field with fixed value. Map looks like this: ID=Id "Updated"=customObject__c Mapping for field ...
cloudy-ritz's user avatar
  • 2,583
3 votes
0 answers
319 views

Attempting unit test, "You popped a context which you never pushed..."

Lately when trying to execute a unit test using the Force cli tool I'm getting an error I've never seen before. ERROR: You popped a context which you never pushed, check for unbalanced push and ...
tggagne's user avatar
  • 466
1 vote
1 answer
153 views

How to pass file as argument within force CLI query

When I make a query using force command line on OS X, I can use backtick (`) and "cat" command to make the query contents come from a file, and this is very handy. Now I have switched to Windows and ...
PaulM's user avatar
  • 81
0 votes
1 answer
1k views

How to configure update operation in Command-line interface for Force.com

What should I give in configuration like: <entry key="sfdc.loadBatchSize" value="500"/> <entry key="sfdc.entity" value="Opportunity"/> <entry key="sfdc.Id" value="id"/> <entry ...
David Mycka's user avatar
  • 1,327
1 vote
1 answer
168 views

csv format in the Force.com CLI

When I do a soql query with --format:csv, and I view the results file in excel it seems that all entries are padded with spaces to match the column header width. This is not a huge problem but it's ...
PaulM's user avatar
  • 81
2 votes
1 answer
196 views

Unable to login in salesforce using Force.com CLI on windows

I just downloaded the force.com cli and executed the command force login in command line but the login window is not popping up. It just hangs until i press ctrl+c. How should i proceed ?
coderdecoder's user avatar
2 votes
1 answer
201 views

Force.com CLI error

I am testing Force.com CLI. I can autenticate but any else. I get this error in OSX- El capitan panic: runtime error: invalid memory address or nil pointer dereference http://screencast.com/t/...
lopez.regalado.fj's user avatar
1 vote
1 answer
313 views

force.com cli is missing error in mac for lightining

I am trying to configure my force.com cli for lightning plugin in my sublime text editor. I have followed some articles but still I am getting that error.
Monish's user avatar
  • 551
1 vote
3 answers
3k views

Error, "No package.xml found", when I try to save static resources and/or apex classes using Sublime 3 w/ Lightning package

I am working on a Salesforce project using Sublime Text 3 as my IDE. I have a salesforce developer account. I have a pc running windows 8. I've installed "force cli" to my computer and to Sublime ...
Vinicius Santana's user avatar
4 votes
3 answers
383 views

Force.com CLI bulk query returns nothing

I have submitted a simple query using the Force.com CLI like so: will@mint ~ $ force bulk query CallRecord__c "select Account__c, CallFlow__c from CallRecord__c" Query Submitted To retrieve query ...
Will's user avatar
  • 173
2 votes
0 answers
362 views

Error, "No package.xml found", when I try to save static resources and/or apex classes using Sublime 3 w/ Lightning package

I am working on a Salesforce project using Sublime Text 3 as my IDE. I've installed "force cli" to my machine and to Sublime Text 3 I installed the package "Lightning". On the "Lightning" menu ...
Dave Helgerson's user avatar
0 votes
2 answers
114 views

Exception when Importing .csv file from CLI

I am able to import my .csv file using Apex Data Loader. When I try importing the same file from CLI I am getting an exception attached in the file. When the file contents are copied into a new csv ...
Snehal's user avatar
  • 1
5 votes
4 answers
443 views

format in the Force.com CLI

I'm trying to export accounts to a csv file using the Force.com CLI tool. I keep getting and Unexpected Token error. $ force query SELECT Id, Name FROM Account format:csv ERROR at Row:1:Column:35 ...
JRiffe's user avatar
  • 1,673
1 vote
1 answer
682 views

Passing Login info into Force CLI

Is it possible to hack the Force CLI to pass login info in from the command line? Looking at the code here, you can see that its using oauth2 to get a token. Maybe there is a URL hack to pass the ...
NSjonas's user avatar
  • 10.2k