I want to use an sf command to list all the names of the apex classes I have in my Org.Is there a command I can use ?

1 Answer 1


sf org list metadata provides a JSON-formatted output of any kind of metadata in the Metadata API, including Apex Classes. In addition, sf data query can return the records in CSV format.

sf org list metadata -o org-alias -m ApexClass -f output.json
sf data query -o org-alias -q "select name from ApexClass"

You must log in to answer this question.

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