Plugin cannot connect to the org.
Question
I can connect to other sandboxes without issues, but when trying to connect to Production, I receive the following error:
[12:15:22.262] Connecting to staging using SFDX force:org:display ...
[12:15:30.534] Successfully connected to staging.
[12:15:31.290] Connecting to prod using SFDX force:org:display ...
[12:15:33.342][ERROR] Command initialization error: Attempt to connect to prod failed. Please, try to refresh your local SFDX CLI connection.
The result of sf force org display shows the org is connected:
{
"status": 0,
"result": {
"id": "00D1U000000xKhkUAF",
"accessToken": "accessToken",
"instanceUrl": "https://obscured-company-name.my.salesforce.com",
"username": "obscured.username@company.com",
"clientId": "PlatformCLI",
"connectedStatus": "Connected",
"alias": "prod"
}
}
Answer
This issue is usually related to stale local CLI auth/session data for that alias.
Recommended steps:
- Verify the org alias directly:
sf org display --target-org <alias> --json
- Refresh authentication for the failing org alias:
sf org login web --alias <alias>
- Run SFDMU again with explicit aliases for source/target.
If the issue persists, clear local CLI auth cache for the alias and re-authenticate, then continue with local debugging.
For more information, see the related GitHub issue: SFDX-Data-Move-Utility Issue #487.