Skip to main content
New
Stack Overflow Jobs powered by Indeed: A job site that puts thousands of tech jobs at your fingertips (U.S. only). Search jobs

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
1 vote
0 answers
39 views

How to use custom labels in LWC that is used in standalone LWR SPA NodeJS module?

I am trying to create LWR SPA project that consisted by LWCs. I have created new LWR SPA with command : "npm init lwr@latest" The steps was set project name - lwr-project. Select Type - ...
user149845's user avatar
0 votes
0 answers
19 views

Uninstalling a Package

I have a package installed in my Salesforce org. I also noticed growing numbers of SOQL queries. I would like to know if removing the package would affect any existing records and is there a way to ...
Ashley's user avatar
  • 1
1 vote
0 answers
36 views

Getting Error "(1): The requested resource does not exist" while creating sandbox through Salesforce CLI

Getting Error "(1): The requested resource does not exist" while creating sandbox through Salesforce CLI sfdx org create sandbox -f config/dev-sandbox-def.json --target-org DevHubOr --wait ...
Pronit Agrawal's user avatar
2 votes
1 answer
40 views

Import Sandbox with Test Data for non developers

The use case here is that we want to import sandbox with test data having parent child relationship in a single go. One way to do it would be to use sf commands - sf data import tree --plan Account-...
Aditya M's user avatar
  • 420
1 vote
1 answer
26 views

What is the way to set LWC (Lightning debug mode) with an 'sf cli' command for the admin User if it exists?

Use case: I want to assign to the admin user of my newly created scratch org the 'Debug Mode' so that when I open my new scratch to be able to directly start debugging my LWC components. Is that ...
Искрен Станиславов's user avatar
0 votes
0 answers
29 views

Data category visibility on PermissionSet

Is there a way to programatically fetch or deploy the Data Category Group Visiblities on PermissionSet via the metadata api? I see in this documentation that PermissionSetCategoryGroupVisibility isnt ...
jacksparrow007's user avatar
2 votes
2 answers
129 views

sf package install failing with MODULE_NOT_FOUND: Cannot find module 'glob'

I'm working on setting up a script to prepare a scratch org. In that script, I need to install a package, specifically Unofficial SF's Detect and Launch package. I'm doing that by running the command ...
Dylan Bowman's user avatar
1 vote
0 answers
41 views

Maintain and deploy environment specific Salesforce namedCredentials & metadata using Azure DevOps

We are using Azure DevOps to deploy code on multiple Salesforce orgs using Salesforce CLI project commands i.e., https://developer.salesforce.com/docs/atlas.en-us.246.0.sfdx_cli_reference.meta/...
Sambit Swain's user avatar
2 votes
1 answer
48 views

Deploy entire Customizations, Flow, Apex etc from a Developer Edition org to a new Production org

We have been doing configurations, development, and automations in a Salesforce developer edition org independent of a production instance(not a sandbox). We have now just acquired a new production ...
Kele Saunders's user avatar
0 votes
1 answer
49 views

Account.SalesforceCustomer field missing

Getting an error: "Account.SalesforceCustomer Custom Field -Could not resolve standard field's name." when deploying to scratch org What feature should be enabled for this field to appear on ...
Serhii Klevchuk's user avatar
2 votes
0 answers
38 views

Invalid class name value in 2gen packages when running tests in vsCode

We are creating a 2nd gen package in Salesforce. When we try to create a new version with code coverage, so it can be promoted, I get an error on some test files. But a few things happen: If I run ...
Dorgaldir's user avatar
0 votes
1 answer
39 views

Unlocked Package Generation fails due to dependency on Manage Package

I have created and released a Managed package "A". I am now trying to create a small extension (which includes some Reports and Dashboards) as an Unlocked Package. The reports contains ...
Aditya Sehgal's user avatar
0 votes
0 answers
23 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
72 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.2k
0 votes
0 answers
29 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
42 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
30 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
61 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
745 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
48 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
66 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
  • 123
0 votes
0 answers
24 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
  • 61
0 votes
0 answers
26 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
37 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
104 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
  • 59
0 votes
1 answer
82 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
144 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
  • 59
2 votes
1 answer
171 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
  • 59
0 votes
1 answer
375 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
  • 59
0 votes
0 answers
101 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
56 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
126 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
48 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
  • 59
0 votes
0 answers
34 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
85 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
379 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
384 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
23 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
39 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
926 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
513 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
482 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,842
0 votes
0 answers
70 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
81 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
138 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
61 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
49 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
375 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
879 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
107 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
  • 541

1
2 3 4 5
17