Skip to content
This repository has been archived by the owner on Mar 18, 2024. It is now read-only.

Not using "target-dev-hub" and "target-org"! #1387

Open
Triopticon opened this issue Aug 16, 2023 · 1 comment
Open

Not using "target-dev-hub" and "target-org"! #1387

Triopticon opened this issue Aug 16, 2023 · 1 comment
Labels
analysis To be decided on how to solution/fix

Comments

@Triopticon
Copy link

Describe the bug
"sf dependency install" command don't uses config values set for "target-dev-hub" and "target-org".
It will throw the error if these values i not set using the flags "targetdevhubusername" and "targetusername" on the command.
This is behaviour new in the lates version July23(v23.4.2), and not desirable.

To Reproduce

  1. Set config values for "target-dev-hub" and "target-org" to desired values.
  2. Run the "sf dependency install" command without the flags "targetdevhubusername" and "targetusername".
  3. You get the error:
    › Error: The following errors occurred:
    › Missing required flag targetdevhubusername
    › Missing required flag targetusername
    › See more help with --help

Expected behavior
You shoulfd be able to omit the flags "targetdevhubusername" and "targetusername" on the command and it should use the values given in the config keys: "target-dev-hub" and "target-org"

Platform Details (please complete the following information):

  • OS: macOs - Ventura 13.5
  • Version [e.g. CLI Version eg: 1.6.6]
  • Salesforce CLI(sfdx cli) Version: @salesforce/cli/2.2.7 darwin-arm64 node-v18.15.0
  • CI Platform:
@github-actions github-actions bot added the analysis To be decided on how to solution/fix label Aug 16, 2023
@michallachowski
Copy link
Contributor

I observed the same for pool:fetch and orchestrator:validate commands. It forced me to add --targetdevhubusername parameter to both of them, to be able to use with v23.4.2.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
analysis To be decided on how to solution/fix
Projects
None yet
Development

No branches or pull requests

2 participants