schema Commands
schema:sobject:describe
Command Syntax
- sfdx force:schema:sobject:describe
- [--json]
- [--loglevel LOGLEVEL]
- [-u TARGETUSERNAME]
- [--apiversion APIVERSION]
- -s SOBJECTTYPE
- [-t]
Parameters
- --json
- Optional
-
Format output as JSON.
- Type: boolean
- --loglevel LOGLEVEL
- Optional
-
The logging level for this command invocation. Logs are stored in $HOME/.sfdx/sfdx.log.
- Type: string
- Permissible values are: trace, debug, info, warn, error, fatal, TRACE, DEBUG, INFO, WARN, ERROR, FATAL
- Default value: warn
- -u | --targetusername TARGETUSERNAME
- Optional
-
A username or alias for the target org. Overrides the default target org.
- Type: string
- --apiversion APIVERSION
- Optional
-
Override the API version used for API requests made by this command.
- Type: string
- -s | --sobjecttype SOBJECTTYPE
- Required
-
The API name of the object to describe.
- Type: string
- -t | --usetoolingapi
- Optional
-
Execute using Tooling API.
- Type: boolean
Help for schema:sobject:describe
Examples:
1$ sfdx force:schema:sobject:describe -s Account1$ sfdx force:schema:sobject:describe -s MyObject__c1$ sfdx force:schema:sobject:describe -s ApexClass -tschema:sobject:list
Command Syntax
- sfdx force:schema:sobject:list
- [--json]
- [--loglevel LOGLEVEL]
- [-u TARGETUSERNAME]
- [--apiversion APIVERSION]
- -c SOBJECTTYPECATEGORY
Parameters
- --json
- Optional
-
Format output as JSON.
- Type: boolean
- --loglevel LOGLEVEL
- Optional
-
The logging level for this command invocation. Logs are stored in $HOME/.sfdx/sfdx.log.
- Type: string
- Permissible values are: trace, debug, info, warn, error, fatal, TRACE, DEBUG, INFO, WARN, ERROR, FATAL
- Default value: warn
- -u | --targetusername TARGETUSERNAME
- Optional
-
A username or alias for the target org. Overrides the default target org.
- Type: string
- --apiversion APIVERSION
- Optional
-
Override the API version used for API requests made by this command.
- Type: string
- -c | --sobjecttypecategory SOBJECTTYPECATEGORY
- Required
-
The type of objects to list: all, custom, or standard.
- Type: string
Help for schema:sobject:list
Lists all objects, custom objects, or standard objects in the org.
Examples:
1$ sfdx force:schema:sobject:list -c all1$ sfdx force:schema:sobject:list -c custom1$ sfdx force:schema:sobject:list -c standard