Unexpected behavior with default SFDX target org configuration.
Question
When I omit the -u CLI flag and rely on the currently set default SFDX target org, I expect the tool to handle it. However, the tool returns a message saying this has not been supplied. Does SFDMU support using the default SFDX org?
Answer
SFDMU does not inherit target org from the CLI default username.
In the current run flow:
- if only one org flag is provided (
--sourceusernameor--targetusername), that value is used for both source and target; - default CLI target org is not auto-applied.
To avoid accidental same-org runs, explicitly pass both:
--sourceusername--targetusername