If I log into my Developer Account at Salesforce and open the Developer Console
, then I can click "New" and create a custom Apex Class
. I might give it name such as:
SearchResultsController
If I go back a few days later, and log in, I can click "Open" to re-open this class. And now I see that it's full name is:
SearchResultsController.apxc
That ending, apxc, is added automatically by Salesforce.
But if I go to https://force-cli.heroku.com/ and download that for my Mac, and then run:
force export
I get a huge number of files, and if I look in the "classes" folders, I see some of the custom Apex classes that I created, but now they have a cls
extension, for instance:
metadata/classes/SearchResultController.cls
Why is this? Why would the same code have different endings in different places? Does Salesforce respect both apxc
and cls
as legitimate extensions for the code that I write?
.cls
,.trigger
, etc. TheDeveloper Console
is the outlier here, so I re-tagged your question with that in mind.