Repository navigation
Closed
Labels
investigatingWe're actively investigating this issueWe're actively investigating this issuevalidatedVersion information for this issue has been validatedVersion information for this issue has been validated
Description
Before You Submit
- I'm using the latest version of Salesforce CLI
- I've searched the existing issues
- I've run
sf doctorto diagnose common issues
Related Issue
Command
sf org login sfdx-url --sfdx-url-stdin
Org Type
Production
Did this work before?
No, this is a new bug
Last Working Version
No response
Summary
Issue originally reported in #3647 was due to issue with 3rd party package.
Issue has been fixed in https://github.com/oclif/core/releases/tag/5.1.0 that was causing sf org login sfdx-url --sfdx-url-stdin to intermittently fail in CI pipelines.
Repository to Reproduce
No response
Steps to reproduce
- Run sf org login sfdx-url --sfdx-url-stdin in CI pipeline
- Will intermittently fail due to hardcoded 10ms delay in @oclif/core
Expected Result
Should consistently read the sfdx-url from std without failing.
Actual Result
Intermittently fails as timeout reached before input is read
System Information
{
"architecture": "win32-x64",
"cliVersion": "@salesforce/cli/2.151.7",
"nodeVersion": "node-v22.23.2",
"osVersion": "Windows_NT 10.0.26200",
"shell": "powershell",
"pluginVersions": [
"@oclif/plugin-autocomplete 4.0.0 (core)",
"@oclif/plugin-commands 5.0.0 (core)",
"@oclif/plugin-help 7.0.0 (core)",
"@oclif/plugin-not-found 4.0.0 (core)",
"@oclif/plugin-plugins 6.0.0 (core)",
"@oclif/plugin-search 2.0.0 (core)",
"@oclif/plugin-update 5.0.0 (core)",
"@oclif/plugin-version 3.0.0 (core)",
"@oclif/plugin-warn-if-update-available 4.0.0 (core)",
"@oclif/plugin-which 4.0.0 (core)",
"@salesforce/cli 2.151.7 (core)",
"agent 2.0.5 (core)",
"apex 4.1.1 (core)",
"api 2.0.9 (core)",
"auth 5.0.6 (core)",
"code-analyzer 5.15.0 (user) published 62 days ago (Wed Jul 29 2026) (latest is 5.16.0)",
"data 5.1.7 (core)",
"deploy-retrieve 4.2.0 (core)",
"info 4.0.9 (core)",
"limits 4.0.4 (core)",
"marketplace 2.0.5 (core)",
"org 6.0.11 (core)",
"packaging 3.0.6 (core)",
"schema 4.0.6 (core)",
"settings 3.0.6 (core)",
"sobject 2.0.5 (core)",
"telemetry 4.0.6 (core)",
"templates 57.1.0 (core)",
"trust 4.0.10 (core)",
"user 5.0.2 (core)"
]
}Additional Information
Only breaking changes from version 4 -> 5
drop EOL Node versions
require Node >=22, drop EOL Node version
Screenshots or Log Files
No response
Metadata
Metadata
Assignees
Labels
investigatingWe're actively investigating this issueWe're actively investigating this issuevalidatedVersion information for this issue has been validatedVersion information for this issue has been validated
Activity
github-actions commentedon Sep 30, 2026
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.
WillieRuemmele commentedon Sep 30, 2026
The fix is already on its way through the release pipeline:
@oclif/core@5.1.0added support for theOCLIF_STDIN_TIMEOUT_MSenvironment variable, which lets you override the hardcoded 10ms stdin timeout. This was a direct result of your report in sf org login sfdx-url --sfdx-url-stdin intermittently fails with "Flag --sfdx-url-stdin expects a value" when piping via stdin in CI #3647.2.153.5) already includes@oclif/core@5.1.2.latest-rcon Oct 1 and tolateston Oct 8.Once you're on a CLI version that includes
@oclif/core@5.1.0+, you can setOCLIF_STDIN_TIMEOUT_MSto a higher value (e.g.1000) in your CI environment to control the stdin read timeout. This env var is not available in the currentlatest(2.151.7, which ships@oclif/core@5.0.0), so you'd need to install the nightly (npm install @salesforce/cli@nightly) or wait for the Oct 8latestrelease to use it.iowillhoit commentedon Oct 12, 2026
Hey all, the
latestversion of the CLI is currently using@oclif/coreversion5.1.2. Closing this issue