Skip to content

sf project retrieve start --target-metadata-dir flag causing error #2226

Description

@jxbambrick

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

  1. sf project generate --name test-delete
  2. set default-org
  3. create a change set in the selected default-org
  4. sf project retrieve start --target-metadata-dir placeholder1 --package-name placeholder2
  5. see terminal for error message: Error(1): unknown

Expected result

  1. A new local salesforce project should be created called test-delete
  2. The default org should be selected
  3. A change set should exist in the outbound change set folder
  4. SF project retrieve start --target-metadata-dir placeholder1 --package-name placeholder2 should download the package placeholder2 into the folder placeholder1

Actual result

  1. Terminal displays an error: Error(1)

System Information

  1. Using Windows 10 Enterprise: Visual Studio Code: Terminal is PowerShell and cmd
  2. @salesforce/cli/1.83.0 win32-x64 node-v18.15.0
  3. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugIssue or pull request that identifies or fixes a bugmore information requiredIssue requires more information or a response from the customervalidatedVersion information for this issue has been validated

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions