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:

  1. Verify the org alias directly:
    • sf org display --target-org <alias> --json
  2. Refresh authentication for the failing org alias:
    • sf org login web --alias <alias>
  3. 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.

Last updated on 17th Feb 2026