0

What's the difference between these 2 kind of orgs?

It seems Trailhead Playgrounds orgs I am creating are non-source-tracked org and certain CLI commands can't be run against it.

How I can identify them, create a source tracking org and what exactly is the difference between them?

Thanks

1 Answer 1

6

Source tracking is available in scratch orgs, and, as of Summer '20, is in beta for Developer and Developer Pro sandboxes if the optional feature is enabled in Setup.

Source tracking makes it possible to use the sfdx force:source:pull and force:source:push commands (and their GUI equivalents), which automatically identify changed metadata components between your local source tree and the remote org.

Without source tracking, you must use manifest-based deployments using a package.xml manifest with commands like sfdx force:source:deploy. This entails creating and managing a manifest to define which specific components you wish to interact with.

Trailhead Playgrounds do not currently have source tracking. They are a type of Developer Edition org (not a sandbox). They can, however, be Dev Hubs, which allow you to create scratch orgs.

5
  • You can make an org a source-tracking org by enabling 'DEV HUB' thing? Jul 27, 2020 at 20:30
  • 3
    No, not quite. Turning on Dev Hub allows you to create scratch orgs from the Dev Hub, and they have source tracking. The Dev Hub does not. There's a setting in the Dev Hub section to turn on source tracking for associated Developer and Developer Pro sandboxes as well.
    – David Reed
    Jul 27, 2020 at 20:34
  • Got it. Thanks. Jul 27, 2020 at 20:39
  • Hi guys, I just turned this option on, according to this article: developer.salesforce.com/docs/atlas.en-us.sfdx_dev.meta/… But I still receive same error from this thread while using push command against sandbox. What else do I need to do, anything with sandbox, refresh it?
    – patryk
    Jun 14, 2022 at 7:54
  • Ho @patryk, yes yo do need to refresh your sandbox.
    – altius_rup
    Jul 7, 2022 at 12:26

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .