Questions tagged [cli]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
-2 votes
0 answers
19 views

Field API name or Labels or Type or value are not displaying correctly in CLI for particular Deal overview page

Field API name or Labels or Type or value are not displaying correctly in CLI for particular Deal overview page. In Deal overview page having Lead time field but it is not displaying in CLI
Anil kumar Arigapudi's user avatar
0 votes
1 answer
56 views

Method is available in sandbox but not in prod

I've composed an apex classes in sanbox, test classes as well. It works fine in sandbox. Now i wanna deploy to prod without using changesets and packages. a part of apex @testVisible protected ...
pincet's user avatar
  • 839
0 votes
1 answer
63 views

VS Code CLI Retrieve taking too long to respond/complete

For several years I have been using the SF CLI retrieve commands in VS Code to retrieve data from my Partial Copy Sandboxes to my local git repo. About a month ago I moved from using the force:source:...
Jeff Callahan's user avatar
0 votes
1 answer
150 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
58 views

"connectedStatus" in `sf org list` command contains HTML page markup

I ran sf org list command in console and saw CLI just dump a ton of invisible symbols, making terminal unusable. I then tried json output and saw that for scratch orgs I got a huge output with HTML ...
snooopcatt's user avatar
0 votes
1 answer
44 views

Cannot deploy project due to missing type

I am currently trying to deploy my project, but are getting some errors which I am unsure how I should navigate. Error WebCart Invalid fullName, must end in a custom suffix (e.g. __c) It is ...
I am not Fat's user avatar
0 votes
1 answer
70 views

Cant downgrade SFDX to previous version 7.181.1 for scratch org script created by team

I need to downgrade to this version(7.181.1) as the whole team uses it for a scratch org script. I've tried using the most previous one I can find 7.199.2 and the most recent 7.209.6. Either one will ...
JEbert's user avatar
  • 11
0 votes
0 answers
49 views

Need Help Speeding Up Package Installations in GitHub Actions

Hey Salesforce Community, We're facing a challenge with our GitHub Actions CI setup, and we could use your insights to make it snappier. Background: We recently updated to the latest Salesforce CLI ...
Jesus Martinez's user avatar
2 votes
0 answers
107 views

Enabling feed tracking when creating scratch org not possible?

So, currently, there is no way to enable feed tracking for a standard object, during scratch org creation. This includes all settings in scratch org definition file and/or using an org shape. The ...
Vio's user avatar
  • 31
-1 votes
1 answer
310 views

Salesforce Org Autorize Error

Hi guys I have a problem with authorize to my Sandbox, I used this command to authorize "login --setalias "MyOrg" --instanceurl "MyOrgUrl" --setdefaultusername" and ...
Nikita Ershov's user avatar
-1 votes
1 answer
5k views

SFDX: Authorize an Org failed to run

11:55:18.338 sfdx force:auth:web:login --setalias vscodeOrg --instanceurl https://login.salesforce.com --setdefaultusername (node:8748) Warning: Deprecated environment variable: SFDX_JSON_TO_STDOUT. ...
Elnura's user avatar
  • 1
0 votes
0 answers
97 views

CMDT CSV Insert Problems

Am trying to insert new records for a custom metadata file and saw that force:cmdt:record:insert has been deprecated. I tried sf cmdt generate records --csv path/to/my.csv --type-name MyCmdt but VS ...
Dmns's user avatar
  • 11
-1 votes
1 answer
781 views

sf command is not installed on linux

H, I have followed instructions on this site to install sfdx on linux, which is working fine https://developer.salesforce.com/docs/atlas.en-us.242.0.sfdx_setup.meta/sfdx_setup/sfdx_setup_install_cli....
user_pruser's user avatar
0 votes
1 answer
77 views

How to include custom metadata records when building a release artifact with the salesforce CLI

Im trying to generate a release artifact by converting some source files to metadata format so I can deploy it with the following command: sfdx force:mdapi:deploy... this is the command I'm using for ...
Giovanni's user avatar
-1 votes
1 answer
49 views

How to get information which tests are required for specified scope

our deployment pipeline works on diff. So every time only differences between source and target branch are deployed to environment. We are wondering if there is possibility to run only required tests ...
kamil Walo's user avatar
0 votes
1 answer
267 views

Salesforce CLI - How to disable warnings?

Since the last Salesforce CLI Update 7.193.2 I've been seeing this warnings in the "Problems" tab in Visual Studio Code. Does anyone know how to disable them? It makes my code unreadable, ...
Jovan's user avatar
  • 1
0 votes
1 answer
62 views

How to delete Source from Org that is deployed accidentally?

Requirement: I have installed FFLib ApexMocks Framework(https://github.com/apex-enterprise-patterns/fflib-apex-mocks) and FFLib Apex Common(https://github.com/apex-enterprise-patterns/fflib-apex-...
Anil's user avatar
  • 11
1 vote
0 answers
231 views

Mass Insert Custom Metadata Type Records

I'm using Salesforce CLI to import 5000 records of a custom metadata but I wasn't able to to import Label and DeveloperName together and I saw that is a limitation, so I tried utilize only Name but in ...
Alexia's user avatar
  • 81
0 votes
1 answer
140 views

Is there a way to promote a managed package from the CLI?

If I created a managed packaged (Beta) in a developer environment is there a way to promote this package to an Alpha? Use Case: We are experimenting with Package Extensions. However, if order to ...
andrew's user avatar
  • 149
0 votes
0 answers
364 views

Salesforce CLI is not retrieving permission set metadata

I am trying to retrieve metadata from a sandbox instance to prepare a deployment. Flows, Custom Objects, etc. are getting retrieved, but permission sets are not. In my package.xml file, I tried the ...
Mike Henderson's user avatar
0 votes
1 answer
347 views

How can I logout from all the unused sandboxes I have in my machine?

Or rather how to remove the orgs I don't use anymore. Is there an easy way to "remove all orgs unused for 90+ days"?
Renato Oliveira's user avatar
0 votes
1 answer
107 views

Adding Recipe to Analytics template fails with "CSV .. garbage collected"

Instead of packaging the data of my Analytics template as CSV files in the template I want to have a recipe create it from the orgs data. I there for tried to update my existing template (part of a ...
Robert Sösemann's user avatar
-2 votes
1 answer
1k views

'The org cannot be found' error in VS Code

Anyone experienced "The org cannot be found" issue in VS Code. I'm facing this issue from past 2 weeks. Tried with multiple orgs. Un-installed and re-installed VS Code. Tried with different ...
Chinni Vishnu Kalyan's user avatar
0 votes
1 answer
202 views

Could not retrieve the username after successful auth code exchange. reason: unable to get local issuer certificate

When am trying to authenticate via VS CODE integrated cmd pallets, I get below error Could not retrieve the username after successful auth code exchange.reason: unable to get local issuer certificate ...
ashish's user avatar
  • 1
0 votes
1 answer
61 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?
Patlatus's user avatar
  • 16k
1 vote
1 answer
437 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 ...
Vladimir Egikyan's user avatar
0 votes
1 answer
112 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:...
Jeff Callahan's user avatar
2 votes
0 answers
509 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 ...
bullcitydave's user avatar
2 votes
1 answer
113 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 ...
Kevin P's user avatar
  • 7,188
0 votes
2 answers
490 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 ...
Patlatus's user avatar
  • 16k
2 votes
2 answers
4k 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.
sfdevdc's user avatar
  • 21
0 votes
0 answers
510 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 ...
MattcG91's user avatar
0 votes
0 answers
316 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 ...
mjmcgovern's user avatar
1 vote
1 answer
549 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. ...
James's user avatar
  • 329
2 votes
0 answers
161 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 [email protected]) because of some node dependencie s- atm I cannot ...
calibro22's user avatar
0 votes
2 answers
340 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
  • 16k
0 votes
0 answers
872 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 ...
Lauren Oldja's user avatar
2 votes
0 answers
34 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 ...
ondrakr's user avatar
  • 350
0 votes
0 answers
54 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 ...
Vijaykumar's user avatar
0 votes
1 answer
1k 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 ...
Bash Salesforce's user avatar
3 votes
1 answer
483 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, ...
user2475983's user avatar
4 votes
1 answer
222 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 ...
Mohith Shrivastava's user avatar
3 votes
1 answer
520 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 ...
willeg's user avatar
  • 203
0 votes
1 answer
716 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 ...
Christian Menzinger's user avatar
1 vote
1 answer
850 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 ...
Xin's user avatar
  • 153
0 votes
0 answers
225 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 --...
Kiran's user avatar
  • 1
0 votes
1 answer
176 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?
Alexia Ribeiro's user avatar
0 votes
1 answer
654 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 ...
Ganit's user avatar
  • 123
0 votes
1 answer
729 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 ...
Mateusz's user avatar
  • 41
2 votes
0 answers
207 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 ...
willeg's user avatar
  • 203