Skip to content

Unsettled top-level await in sf org list #3440

@kyle-blair

Description

@kyle-blair

Note
Before you submit your issue, make sure that:

  • You're using the latest version of Salesforce CLI.
  • You've searched both open and closed issues for related posts.
  • You've used the doctor command to diagnose common issues.
  • You understand that GitHub Issues don't adhere to any agreement or SLA.
    • If you require immediate assistance, use official channels such as Salesforce Customer Support.

Summary

I just updated to the latest version of sf, and now running the sf org list command gives only the following output (it doesn't list any orgs that I'm connected to).

$ sf org list
Warning: Detected unsettled top-level await at file:///Users/user/.nvm/versions/node/v22.20.0/lib/node_modules/@salesforce/cli/bin/run.js:15
await cli.run();
^


Steps To Reproduce

Steps 2 and 3 are assumed to be necessary, but I can't say for sure. The error appears related to dns in some way, which may mean it only occurs when dns is involved/required.

  1. Install this version @salesforce/cli/2.109.7.
  2. Create a sandbox and authenticate to it using the cli (i.e. sf org login web ...).
  3. Delete the sandbox.
  4. It may be necessary to wait some time for dns records to expire? Could try clearing your system's dns cache to simulate the passage of time.
  5. Run sf org list.

Expected result

Orgs are listed, if any.

Actual result

$ sf org list
Warning: Detected unsettled top-level await at file:///Users/user/.nvm/versions/node/v22.20.0/lib/node_modules/@salesforce/cli/bin/run.js:15
await cli.run();
^


System Information

{
  "architecture": "darwin-arm64",
  "cliVersion": "@salesforce/cli/2.109.7",
  "nodeVersion": "node-v22.20.0",
  "osVersion": "Darwin 24.6.0",
  "rootPath": "/Users/user/.nvm/versions/node/v22.20.0/lib/node_modules/@salesforce/cli",
  "shell": "bash",
  "pluginVersions": [
    "@oclif/plugin-autocomplete 3.2.35 (core)",
    "@oclif/plugin-commands 4.1.33 (core)",
    "@oclif/plugin-help 6.2.33 (core)",
    "@oclif/plugin-not-found 3.2.68 (core)",
    "@oclif/plugin-plugins 5.4.48 (core)",
    "@oclif/plugin-search 1.2.32 (core)",
    "@oclif/plugin-update 4.7.8 (core)",
    "@oclif/plugin-version 2.2.33 (core)",
    "@oclif/plugin-warn-if-update-available 3.1.48 (core)",
    "@oclif/plugin-which 3.2.40 (core)",
    "@salesforce/cli 2.109.7 (core)",
    "agent 1.24.13 (core)",
    "apex 3.8.3 (core)",
    "api 1.3.3 (core)",
    "auth 3.9.17 (core)",
    "data 4.0.58 (core)",
    "deploy-retrieve 3.23.3 (core)",
    "info 3.4.88 (core)",
    "limits 3.3.67 (core)",
    "marketplace 1.3.8 (core)",
    "org 5.9.32 (core)",
    "packaging 2.20.5 (core)",
    "schema 3.3.82 (core)",
    "settings 2.4.48 (core)",
    "signups 2.6.28 (user) published 164 days ago (Sat May 17 2025) (latest is 2.6.53)",
    "sobject 1.4.73 (core)",
    "telemetry 3.6.58 (core)",
    "templates 56.3.65 (core)",
    "trust 3.7.113 (core)",
    "user 3.6.38 (core)"
  ]
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    investigatingWe're actively investigating this issuevalidatedVersion information for this issue has been validated

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions