sobject list
List all Salesforce objects of a specified category.
You can list the standard objects, custom objects, or all. The lists include only Salesforce objects, not Tooling API objects.
force:schema:sobject:list
| Flag Name (Long) | Flag Name (Short) | Description |
|---|---|---|
--api-version | N/A | Type: Value Override the api version used for api requests made by this command |
--flags-dir | N/A | Type: Value Import flag values from a directory. |
--json | N/A | Type: Boolean Format output as json. |
--sobject | -s | Type: Value Default value: ALLCategory of objects to list. |
--target-org | -o | Type: Value Required Username or alias of the target org. Not required if the target-org configuration variable is already set. |
List all objects in your default org:
List only custom objects in the org with alias “my-scratch-org”: