i am trying to execute filename.apxc file using sfdx.

sfdx force:apex:execute -u dev -f filename.apxc

it throwing the error

File not found at the specified path:

  • Well, where is the file? Can you show us your project's directory structure and why you believe this error isn't correct, by editing your post?
    – David Reed
    Jun 22, 2021 at 3:49
  • how to see project directory from the URL Jun 22, 2021 at 6:00
  • I'm sorry, I have no idea what you're asking.
    – David Reed
    Jun 22, 2021 at 6:00
  • i know only the URL ...directory path how to get from URL Jun 22, 2021 at 6:02
  • I don't understand how a URL relates to your question, so I'll urge you again to edit your post and provide all the context, including detailed reproduction steps and optionally screenshots, to help any community member understand the problem.
    – David Reed
    Jun 22, 2021 at 6:05

1 Answer 1


force:apex:execute must be a file on your computer. You'll need to download the file if you want to execute it with this command.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .