25 votes

SFDX - No org configuration found for name

It may be a problem with aliases. I have mistakenly created an alias: [email protected] Then, not aware of consequences I created an alias again, in the way I wanted it in the first place: ...
Dominik Wolanin's user avatar
20 votes
Accepted

Downgrading sfdx-cli

Updated answer (thanks to Shane McLaughlin's answer, please upvote their answer as well): It depends how you installed the CLI originally. If you installed via npm, lie npm install -g sfdx-cli then ...
sfdcfox's user avatar
  • 487k
17 votes
Accepted

What is "Sfdx Auth Url" attribute used for?

The SFDX URL can be used to authenticate to the Salesforce CLI without needing any JWT Token or using the browser to key in the credential. In fact it is the easiest way to authenticate through CLI. ...
Mohith Shrivastava's user avatar
13 votes
Accepted

Can Not Update SFDX

The documentation states: If You Installed the Salesforce CLI Using the Installer To install the latest Salesforce CLI version, run: sfdx update If You Installed the Salesforce CLI Using npm The ...
Raul's user avatar
  • 18.7k
12 votes

How to sign a SFDX Plugin?

If you need to install automatically your plugin, like in a Dockerfile or in a CI process, you can use the following line : echo 'y' | sfdx plugins:install yourpluginname
Nicolas Vuillamy's user avatar
12 votes

Downgrading sfdx-cli

The accepted answer is not correct. It depends how you installed the CLI originally. If you installed via npm, lie npm install -g sfdx-cli then you can use npm to install whatever version you like, ...
Shane McLaughlin's user avatar
10 votes
Accepted

sfdx plugin installation crash: TypeError: Cannot read property 'dim' of undefined

Yes, you can "manually" install plugins. The local commands are meant to be run in the project directory, e.g. ~/workspace/my-project. For local npm installation, here's how that goes: npm ...
sfdcfox's user avatar
  • 487k
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

invalid fullname must end in a custom suffix(for ex. _c)

Your SFDX Project file must contain a reference to a definition file: { "packageDirectories": [ { "path": "force-app", "package": "my-package-name", "versionName": "ver 0.1", ...
sfdcfox's user avatar
  • 487k
8 votes

SFDX create package version throws plugin packaging error

The problem occurs when SF CLI (from the @salesforce/cli npm-repository, not the former Salesforce CLI known as sfdx, or sfdx-cli) tries to download the necessary plugin sources to perform the job of ...
Johannes Heinen's user avatar
7 votes
Accepted

Scratch org: how to retrieve metadata

A scratch org is a completely blank Salesforce org that's divorced from any data/metadata in any other org in your Salesforce universe (including the Dev Hub - your Dev Hub org just gives you the ...
Brian Miller's user avatar
  • 5,162
7 votes
Accepted

SFDX - No org configuration found for name

Deleting folders "tools", "typings" and the file "sfdx-config.json" and then close and open vscode solved the problem.
osos9's user avatar
  • 557
7 votes
Accepted

Is there a way to create Trace Flags for certain user using SFDX?

Yes, you can create a Trace Flag via command line. The command for creating a new Trace Flag: sfdx force:data:record:create --sobjecttype TraceFlag -v "StartDate=$NOW ExpirationDate=$EXP ...
Freddy's user avatar
  • 203
5 votes
Accepted

VS Code + sfdx: debug logs

It sounds like you're hitting this bug: https://github.com/forcedotcom/salesforcedx-vscode/issues/1411 VS Code gets its error's from the cli and the cli has only been reporting errors on deploys ...
muchavie's user avatar
  • 492
5 votes
Accepted

SFDX: Retrieve all metadata brought wrong or metadata

The VSCode extension from salesforce uses Salesforce CLI under the hood to manage the authorization . CLI provides ability for you to authorize as many as orgs you would like with an option to set ...
Mohith Shrivastava's user avatar
5 votes

ERROR running force:source:retrieve: This command is required to run from within an SFDX project

Paths starting with \\ (UNC) are not supported. You would need to map the drive to a local drive letter in order to use the network drive effectively. The latter error ("this command is required to ...
sfdcfox's user avatar
  • 487k
5 votes
Accepted

Ternary operator in class property throws error

As the error states your attribute value cannot mix a literal string with an expression. You need to reformat your markup with just an expression like this: <div class="{! 'item slds-col slds-...
POZ's user avatar
  • 4,354
5 votes
Accepted

Determine if authorized org with SalesforceDX is Developer or Production

You also can just query for sandbox (which includes Scratch Orgs): sfdx force:data:soql:query -q "SELECT IsSandbox FROM Organization LIMIT 1" -u [your_alias] This will return true. When using this ...
Christian Menzinger's user avatar
5 votes
Accepted

VS Code SFDX Unit Tests: Cannot see "Run Test" or "Run All Tests"

So I spent most of the past weekend cross checking what the settings are on my work laptop, and the only difference was the VS Code version and the fact that there is nothing set for: "...
VaroutSP's user avatar
  • 321
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

Error on secret-tool for sfdx force:auth:jwt:grant

You have to export keychain before executing session using secret tool for CI/headless server. Change export SFDX_USE_GENERIC_KEYCHAIN=true To export SFDX_USE_GENERIC_UNIX_KEYCHAIN=true devolpers ...
Vishal Deshmukh's user avatar
4 votes

SFDX - No org configuration found for name

One of the reasons may be conflict in your aliases files. You can find following folder on your computer: %USERPROFILE%/.sfdx and find there file alias.json. There would be all your used aliases and ...
azimut3's user avatar
  • 120
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
Accepted

Automating setup of scratch orgs

The fastest quickest setup option, in my opinion, is going to be a native command line script for your system. This is what things like bash and PowerShell have been doing really well since the dawn ...
pchittum's user avatar
  • 19.6k
4 votes
Accepted

sfdx package versioning error for BillingCountryCode and MailingCountryCode field

You need to ensure that your scratch org definition file both uses the correct configuration for a scratch org that includes the features required by your code: "features": ["StateAndCountryPicklist"...
David Reed's user avatar
  • 92.6k
4 votes
Accepted

Cannot retrieve WorkflowAlert, WorkflowFieldUpdate, WorkflowRule from package.xml through sfdx cmd

Those elements are still "bundled" in this release (7.50) of DX (and all prior versions). To extract them, use the Workflow object: <types> <members>*</members> <name>...
sfdcfox's user avatar
  • 487k
4 votes
Accepted

SFDX error for LiveChatTranscript object

I believe you're looking for the LiveChat settings: { "orgName": "Sample Org", "edition": "developer", "settings": { "liveAgentSettings": { "enableLiveAgent": true } } } You ...
sfdcfox's user avatar
  • 487k
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
Accepted

SFDX: How can I make my plugin available to install via sfdx plugins:install and a git repo reference?

We found that this could be resolved by building the plugin and committing the generated lib folder structure and the oclif.manifest.json file to git (which is somewhat ugly, IMHO). Having done this ...
Phil W's user avatar
  • 35.4k
4 votes
Accepted

Unable to run custom hello world SFDX plugin locally

This is because of a minor bug from sfdx plugins:generate. In the package.json file, you most likely have "commands": "./lib/commands", but in the custom plugin directory structure,...
arut's user avatar
  • 5,271

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