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
20 votes
Accepted

LightningComponentBundle "Not available for deploy for this API version" error

Looks like I have found already a culprit here. It is very important to check sourceApiVersion property of project.json configuration. Looks like this value was 44.0 in my project. Probably because ...
Patlatus's user avatar
  • 17k
8 votes
Accepted

ERROR running force:source:pull: Entity of type 'Workflow' named 'Workflow' cannot be found

To avoid the error on running sfdx force:source:pull run the following query through the tooling API and delete any records it returns (easily done in Dev Console): SELECT Id, MemberType, MemberName ...
James's user avatar
  • 2,639
8 votes
Accepted

How is this possible to use the Salesforce CLI after changing my user's password?

Salesforce CLI use an access token to connect to your org. This means that even if you change your password or even your username it will still be connected to your org trough your username. If you ...
gvgramazio's user avatar
7 votes
Accepted

How to combine/manage all aliases for the same org

To see all the orgs you have with the aliases associated use the command: sfdx force:org:list To see all aliases you set: sfdx alias:list To remove the alias alone, you can use the command: sfdx ...
Z33dawg's user avatar
  • 1,411
6 votes
Accepted

How do I best switch versions of sfdx and plugins?

I suggest using the NPM to install and upgrade for ease of switching between versions. With this approach, your CLI is not auto upgraded and it is upon you to upgrade by watching the npm registry and ...
Mohith Shrivastava's user avatar
6 votes
Accepted

Can I check Salesforce CLI Release notes right within the terminal?

You can now read release notes right within Salesforce CLI. To find whats changed run the below command sfdx whatsnew -v latest and for sf executable use sf whatsnew -v latest To find what's there ...
Mohith Shrivastava's user avatar
5 votes
Accepted

Is there any way to make a shell script to automate creation and preparation of a scratch org wait between steps?

Use the -w parameter so that each command waits for confirmation, and things proceed in order: sfdx force:org:create -w 10 -s -f ./config/project-scratch-def.json -a ScratchOrg sfdx force:package:...
sfdcfox's user avatar
  • 493k
5 votes
Accepted

Salesforce DX Question (deploy profiles)

If the orgs are connected , a better option is to use change set since you can easily detect dependencies and add them . Using sfdx you can use sfdx force:source:retrieve to accomplish this . To ...
Mohith Shrivastava's user avatar
4 votes
Accepted

SFDX CLI - Locked with an active writer?

Sometimes processes fail unexpectedly and leave behind lock files. In most cases you should be able to manually remove the file by navigating to your local AppData folder (the file will live elsewhere ...
David Reed's user avatar
  • 93.1k
4 votes
Accepted

ERROR running force:source:push: No org configuration found for name

Ya, this is most likely from the CLI upgrade, and installing the plugin again probably won't help. It might be because your alias contains .'s in it which I didn't think worked in v6 either. Can you ...
Amphro's user avatar
  • 603
4 votes
Accepted

Account fields available in default scratch org but not in regular dev org

"Regular" (Developer Edition) scratch orgs don't have the same feature set as Enterprise Edition orgs, or any arbitrary org. Packaging orgs often have a lot of features turned off, as well, to avoid ...
David Reed's user avatar
  • 93.1k
4 votes
Accepted

How to properly install the preview release salesforcedx core plugin

This seems to be an issue in the Salesforce CLI plugin for pre-release. I am going to inform the team about it. You can uncover the real error by executing below command sfdx plugins:install ...
Mohith Shrivastava's user avatar
4 votes

ERROR running force:source:pull: Entity of type 'Workflow' named 'Workflow' cannot be found

It's a known bug that hasn't been fixed, you can follow progress over here: https://success.salesforce.com/issues_view?id=a1p3A000001SitrQAC EDIT: Fixed as of December 2019
jeromegv's user avatar
  • 183
4 votes

Node version error during Salesforce DX pre-release plugin installation

This error shows up even if you have the right node version installed in your environment. The reason why this happens is that the default Salesforce CLI installation ships with a node server bundled ...
POZ's user avatar
  • 4,374
4 votes
Accepted

The Salesforce CLI Binary URL installs older version of Salesforce CLI. How to update Salesforce CLI to the latest version?

The URL to get the latest version of the Salesforce CLI is changed to https://developer.salesforce.com/media/salesforce-cli/sfdx/channels/stable/sfdx-linux-x64.tar.xz Previously it was https://...
Mohith Shrivastava's user avatar
4 votes

How to "install" LWC?

If you already have NodeJS installed, you can install the CLI with Node Package Manager: npm install -g sfdx-cli This will give access to all of the sfdx commands without a binary install, and ...
sfdcfox's user avatar
  • 493k
4 votes
Accepted

Use Salesforce CLI To Retrieve object action

You need to specify object API Name, e.g.: sfdx force:source:retrieve -m QuickAction:Account.My_Custom_Action
Alex Kalatski's user avatar
4 votes
Accepted

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

No, there is not. About the closest thing we have to that is to run all tests in an org and then query data from the ApexCodeCoverage object in the Tooling API (and also the ApexClass object, so you ...
Derek F's user avatar
  • 62k
3 votes
Accepted

What are the available values for workspaceElement state in CLI Hooks?

From the Source code, you can view here The state field maps to one of these, It's the state of the local file when force source pull or push occurs. UNCHANGED: 'u' CHANGED: 'c' DELETED: 'd' NEW: '...
Mohith Shrivastava's user avatar
3 votes

Salesforce CLI deploy files with spaces failing

OK I figured it out on Mac OSX. For a single file -p works as follows: sfdx force:source:deploy -p "force-app/main/default/layouts/Snapshot__mdt-Snapshot Layout.layout-meta.xml" However, ...
Shanerk's user avatar
  • 1,076
3 votes

sfdx' is not recognized as an internal or external command, operable program or batch file

It appears you're on a Windows computer. If the restart doesn't solve the issue, I'd check whether you allowed the installer to Set PATH to Salesforce CLI ?
Kris Goncalves's user avatar
3 votes
Accepted

SFDX force:source:diff not in Documentation

It's not in core CLI command documentation because it's not a part of the core package, it's a plugin that is still in beta. sfdx force:source:diff --help diff a local source file against the version ...
Kris Goncalves's user avatar
3 votes
Accepted

How can I create salesforce user (not `Account` record) through salesforce CLI?

It is possible to create user's account through CLI but it seems that there's no option to reset password. So the user will have to reset it manually. To create user's account through CLI, use force:...
user2475983's user avatar
3 votes

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

First generation packages can't be promoted. You would use the package1 version create to create a new Released version. You must be using a second generation package in order to use package version ...
sfdcfox's user avatar
  • 493k
3 votes
Accepted

Is it possible to stop/clear/refresh the source tracking for a single file?

You do this using the .forceignore file. This is similar to .gitignore in that it lists files and file path patterns (using wildcards) that should not be synced between your file system and the org ...
Phil W's user avatar
  • 36.6k
2 votes

Is this possible to rename a field using Tooling API or Ant Migration Tool or SFDX CLI?

Metadata API has 2 formats. File-Based Calls CRUD-Based Calls RenameMetadata is crud based called and not File-Based calls. Thus you won't be able to use force.com migration tool aka ANT or ...
Pranay Jaiswal's user avatar
2 votes

sfdx' is not recognized as an internal or external command, operable program or batch file

If You're sure it's installed, restart your computer and try again. installation changes may nor always immediately take effect, and so restarting can make sure all changes are applied.,
sfdcfox's user avatar
  • 493k
2 votes
Accepted

SFDX CLI and connection to second Playground

Trailhead Playgrounds aren't scratch orgs linked to your Dev Hub. They're closer to independent Developer Editions. To authorize them for use with Salesforce DX, you need to first get your Trailhead ...
David Reed's user avatar
  • 93.1k
2 votes
Accepted

Unable to parse package2-descriptor.json: invalid attribute 'versionNumber'

First off, the error message was misleading. A Salesforce developer helped me understand that the tooling api has a slightly different set of configurations, and that is why the package2-description....
Luke Buthman's user avatar
2 votes

How to properly install the preview release salesforcedx core plugin

We don't use pre-release or develop tags of salesforcedx. salesforcedx is bundled in the top-level sfdx-cli.. If you want next week's release early, you can say sfdx update stable-rc to switch, and ...
Shane McLaughlin's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible