-
Notifications
You must be signed in to change notification settings - Fork 78
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot retrieve or deploy using new sf CLI on production: source tracking not enabled? #2693
Comments
Thank you for filing this issue. We appreciate your feedback and will review the issue as soon as possible. Remember, however, that GitHub isn't a mechanism for receiving support under any agreement or SLA. If you require immediate assistance, contact Salesforce Customer Support. |
I'm assuming that you have "all project files"? Otherwise, how would the CLI know which files you want? or If you mean, "I have no project but I want to dump the whole org out" you can use we're working to come up with a better solution for this scenario, see #2040 |
Hi @mshanemc , I have enabled source tracking in my free dev org and I have tried the command |
all scratch orgs support tracking
as far as I know, developer orgs, like trailhead playgrounds, don't support tracking tracking. You should still be able to |
Summary
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 way to retrieve all project files locally from a production environment? Is this possible using the Salesforce CLI?
Or for
sf project deploy preview --metadata x:x
it showsError (1): This org does not have source tracking
On my sandbox this solve the issue, but I would like to do the same on production if possible in any way.
When using the old and deprecated
sfdx force:source:retrieve
no error is shown.Steps To Reproduce
Running these commands on a production Org:
sf project retrieve start
or
sf project deploy preview --metadata x:x
I don't know how to simulate a production environment without giving my credentials.
Expected result
Retrieve / Deploy without errors.
Actual result
Errors were shown as described.
System Information
Using Git Bash on Windows.
sf version --verbose --json
:The text was updated successfully, but these errors were encountered: