-
Notifications
You must be signed in to change notification settings - Fork 78
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
sf apex run: Nonexistent flag: --apex-code-file #1999
Comments
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. |
@dschach https://github.com/salesforcecli/plugin-apex/blob/main/src/commands/apex/run.ts |
Thanks again @AllanOricil, that's correct! It does look like the examples are incorrect on this though, I will get a quick fix in. Thanks! |
This issue has been linked to a new work item: W-12696529 |
Will the documentation I referenced be updated as well? |
It will! I just got this fix merged in and we generate the website's Command Reference guide from the CLI itself. This change will be included in Thursday's |
Summary
-f
works.--apex-code-file
does not.Unable to run Apex using the code from the documentation
Steps To Reproduce:
sfdx force:apex:execute -f ./data/sample-data.apex
workssf apex run -f ./data/sample-data.apex
workssf apex run --apex-code-file ./data/sample-data.apex
Expected result
Apex should execute, as the documentation says it would: https://developer.salesforce.com/docs/atlas.en-us.sfdx_cli_reference.meta/sfdx_cli_reference/cli_reference_apex_commands_unified.htm#cli_reference_apex_run_unified
Actual result
Error as above
System Information
The text was updated successfully, but these errors were encountered: