Summary
sf org list snapshot --json --target-dev-hub <alias> exits without writing any JSON output in v2.142.7. stdout is empty, stderr contains only a Node.js warning about an unsettled top-level await.
CLI Version
{
"architecture": "win32-x64",
"cliVersion": "@salesforce/cli/2.142.7",
"nodeVersion": "node-v22.23.0",
"osVersion": "Windows_NT 10.0.26200",
"rootPath": "C:\\Users\\User\\AppData\\Local\\sf\\client\\2.142.7-3db3dd4",
"shell": "cmd.exe",
"pluginVersions": [
"@oclif/plugin-autocomplete 3.2.53 (core)",
"@oclif/plugin-commands 4.1.59 (core)",
"@oclif/plugin-help 6.2.53 (core)",
"@oclif/plugin-not-found 3.2.88 (core)",
"@oclif/plugin-plugins 5.4.80 (core)",
"@oclif/plugin-search 1.2.52 (core)",
"@oclif/plugin-update 4.7.54 (core)",
"@oclif/plugin-version 2.2.50 (core)",
"@oclif/plugin-warn-if-update-available 3.1.68 (core)",
"@oclif/plugin-which 3.2.58 (core)",
"@salesforce/cli 2.142.7 (core)",
"agent 1.43.0 (core)",
"apex 3.9.38 (core)",
"api 1.3.43 (core)",
"auth 4.4.5 (core)",
"code-analyzer 5.14.0 (user)",
"data 4.0.110 (core)",
"deploy-retrieve 3.24.54 (core)",
"info 3.4.144 (core)",
"limits 3.3.96 (core)",
"marketplace 1.3.35 (core)",
"org 5.11.12 (core)",
"packaging 2.30.1 (core)",
"schema 3.3.122 (core)",
"settings 2.4.89 (core)",
"signups 2.6.73 (user)",
"sobject 1.4.117 (core)",
"telemetry 3.8.27 (core)",
"templates 56.18.12 (core)",
"trust 3.8.26 (core)",
"user 3.10.4 (core)",
"@salesforce/sfdx-plugin-lwc-test 1.2.1 (user)",
"sfdx-git-delta 6.45.1 (user)"
]
}
Steps to Reproduce
sf org list snapshot --json --target-dev-hub <devhub-alias> >stdout.txt 2>stderr.txt
type stdout.txt
type stderr.txt
Actual Behaviour
stdout.txt: empty
stderr.txt:
Warning: Detected unsettled top-level await at file:///C:/Users/.../sf/client/2.142.7-3db3dd4/bin/run.js:15
await cli.run();
^
Expected Behaviour
stdout.txt: full JSON response ({"status":0,"result":[...],"warnings":[]})
Works In
2.140.6 — produces clean JSON on stdout, no warning. Same machine, same command.
Notes
- Reproduced with and without
SF_JSON_TO_STDOUT=true
- The
signups plugin (which provides org list snapshot) is installed: signups 2.6.73 (user)
- The bundled Node.js v22.23.0 in 2.142.7 may be relevant — the warning indicates
await cli.run() in run.js:15 is still pending when the process exits, suggesting the command never completes execution
Summary
sf org list snapshot --json --target-dev-hub <alias>exits without writing any JSON output in v2.142.7. stdout is empty, stderr contains only a Node.js warning about an unsettled top-level await.CLI Version
{ "architecture": "win32-x64", "cliVersion": "@salesforce/cli/2.142.7", "nodeVersion": "node-v22.23.0", "osVersion": "Windows_NT 10.0.26200", "rootPath": "C:\\Users\\User\\AppData\\Local\\sf\\client\\2.142.7-3db3dd4", "shell": "cmd.exe", "pluginVersions": [ "@oclif/plugin-autocomplete 3.2.53 (core)", "@oclif/plugin-commands 4.1.59 (core)", "@oclif/plugin-help 6.2.53 (core)", "@oclif/plugin-not-found 3.2.88 (core)", "@oclif/plugin-plugins 5.4.80 (core)", "@oclif/plugin-search 1.2.52 (core)", "@oclif/plugin-update 4.7.54 (core)", "@oclif/plugin-version 2.2.50 (core)", "@oclif/plugin-warn-if-update-available 3.1.68 (core)", "@oclif/plugin-which 3.2.58 (core)", "@salesforce/cli 2.142.7 (core)", "agent 1.43.0 (core)", "apex 3.9.38 (core)", "api 1.3.43 (core)", "auth 4.4.5 (core)", "code-analyzer 5.14.0 (user)", "data 4.0.110 (core)", "deploy-retrieve 3.24.54 (core)", "info 3.4.144 (core)", "limits 3.3.96 (core)", "marketplace 1.3.35 (core)", "org 5.11.12 (core)", "packaging 2.30.1 (core)", "schema 3.3.122 (core)", "settings 2.4.89 (core)", "signups 2.6.73 (user)", "sobject 1.4.117 (core)", "telemetry 3.8.27 (core)", "templates 56.18.12 (core)", "trust 3.8.26 (core)", "user 3.10.4 (core)", "@salesforce/sfdx-plugin-lwc-test 1.2.1 (user)", "sfdx-git-delta 6.45.1 (user)" ] }Steps to Reproduce
Actual Behaviour
stdout.txt: emptystderr.txt:Expected Behaviour
stdout.txt: full JSON response ({"status":0,"result":[...],"warnings":[]})Works In
2.140.6 — produces clean JSON on stdout, no warning. Same machine, same command.
Notes
SF_JSON_TO_STDOUT=truesignupsplugin (which providesorg list snapshot) is installed:signups 2.6.73 (user)await cli.run()inrun.js:15is still pending when the process exits, suggesting the command never completes execution