---
schema_version: "1"
id: 15f811f4699f8a5dc33f83bb1dacdaa18456eca2abdd539fff74ac66f2dfeb9c
title: sobject list
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/salesforcedx/sfclireference/guides/sobject/cli_reference_sobject_list.md
canonical_url: https://developer.salesforce.com/docs/platform/salesforce-cli-reference/guide/cli_reference_sobject_list.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: 53c8313ed07f5dc76773faa69084cf36085f8c7b779b939f9bbf99702aff5f90
products:
  - Salesforce CLI Command Reference
  - salesforcedx
---
<!-- prettier-ignore-start -->

# sobject list

List all Salesforce objects of a specified category.

## Description for sobject list

You can list the standard objects, custom objects, or all. The lists include only Salesforce objects, not Tooling API objects.

## Aliases for sobject list

`force:schema:sobject:list`

## Flags

| Flag Name (Long) | Flag Name (Short) | Description |
|------------------|-------------------|-------------|
| <code>&#8209;&#8209;api&#8209;version</code> | N/A | **Type:** Value<br><br>Override the api version used for api requests made by this command |
| <code>&#8209;&#8209;flags&#8209;dir</code> | N/A | **Type:** Value<br><br>Import flag values from a directory. |
| <code>&#8209;&#8209;json</code> | N/A | **Type:** Boolean<br><br>Format output as json. |
| <code>&#8209;&#8209;sobject</code> | <code>&#8209;s</code> | **Type:** Value<br>**Default value:** `ALL`<br><br>Category of objects to list. |
| <code>&#8209;&#8209;target&#8209;org</code> | <code>&#8209;o</code> | **Type:** Value<br>**Required**<br><br>Username or alias of the target org. Not required if the `target-org` configuration variable is already set. |

## Examples for sobject list

List all objects in your default org:

```shell
sf sobject list --sobject all
```

List only custom objects in the org with alias "my-scratch-org":

```shell
sf sobject list --sobject custom --target-org my-scratch-org
```
<!-- prettier-ignore-end -->
