Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save toddhalfpenny/be8d23a2253e8ec531280596b0f3e0d5 to your computer and use it in GitHub Desktop.
Save toddhalfpenny/be8d23a2253e8ec531280596b0f3e0d5 to your computer and use it in GitHub Desktop.
SFDX list custom fields names
# Lists field names for all custom fields for a specificed Salesforce object
sfdx force:schema:sobject:describe -s <OBJECT_API_NAME> -u <ORG_ALIAS> --json | q -r '.result.fields[] | select(.custom == true) .name'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment