Questions tagged [salesforcedx-cli]

Questions relating to the `sfdx` binary that is supplied as part of the tools suite for Salesforce DX.

Filter by
Sorted by
Tagged with
0 votes
0 answers
20 views

An unexpected error occurred when uploading your package [duplicate]

I am facing an unexpected error occurrance while uploading the Managed package of an CPQ Instance, mentioning like "An unexpected error occurred when uploading your package. Please contact ...
Pavan's user avatar
  • 1
3 votes
1 answer
65 views

Not able to delete second generation unlocked package

I have accidentally created two packages and I want to delete one of them. I tried the below command. sf package delete --package "my-pckg" --target-dev-hub my-dev But it results into the ...
Rahul Gawale's user avatar
  • 12.1k
0 votes
0 answers
24 views

What metadata (if any) should be excluded from a CI/CD pipeline? [duplicate]

I want to set up a CI/CD pipeline for my org to make it easier for me to develop and deploy changes to APEX and other code-based customizations in my org. I'm following this link from SalesforceBen....
justin.k.pierson's user avatar
1 vote
1 answer
35 views

Why is Salesforce example for package.xml manifest files referencing http links instead of https links?

In Salesforce help article, all their links are referencing the http link like so : <?xml version="1.0" encoding="UTF-8"?> <Package xmlns="http://soap.sforce.com/2006/...
compski's user avatar
  • 1,352
0 votes
0 answers
19 views

The value of the $.routeType property isn't supported for this site when installing an unlocked package to a sandbox

When we are installing an unlocked package using sfdx:force:package:install to a Salesforce sandbox, we are getting the following error: Encountered errors installing the package! Installation errors: ...
ThreeThirteenTwentyFour's user avatar
0 votes
0 answers
36 views

retrieve picklist values for OmniProcess custom object

I need to retrieve the Picklist values/metadata for the OmniProcess standard object, I've checked this list from the official Salesforce documentation but I didn't find any information. Also when I ...
Miguel T.'s user avatar
2 votes
3 answers
583 views

Issue while Authorize an salesforce org in VS Code failed, due to Invalid request method: OPTION

I have installed VS code, Salesforce CLI with extensions, and Java. I have created the project. After that, I tried to authorize an org in vs code. But I faced the issue as Starting SFDX: Authorize ...
Madhavan p's user avatar
1 vote
0 answers
26 views

SFDX: Trying to source push omniscript files gives File or folder not found error

When I source push omniscript files for the first time to my scratch org, the deploy succeeds. If I make some changes to the file and push it again to same scratch org. I always end up in getting ...
Ishanu Dhar's user avatar
1 vote
1 answer
45 views

Rollback(Back Promote)Changes through SFDX-Git-Delta deploy

Branching Strategy: In our project we have 3 main branches: Main, UAT & QA & we are using SFDX-Git-Delta plugin (SGD) deploy to promote incremental changes. Developers promote changes to ...
Rose 's user avatar
  • 131
0 votes
0 answers
20 views

Retrieve enhanced List views for Flows via metadata API?

Currently, whenever we retrieve an object via sfdx, whether custom, standard or cmtd, it will retrieve the list views too. However, I cannot seem to find the correct metadata folder or xml which ...
vio's user avatar
  • 19
0 votes
0 answers
24 views

Streamlining OAuth Authentication for Multiple Users in Salesforce Org

I am encountering an issue with OAuth authentication for multiple users accessing a third-party app within our Salesforce org. Currently, we have a shared service account or admin account that was ...
Pavan's user avatar
  • 1
1 vote
0 answers
35 views

what can be different status while fetching the status of new unlocked package version creation

I am trying to create a new package version using command sfdx force:package:version:create -p "test" and need to know what can be different status of version creation I can get when I run ...
rajkumar11's user avatar
-2 votes
2 answers
62 views

Is it possible to deploy by filename using the new CLI?

I have been using a command from the old CLI: sfdx force:source:deploy -p "/path/to/filename.cls" to deploy by filename. Is this possible using the new CLI? I do see an example of sf project ...
Z0q's user avatar
  • 155
0 votes
1 answer
63 views

Getting error while installing sfdx scanner plugin

Getting below error while installing sfdx scanner plugin: Installing plugin @salesforce/sfdx-scanner... / info There appears to be trouble with your network connection. Retrying... error An unexpected ...
Velu's user avatar
  • 1
1 vote
2 answers
125 views

Is there a CLI command to find all Test classes associated with a certain Apex class?

As the CLI runs tests before deploying an Apex Class, it has to know which tests are associated with a certain Apex class. Is there a way to retrieve a list of test classes that are associated with a ...
Z0q's user avatar
  • 155
2 votes
1 answer
89 views

sf project deploy preview shows conflicts, but files are identical

When I run sf project deploy preview it shows particular files as conflicted. However, when I run SFDX: Diff File Against Org, it shows as identical. What does it mean to have a conflict when ...
Z0q's user avatar
  • 155
0 votes
1 answer
176 views

Can I retrieve project files from production using the sf CLI?

When I run sf project retrieve start on a production Org, it says: Error (1): This command can only be used on orgs that have source tracking enabled, such as sandboxes and scratch orgs Is there a ...
Z0q's user avatar
  • 155
0 votes
0 answers
65 views

Show URL in the title of LWC lightning-map

The image from my Lightning web component That's what I want to achieve I am implementing lightning-map for one of my clients. I actually need to show the URL or a button that would open google map ...
Areeba Irfan Ullah Khan's user avatar
0 votes
0 answers
50 views

How to request a pre-release DevHub?

While a pre-release org can be requested for Spring 24 through standard Salesforce signup https://www.salesforce.com/form/signup/prerelease-spring24/, these orgs do not allow to enable the API (to use ...
Manuel Moya's user avatar
1 vote
0 answers
94 views

Issue with authenticate using SFDX CLI in Linux: Error (1): Cannot read properties of undefined (reading 'setContentsFromObject')

I'm building an CI/CD pipeline with Gitlab and AWS EC2 instance (Linux x84_64). I successfully installed SFDX CLI and try to authenticate using SFDX commands but they returned the same errors: Error (...
DUC Le Anh's user avatar
-1 votes
1 answer
43 views

How to retrieve last modification time of files stored in Org?

Currently I am using sf project retrieve start to retrieve files stored inside the Salesforce Org. Is it possible to retrieve the file modification times of these files as well? I am working on a tool ...
Z0q's user avatar
  • 155
0 votes
0 answers
26 views

GitHub Actions: Delete obsolete salesforce lightning flow version using Shell script and YAML

Before validating and deploying the components, I am attempting to remove any outdated versions of a flow. I discovered a solution on the Salesforce Stack Exchange. Remove all old flow versions using ...
Eashan Parlewar's user avatar
-1 votes
1 answer
75 views

How to create different kind of scheduled apex jobs [closed]

How to create the following apex jobs(Types) Reporting Notification Sitemap SEO Generation Job Sitemap SEO Incremental Job Can you explain these apex job types and how to create these jobs in ...
Pamoda Wijesinghe's user avatar
4 votes
1 answer
140 views

Error Plugin: @salesforce/cli: could not find package.json

After updating my Salesforce cli to version @salesforce/cli/2.21.8 win32-x64 node-v20.10.0 and npm 7.19.0 I keep getting the following errors whenever I try to run an sf command: $ sf --version (node:...
Lior Lavi's user avatar
  • 374
1 vote
0 answers
196 views

TypeError: this.config.plugins.filter is not a function - sfdx package install command not working

I have updated the salesforce CLi with latest version 2.21.8. After that, i am installing the packing using sfdx package install commpand but i am getting below error. Warning: Plugin @salesforce/...
Kishan Vadaliya's user avatar
0 votes
0 answers
21 views

Getting error while generating project template using SF v2

I am setting up a new machine and had to use the SF v2 cli. While I am trying to use: sf project generate --name myproject I get: Trying to copy from a source that does not exist: C:\Program Files (...
Maciej Zadworny's user avatar
2 votes
0 answers
36 views

Push Upgrades to subscribers of managed package 1GP using SF CLI

We can create a new version of my 1GP using sf package1 version create... in my CICD pipeline. After sometime looking into the documentation of CLIs (sf and sfdx), I don't see any option to push an ...
Martin Borthiry's user avatar
1 vote
1 answer
659 views

SF Package Install Warn - @salesforce/plugin-packaging different from the version specific by sf - Type Error - this.config.plugins.filter is not a fn

I am running into an issue/error when I am trying to run the sf package install command I am using the latest @salesforce/cli which is currently 2.20.6 (even tried latest nightly 2.22.1) https://www....
Erik Strudels's user avatar
1 vote
1 answer
284 views

Project command, project start --dry-run vs project validate

I'm trying to reach the reasons to use project validate instead of project start --dry-run. Due to, when using dry-run in project start, seems to have the same result of project validate. Project ...
Renan Queiroz's user avatar
0 votes
1 answer
325 views

updating from sfdx-cli to sf

I've set up actions that run on deployments in git. These scripts use the sfdx commands to deploy and various other functions. Now I want to move them from sfdx and to the new sf cli. Is there a ...
akarnid's user avatar
  • 1,932
0 votes
0 answers
61 views

how to setup sf cli in docker that run as anonymous user

i am installing cf cli in docker. it works fine when I run the docker as root. but when I run it as anonymous user: docker run -it --user 1001 sf_docker:latest bash and then executing: sf version it ...
user_pruser's user avatar
0 votes
1 answer
64 views

sfdx cli - Unable to create scratch org | Error authenticating with JWT- invalid assertion

we are having some issue starting today (22 Nov) Everything was working till date. Starting today morning we are unable to create new scratch org. sfdx CLI command we run sfdx force:org:create -f ...
Sagar Thoriya's user avatar
0 votes
0 answers
108 views

Why I am getting padding of 2px in my Lightning-radio-group element's all the radio button except first radio in LWC in salesforce?

CSS: .vertical-radio-group { display: flex; flex-direction: column; align-items: flex-start; margin-left: var(--slds-c-lightning-radio-group-spacing-inline-start, 0rem); } .slds-radio { ...
Sanu Singh's user avatar
0 votes
1 answer
59 views

open scratch org with new user in terminal

I want to open my scratch org with the same alias that I have nexmar in terminal but instead of system administrator open with my new user nexmar administrator that I make. sf org create user --set-...
bahareh shafi's user avatar
1 vote
0 answers
43 views

Second Generation Beta Package Creation is failing in Github Action

I'm trying to create a 2nd Gen package using Github Action (workflow dispatch Action). After I deployed and run the workflow it gave me an error while uploading the new package: The error is on the &...
Oubayda Samrouth's user avatar
0 votes
1 answer
335 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
6 votes
2 answers
845 views

sfdx push Error - Custom Index - property 'booleanIndexedValue' not valid in version 56.0

When we try to push our existing code into the scratch org we are getting below error, =============================================================================== ──────────────────────────────────...
Sagar Thoriya's user avatar
0 votes
1 answer
86 views

Issue in new CLI command, package version create

After updating to the new CLI version, unable to create new package version. I am not getting any error, in a few seconds it's saying as created but actually it's not creating anything. Let me know ...
Ragul's user avatar
  • 471
0 votes
0 answers
182 views

Trying to retrieve all the Metadata components in VSCode

I have tried to retrieve all the Metadata components from a Production org in VS Code successfully in the past by using the below command. sf project generate manifest --from-org --name=allMetadata -...
Soham Banerjee's user avatar
1 vote
1 answer
455 views

"sf project deploy start" hits "isomorphic-git error"

Every other day I try to deploy some metadata (sf 2.11.8, PowerShell) and fail like this: > sf project deploy start --metadata ApexClass:Foo Error (1): An internal error caused this command to fail....
Felix van Hove's user avatar
-1 votes
2 answers
676 views

how to overcome salesforce CLI slowness?

Salesforce extensions are taking ages to load in VS-Code. CLI team is releasing updates 5 times in a month, Not sure each release has went through performance testing before release ? After update I ...
Ragul's user avatar
  • 471
0 votes
0 answers
205 views

VS Code sfdx-scanner installation error related to SSL

I am trying to install Salesforce sfdx-scanner for VS code on my office laptop as per the below guideline Install and Update Salesforce Code Analyzer. I checked some of the issues related to sfdx-...
Rachit's user avatar
  • 177
0 votes
0 answers
57 views

Intent Set Deployment

Is there a way to deploy Intent Set from dev to production with all the existing utterance present in it.If it's possible can you share me an example of the package we need to create for that or if ...
Arka Kundu's user avatar
0 votes
0 answers
74 views

Using SFDX_MDAPI_TEMP_DIR Environment Variable does not retain generated metadata

When setting SFDX_MDAPI_TEMP_DIR using SET SFDX_MDAPI_TEMP_DIR=path_to_some_folder, I get a message saying that SFDX_MDAPI_TEMP_DIR is deprecated, use SF_MDAPI_TEMP_DIR instead. I set the updated ...
THEDJA's user avatar
  • 135
0 votes
1 answer
246 views

Unable to install lwc local server VS code

from yesterday I'm trying to install LWC local development server using 'sfdx plugins:install @Salesforce/lwc-dev-server' but i'm getting an error a weird error like this. Polling for new version(s) ...
Mohammad Danish's user avatar
0 votes
0 answers
55 views

Data import error handling using CLI

I'm using CLI command sf data import tree to import data based on a JSON plan into Salesforce org. If the data import gets an error for any record, then the whole load fails. Is it possible to somehow ...
mascot's user avatar
  • 573
0 votes
1 answer
113 views

Not able to setup Default org in VS code

Previously I have setup sandbox as a Default Org in my VS code. But somehow it's not showing now and when I am trying to setup again, I am not able to do so as commands are not showing in Command ...
Shobit Gupta's user avatar
0 votes
0 answers
2k views

Unable to do sfdx deploy or sfdx retrieve from Vs code

I reinstalled git as I thought my git became corrupt, git doesnt have issue as git log and git status commands work. My VS code is connected to a sandbox, whenever I am doing a sfdx deploy source to ...
amitsingh6651's user avatar
2 votes
0 answers
644 views

Deployment Error Says Report Folder is Missing

I'm deploying an sfdx project from VSCode. I'm getting errors on all of my report files that say "Cannot find folder:StoryNavigator." The folder and reports are in my package, so I'm not ...
Rochelle C's user avatar
0 votes
1 answer
102 views

Set Default Page Layout for Record Type in XML File

Can I add a default page layout to a record type xml file? I'm deploying an sfdx package to various client organizations and I want to set a default page layout in each record type XML file. I can't ...
Rochelle C's user avatar

1
2 3 4 5
16