Summary
The command "sf project retrieve start --target-metadata-dir output --package-name placeholder" is causing an error when using the --target-metadata-dir flag.
Steps To Reproduce
- sf project generate --name test-delete
- set default-org
- create a change set in the selected default-org
- sf project retrieve start --target-metadata-dir placeholder1 --package-name placeholder2
- see terminal for error message: Error(1): unknown
Expected result
- A new local salesforce project should be created called test-delete
- The default org should be selected
- A change set should exist in the outbound change set folder
- SF project retrieve start --target-metadata-dir placeholder1 --package-name placeholder2 should download the package placeholder2 into the folder placeholder1
Actual result
- Terminal displays an error: Error(1)
System Information
- Using Windows 10 Enterprise: Visual Studio Code: Terminal is PowerShell and cmd
- @salesforce/cli/1.83.0 win32-x64 node-v18.15.0
- sfdx-cli/7.205.6 win32-x64 node-v18.15.0
{
"cliVersion": "@salesforce/cli/1.83.0",
"architecture": "win32-x64",
"nodeVersion": "node-v18.15.0",
"osVersion": "Windows_NT 10.0.19044",
"shell": "cmd.exe",
"rootPath": "C:\Users\josh.bambrick\AppData\Local\sfdx\client\7.205.6-dfc6717\sf",
"pluginVersions": [
"@oclif/plugin-autocomplete 2.3.0 (core)",
"@oclif/plugin-commands 2.2.15 (core)",
"@oclif/plugin-help 5.2.9 (core)",
"@oclif/plugin-not-found 2.3.24 (core)",
"@oclif/plugin-plugins 3.1.2 (core)",
"@oclif/plugin-search 0.0.17 (core)",
"@oclif/plugin-update 3.1.17 (core)",
"@oclif/plugin-version 1.3.4 (core)",
"@oclif/plugin-warn-if-update-available 2.0.37 (core)",
"@oclif/plugin-which 2.2.22 (core)",
"@salesforce/cli 1.83.0 (core)",
"apex 2.3.3 (core)",
"auth 2.8.1 (core)",
"data 2.3.22 (core)",
"deploy-retrieve 1.11.7 (core)",
"info 2.6.19 (core)",
"limits 2.3.18 (core)",
"login 1.2.11 (core)",
"org 2.9.8 (core)",
"schema 2.3.12 (core)",
"settings 1.4.11 (core)",
"sobject 0.1.24 (core)",
"source 2.10.14 (core)",
"telemetry 2.2.0 (core)",
"templates 55.4.20 (core)",
"trust 2.4.20 (core)",
"user 2.3.17 (core)"
]
}
Additional information
Running the following command works as expected: sf project retrieve start --package-name placeholder2
Other iterations of the sf project retrieve start work as expected except when including --target-metadata-dir
Issue experienced in previous version of sfdx and sf.
This issue started: 6/15/2023
Summary
The command "sf project retrieve start --target-metadata-dir output --package-name placeholder" is causing an error when using the --target-metadata-dir flag.
Steps To Reproduce
Expected result
Actual result
System Information
{
"cliVersion": "@salesforce/cli/1.83.0",
"architecture": "win32-x64",
"nodeVersion": "node-v18.15.0",
"osVersion": "Windows_NT 10.0.19044",
"shell": "cmd.exe",
"rootPath": "C:\Users\josh.bambrick\AppData\Local\sfdx\client\7.205.6-dfc6717\sf",
"pluginVersions": [
"@oclif/plugin-autocomplete 2.3.0 (core)",
"@oclif/plugin-commands 2.2.15 (core)",
"@oclif/plugin-help 5.2.9 (core)",
"@oclif/plugin-not-found 2.3.24 (core)",
"@oclif/plugin-plugins 3.1.2 (core)",
"@oclif/plugin-search 0.0.17 (core)",
"@oclif/plugin-update 3.1.17 (core)",
"@oclif/plugin-version 1.3.4 (core)",
"@oclif/plugin-warn-if-update-available 2.0.37 (core)",
"@oclif/plugin-which 2.2.22 (core)",
"@salesforce/cli 1.83.0 (core)",
"apex 2.3.3 (core)",
"auth 2.8.1 (core)",
"data 2.3.22 (core)",
"deploy-retrieve 1.11.7 (core)",
"info 2.6.19 (core)",
"limits 2.3.18 (core)",
"login 1.2.11 (core)",
"org 2.9.8 (core)",
"schema 2.3.12 (core)",
"settings 1.4.11 (core)",
"sobject 0.1.24 (core)",
"source 2.10.14 (core)",
"telemetry 2.2.0 (core)",
"templates 55.4.20 (core)",
"trust 2.4.20 (core)",
"user 2.3.17 (core)"
]
}
Additional information
Running the following command works as expected: sf project retrieve start --package-name placeholder2
Other iterations of the sf project retrieve start work as expected except when including --target-metadata-dir
Issue experienced in previous version of sfdx and sf.
This issue started: 6/15/2023