apex get compile-status

Fetches the compilation status for Apex classes that are currently invalid or have compilation warnings.

Return compile results for only Apex classes and triggers with validation errors or warnings, instead of recompiling the entire org.

Apex compile results are available in API version 68.0 and later. If no Apex compiler issues are found, the command displays a message stating that no results were found.

Flag Name (Long)Flag Name (Short)Description
--api-versionN/AType: Value

Override the api version used for api requests made by this command.
--jsonN/AType: Boolean

Format output as json.
--target-org-oType: Value
Required

Username or alias of the target org. Not required if the target-org configuration variable is already set.

Fetch invalid Apex classes or classes that have compilation warnings for a target org: