-
Notifications
You must be signed in to change notification settings - Fork 9
Migration
Matthias Rolke edited this page Mar 10, 2025
·
2 revisions
Migrate from sf force source read to sf crud‐mdapi read.
The new sf crud-mdapi read command replaces sf force source read which is now deprecated and will be removed in the next major release (v2).
The old sf force source read command was aligned with the already deleted sf force source retrieve command.
The new sf crud-mdapi read command aligns the flags and behavior with the sf project retrieve start command.
-
new flags:
--output-dirand--manifest -
renamed flag:
--sourcepath(-p) is now--source-dir(-d) -
changed flag:
--metadatacan now be specified multiple times instead of only once as comma-separated string - the global sf flag
--flags-diris now supported - Metadata like
CustomObjectTranslationis now decomposed into multiple files (e.g..objectTranslation-meta.xml,.fieldTranslation-meta.xml)
-
replace
sf force:source:readandsf force source readwithsf crud-mdapi readExample:
- sf force:source:read -m Profile:Admin + sf crud-mdapi read -m Profile:Admin
-
convert comma-separated metadata component names to multiple
--metadataflagsExample:
- --metadata Profile:Admin,Profile:Standard + --metadata Profile:Admin --metadata Profile:Standard
-
replace
--sourcepathwith--source-dir -
replace
-pwith-d