Hot answers tagged

79 votes
Accepted

Removing old hub org, or non-scratch org from Salesforce DX org list

It would be nice for this to be something in the actual CLI commands: the ability to clean up old orgs that are no longer needed. For the time being, you need to manually cleanup the DX configs in ...
pchittum's user avatar
  • 19.6k
67 votes

Removing old hub org, or non-scratch org from Salesforce DX org list

It looks like rather than deleting a hub org, you just call: sfdx force:auth:logout -u <hub alias> You'll get a warning about being sure you want to log out. Once you do, that hub org will no ...
Dave Lyon's user avatar
  • 781
22 votes

Removing old hub org, or non-scratch org from Salesforce DX org list

D:\...>sfdx force:org:list === Orgs ALIAS USERNAME ORG ID CONNECTED STATUS ─── ──────────── ────────────────────────────────────────── ...
Daniel Ballinger's user avatar
9 votes

Can I configure different Devhub orgs per SFDX project?

My mistake. The force:config:set has options to set the value for both the current directory OR globally. E.g. Omit the -g and --global parameters to set the config for the current directory/project. ...
Daniel Ballinger'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

Does enabling Dev Hub disable anything else? Can I turn off Dev Hub?

As per Enable the Dev Hub in Your Org: Enabling Dev Hub in a production or business org is completely safe and won’t cause any performance or customer issues. The Dev Hub is comprised of objects with ...
Daniel Ballinger's user avatar
6 votes

Removing old hub org, or non-scratch org from Salesforce DX org list

I just ran into this issue while trying to create a scratch org and found a working solution. After I authorized my production DevHub, entering the following allowed me to remove the old TrialDevHub ...
Miranda Ragland's user avatar
6 votes

LWC Visual Studio Code Dev Hub command

It turned out that my default browser was set to nothing. It's a stupid thing but it drove me crazy. I hope it helps if someone have the same issue.
Mehdi Belcadi's user avatar
6 votes
Accepted

Dev Hub for open source?

I use a Developer Edition. As you say, it is limiting: if you want to run continuous integration flows like executing Apex unit tests on every push or every branch, you're going to have a hard time of ...
David Reed's user avatar
  • 92.6k
6 votes
Accepted

"ERROR running force:source:push" when doing "cci task run dx_push" to a Developer edition org

Use the deploy task to deploy to a persistent org that does not have source tracking (as Developer Editions do not): cci task run deploy --org thead-dev001 You can use this against Trailhead ...
David Reed's user avatar
  • 92.6k
5 votes

Do I need to enable Dev Hub in my PROD Org?

So I need to know if having a Dev Hub org that is not my Prod org is ok. Typically it should be OK. However you will end up having limited number of Scratch Orgs that you can create using a DE Org. ...
Jayant Das's user avatar
  • 30.4k
5 votes
Accepted

Do I need to enable Dev Hub in my PROD Org?

Dev Hub can be enabled in Developer Edition orgs, but the scratch org limits are significantly lower than in paid Salesforce production orgs. In a Developer Edition org, the limits are just 3 active ...
David Reed's user avatar
  • 92.6k
5 votes
Accepted

Where is unlocked package version metadata stored?

The actual metadata storage for packages is opaque to you as an end user: it is inside the Salesforce platform. When you upload a package, you receive an 04t package version id. That id uniquely ...
David Reed's user avatar
  • 92.6k
4 votes

Removing old hub org, or non-scratch org from Salesforce DX org list

Newest sfdx command line: sfdx org list sfdx org logout -o org_alias
Quinto's user avatar
  • 41
4 votes
Accepted

All org info lost every time after computer reboot

You need to contact your IT department. Authorization data is stored in a set of files stored in $HOME/.sfdx or %HOMEPATH$.sfdx. If your system isn't configured to save or migrate this data between ...
sfdcfox's user avatar
  • 487k
4 votes
Accepted

How to utilize Devhub for Managed Package development?

Yes, this is basically correct, but you'll eventually want to start using DX packaging, which allows you to break up your namespace into sub-packages for easier management and development. Basically, ...
sfdcfox's user avatar
  • 487k
4 votes
Accepted

What are the options for cross-org use of a dev hub?

Dev Hub is set up for a single org. It does not matter if you have multiple Dev Hubs, and they don't have to be related to one another. I think the most important factors here will be (1) scratch ...
David Reed's user avatar
  • 92.6k
4 votes

Organize Managed Package Dependencies with Unlocked Packages

Why is that a requirement? Because it is intended that those packages will become part of a Classic Managed Package (1GP). This restriction prevents you from accidentally creating dependencies on a ...
sfdcfox's user avatar
  • 487k
4 votes

Organize Managed Package Dependencies with Unlocked Packages

One viable solution would be to directly clone the source code from git repo of these open source libraries into your project folder. You can subfolders under the main folder as discussed by one of ...
Mohith Shrivastava's user avatar
4 votes
Accepted

Dev hub in Developer org is this possible

We need to be clear about terms here. A Developer sandbox is associated with a production org and cannot be a Dev Hub, although your production org itself can be a Dev Hub (and comes with ...
David Reed's user avatar
  • 92.6k
4 votes
Accepted

Can I add an LWC component from Scratch Org to a managed package?

The paradigm differs depending on whether you are building a First-Generation Managed Package or a Second-Generation Managed Package. While 2GP is preferred for new projects, you should confirm which ...
David Reed's user avatar
  • 92.6k
4 votes
Accepted

Is it possible to link a namespace frome a developer org to a developer hub

It's important to note that linking a namespace does not imply anything about ownership of packages and package versions that use that namespace. You can link your namespace to an arbitrary number of ...
David Reed's user avatar
  • 92.6k
3 votes
Accepted

Ability to enable Dev Hub / Unlocked Packages for Partner Developer Edition Org

From the Enable Dev Hub in Your Org article, it implies that you can only enable Dev Hub in the Partner Business org: Partner trial orgs signed up from the partner community have different scratch ...
Brian Miller's user avatar
  • 5,162
3 votes

User can create DX Unlocked package but not a version

My solution was two-fold: Don't use the -json parameter as it doesn't print the real root causes As many documentations and blogs about this topic I forgot to specify the -f parameter in my version ...
Robert Sösemann's user avatar
3 votes

Can a developer create scratch orgs without a login on the Dev Hub org?

I hope that answers your question System administrators can access the Dev Hub org by default. You can enable more users to access the Dev Hub org so they can also create scratch orgs. You can ...
Denis Pereverzev's user avatar
3 votes
Accepted

Which Salesforce License is required to use Dev Hub (beta)?

Salesforce plans to bring a new License type for this come Winter 18. https://success.salesforce.com/_ui/core/chatter/groups/GroupProfilePage?fId=0D53A00003Dml6e&g=0F93A000000HTp1 We are ...
TehNrd's user avatar
  • 795
3 votes

Removing old hub org, or non-scratch org from Salesforce DX org list

Try using sfdx force:org:list --clean this will clear inactive or deleted orgs scratch orgs only from sfdx for non scratch org clean inside folder "C:\Users\ ~UserName~ .sfdx"
Ragul's user avatar
  • 471
3 votes

Organize Managed Package Dependencies with Unlocked Packages

My gut feeling is that you're facing an uphill battle here. To answer a question with a question: What are you hoping to gain by using unlocked packaging to manage your dependencies? Dependency ...
Aidan's user avatar
  • 13.6k
3 votes
Accepted

Scratch orgs are created with Russian language for Ukrainian and other Eastern European Dev Hubs even if Dev Hub language is English

This is a known issue. There is a Github Issue Link https://github.com/forcedotcom/cli/issues/1962 And Known Issue link https://issues.salesforce.com/issue/a028c00000smIKf/scratch-orgs-created-in-...
Patlatus's user avatar
  • 16.4k
3 votes
Accepted

Namespace Registries "Link namespace" popup errors out

Looks like it was a mismatch in the Connected App Config. The org domain was changed from its original name... which was still sitting in the config here.
lu_ke____'s user avatar
  • 433

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