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‑versionN/AType: Value

Override the api version used for api requests made by this command
‑‑flags‑dirN/AType: Value

Import flag values from a directory.
‑‑jsonN/AType: Boolean

Format output as json.
‑‑sobject‑sType: Value
Default value: ALL

Category of objects to list.
‑‑target‑org‑oType: 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”: