Podcast #128: We chat with Kent C Dodds about why he loves React and discuss what life was like in the dark days before Git. Listen now.

Questions tagged [force-cli]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
1answer
15 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>,...
3
votes
1answer
1k 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....
2
votes
1answer
49 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 ...
2
votes
1answer
557 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 ...
0
votes
1answer
321 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 ...
4
votes
1answer
494 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 ...
4
votes
1answer
929 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 ...
6
votes
1answer
500 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....
0
votes
1answer
808 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. ...
2
votes
0answers
33 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 ...
1
vote
1answer
442 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 ...
0
votes
1answer
205 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 ...
5
votes
2answers
1k 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 - ...
4
votes
0answers
256 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' ...
1
vote
0answers
204 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 ...
0
votes
0answers
213 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 ...
1
vote
1answer
330 views

Can we use '|' Pipe delimiter for command line data loader interface

I have a huge data file, but it is "|" (Pipe) separated, not comma. I have to schedule a dataload job with using data loader command line without any manual intervention, completely automated. I ...
1
vote
1answer
52 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)...
6
votes
3answers
7k 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 ...
3
votes
1answer
440 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 ...
1
vote
1answer
89 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" ...
0
votes
0answers
280 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 ...
2
votes
1answer
95 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 ...
2
votes
2answers
91 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. ...
3
votes
2answers
840 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 ...
0
votes
1answer
759 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 ...
3
votes
0answers
139 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 ...
1
vote
1answer
103 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 ...
0
votes
1answer
764 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 ...
1
vote
1answer
134 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 ...
2
votes
1answer
160 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 ?
2
votes
1answer
161 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/...
1
vote
1answer
301 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.
1
vote
3answers
2k 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 ...
3
votes
2answers
289 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 ...
2
votes
0answers
332 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 ...
0
votes
2answers
88 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 ...
5
votes
4answers
424 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 ...
1
vote
1answer
611 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 ...