Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using sf package command with --flags-dir results in error #2864

Closed
veaux opened this issue May 9, 2024 · 4 comments
Closed

Using sf package command with --flags-dir results in error #2864

veaux opened this issue May 9, 2024 · 4 comments
Labels
more information required Issue requires more information or a response from the customer

Comments

@veaux
Copy link

veaux commented May 9, 2024

Note
Before you submit your issue, make sure that:

  • You're using the latest version of Salesforce CLI.
  • You've searched both open and closed issues for related posts.
  • You've used the doctor command to diagnose common issues.
  • You understand that GitHub Issues don't adhere to any agreement or SLA.
    • If you require immediate assistance, use official channels such as Salesforce Customer Support.

Summary

Using sf package command with --flags-dir results in error:
Flag --package can only be specified once

Steps To Reproduce

  1. Create a package file in a flag-values directory and populate it with the Id of a package to install
  2. Run the command sf package install --flags-dir ./flag-values

IMPORTANT
Provide a repository that's configured to reproduce the issue. If you are unable to provide a repo, please explain why not. The more info we have from the start, the faster we can resolve your issue.
We may close your issue if you don't include proper instructions.

  • Generate a project with sf project generate or fork dreamhouse-lwc.
  • Provide detailed step-by-step instructions on how to reproduce the issue.

Expected result

Command should have retrieved package Id from file and installed package into the default org

Actual result

Error (1): Flag --package can only be specified once

System Information

{
  "architecture": "win32-x64",
  "cliVersion": "@salesforce/cli/2.39.6",
  "nodeVersion": "node-v20.12.2",
  "osVersion": "Windows_NT 10.0.19045",
  "rootPath": "C:\\Users\\Darrell\\AppData\\Local\\sf\\client\\2.39.6-6819d56",
  "shell": "cmd.exe",
  "pluginVersions": [
    "@oclif/plugin-autocomplete 3.0.16 (core)",
    "@oclif/plugin-commands 3.3.1 (core)",
    "@oclif/plugin-help 6.0.21 (core)",
    "@oclif/plugin-not-found 3.1.6 (core)",
    "@oclif/plugin-plugins 5.0.14 (core)",
    "@oclif/plugin-search 1.0.23 (core)",
    "@oclif/plugin-update 4.2.7 (core)",
    "@oclif/plugin-version 2.0.17 (core)",
    "@oclif/plugin-warn-if-update-available 3.0.15 (core)",
    "@oclif/plugin-which 3.1.8 (core)",
    "@salesforce/cli 2.39.6 (core)",
    "apex 3.1.9 (core)",
    "auth 3.6.3 (core)",
    "community 3.2.8 (user)",
    "data 3.3.2 (core)",
    "deploy-retrieve 3.6.6 (core)",
    "dev 2.3.0 (user)",
    "info 3.2.3 (core)",
    "limits 3.3.4 (core)",
    "marketplace 1.2.4 (core)",
    "org 4.1.3 (core)",
    "packaging 2.4.0 (core)",
    "schema 3.3.4 (core)",
    "settings 2.2.1 (core)",
    "signups 2.2.4 (user)",
    "sobject 1.3.6 (core)",
    "source 3.3.3 (core)",
    "telemetry 3.3.4 (core)",
    "templates 56.2.4 (core)",
    "trust 3.6.6 (core)",
    "user 3.5.2 (core)",
    "mo-dx-plugin 0.3.2 (user)",
    "sfdmu 4.33.17 (user)"
  ]
}

Additional information

@veaux veaux added the investigating We're actively investigating this issue label May 9, 2024
Copy link

github-actions bot commented May 9, 2024

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.

@veaux veaux changed the title Using package command with --flags-dir results in error Using sf package command with --flags-dir results in error May 9, 2024
Copy link

github-actions bot commented May 9, 2024

Hello @veaux 👋 None of the versions of sf you shared match the latest release.

Shared: 2.39.6
Latest: 2.40.7

Update to the latest version of Salesforce CLI (docs) and confirm that you're still seeing your issue.
You can also try the rc and nightly releases! (docs)

After updating, share the full output of sf version --verbose --json

@github-actions github-actions bot added more information required Issue requires more information or a response from the customer and removed investigating We're actively investigating this issue labels May 9, 2024
@mdonnalley
Copy link
Contributor

@veaux Can you share the contents of the package file? As well as the debug output from running

DEBUG=sf:@salesforce/cli:hooks:preparse sf package install --flags-dir ./flag-values

Thanks!

@veaux
Copy link
Author

veaux commented May 14, 2024

With the newest version I no longer see this issue can close.

@veaux veaux closed this as completed May 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
more information required Issue requires more information or a response from the customer
Projects
None yet
Development

No branches or pull requests

2 participants