You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
Create a package file in a flag-values directory and populate it with the Id of a package to install
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
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
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
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
Summary
Using
sf package
command with--flags-dir
results in error:Flag --package can only be specified once
Steps To Reproduce
package
file in aflag-values
directory and populate it with the Id of a package to installsf package install --flags-dir ./flag-values
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
Additional information
The text was updated successfully, but these errors were encountered: