diff --git a/CHANGELOG.md b/CHANGELOG.md index 2cc8e600a..10e65f184 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,9 @@ +## [2.10.46](https://github.com/salesforcecli/plugin-source/compare/2.10.45...2.10.46) (2023-10-28) + +### Bug Fixes + +- **deps:** bump @salesforce/source-deploy-retrieve from 9.7.27 to 9.7.28 ([#988](https://github.com/salesforcecli/plugin-source/issues/988)) ([e2e4363](https://github.com/salesforcecli/plugin-source/commit/e2e43633584db3a5ba181a39e7399c24dd80e301)) + ## [2.10.45](https://github.com/salesforcecli/plugin-source/compare/2.10.44...2.10.45) (2023-10-22) ### Bug Fixes diff --git a/README.md b/README.md index 75471a050..9639f3b45 100644 --- a/README.md +++ b/README.md @@ -75,7 +75,7 @@ $ npm install -g @salesforce/plugin-source $ sfdx COMMAND running command... $ sfdx (--version) -@salesforce/plugin-source/2.0.12 linux-x64 node-v14.20.0 +@salesforce/plugin-source/2.10.46 linux-x64 node-v18.18.2 $ sfdx --help [COMMAND] USAGE $ sfdx COMMAND @@ -88,1573 +88,947 @@ USAGE -- [`sfdx force:mdapi:beta:convert -r [-d ] [-p | -x | -m ] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`](#sfdx-forcemdapibetaconvert--r-directory--d-directory--p-array---x-string---m-array---json---loglevel-tracedebuginfowarnerrorfataltracedebuginfowarnerrorfatal) -- [`sfdx force:mdapi:beta:deploy [-d ] [-w ] [-o] [-g] [-q | -l NoTestRun|RunSpecifiedTests|RunLocalTests|RunAllTestsInOrg | -r | -c] [-f ] [-s] [--soapdeploy] [--purgeondelete] [--resultsdir ] [--coverageformatters ] [--junit] [-u ] [--apiversion ] [--verbose] [--concise] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`](#sfdx-forcemdapibetadeploy--d-directory--w-minutes--o--g--q-id---l-notestrunrunspecifiedtestsrunlocaltestsrunalltestsinorg---r-array---c--f-filepath--s---soapdeploy---purgeondelete---resultsdir-directory---coverageformatters-array---junit--u-string---apiversion-string---verbose---concise---json---loglevel-tracedebuginfowarnerrorfataltracedebuginfowarnerrorfatal) -- [`sfdx force:mdapi:beta:deploy:report [-w ] [-i ] [--resultsdir ] [--coverageformatters ] [--junit] [-u ] [--apiversion ] [--verbose] [--concise] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`](#sfdx-forcemdapibetadeployreport--w-minutes--i-id---resultsdir-directory---coverageformatters-array---junit--u-string---apiversion-string---verbose---concise---json---loglevel-tracedebuginfowarnerrorfataltracedebuginfowarnerrorfatal) -- [`sfdx force:mdapi:beta:retrieve -r [-k | -d | -p ] [-s] [-n ] [-z] [-w ] [-u ] [-a ] [--verbose] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`](#sfdx-forcemdapibetaretrieve--r-directory--k-filepath---d-directory---p-array--s--n-string--z--w-minutes--u-string--a-string---verbose---json---loglevel-tracedebuginfowarnerrorfataltracedebuginfowarnerrorfatal) -- [`sfdx force:mdapi:beta:retrieve:report [-r ] [-i ] [-n ] [-z] [-w ] [-u ] [--apiversion ] [--verbose] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`](#sfdx-forcemdapibetaretrievereport--r-directory--i-id--n-string--z--w-minutes--u-string---apiversion-string---verbose---json---loglevel-tracedebuginfowarnerrorfataltracedebuginfowarnerrorfatal) -- [`sfdx force:mdapi:convert -r [-d ] [-p | -x | -m ] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`](#sfdx-forcemdapiconvert--r-directory--d-directory--p-array---x-string---m-array---json---loglevel-tracedebuginfowarnerrorfataltracedebuginfowarnerrorfatal) -- [`sfdx force:mdapi:deploy [-d ] [-w ] [-o] [-g] [-q | -l NoTestRun|RunSpecifiedTests|RunLocalTests|RunAllTestsInOrg | -r | -c] [-f ] [-s] [--soapdeploy] [--purgeondelete] [--resultsdir ] [--coverageformatters ] [--junit] [-u ] [--apiversion ] [--verbose] [--concise] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`](#sfdx-forcemdapideploy--d-directory--w-minutes--o--g--q-id---l-notestrunrunspecifiedtestsrunlocaltestsrunalltestsinorg---r-array---c--f-filepath--s---soapdeploy---purgeondelete---resultsdir-directory---coverageformatters-array---junit--u-string---apiversion-string---verbose---concise---json---loglevel-tracedebuginfowarnerrorfataltracedebuginfowarnerrorfatal) -- [`sfdx force:mdapi:deploy:cancel [-w ] [-i ] [-u ] [--apiversion ] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`](#sfdx-forcemdapideploycancel--w-minutes--i-id--u-string---apiversion-string---json---loglevel-tracedebuginfowarnerrorfataltracedebuginfowarnerrorfatal) -- [`sfdx force:mdapi:deploy:report [-w ] [-i ] [--resultsdir ] [--coverageformatters ] [--junit] [-u ] [--apiversion ] [--verbose] [--concise] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`](#sfdx-forcemdapideployreport--w-minutes--i-id---resultsdir-directory---coverageformatters-array---junit--u-string---apiversion-string---verbose---concise---json---loglevel-tracedebuginfowarnerrorfataltracedebuginfowarnerrorfatal) -- [`sfdx force:mdapi:retrieve -r [-k | -d | -p ] [-s] [-n ] [-z] [-w ] [-u ] [-a ] [--verbose] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`](#sfdx-forcemdapiretrieve--r-directory--k-filepath---d-directory---p-array--s--n-string--z--w-minutes--u-string--a-string---verbose---json---loglevel-tracedebuginfowarnerrorfataltracedebuginfowarnerrorfatal) -- [`sfdx force:mdapi:retrieve:report [-r ] [-i ] [-n ] [-z] [-w ] [-u ] [--apiversion ] [--verbose] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`](#sfdx-forcemdapiretrievereport--r-directory--i-id--n-string--z--w-minutes--u-string---apiversion-string---verbose---json---loglevel-tracedebuginfowarnerrorfataltracedebuginfowarnerrorfatal) -- [`sfdx force:source:beta:pull [-f] [-w ] [-u ] [--apiversion ] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`](#sfdx-forcesourcebetapull--f--w-minutes--u-string---apiversion-string---json---loglevel-tracedebuginfowarnerrorfataltracedebuginfowarnerrorfatal) -- [`sfdx force:source:beta:push [-f] [-w ] [-g] [-u ] [--apiversion ] [--quiet] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`](#sfdx-forcesourcebetapush--f--w-minutes--g--u-string---apiversion-string---quiet---json---loglevel-tracedebuginfowarnerrorfataltracedebuginfowarnerrorfatal) -- [`sfdx force:source:beta:status [-l | -r] [-u ] [--apiversion ] [--concise] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`](#sfdx-forcesourcebetastatus--l---r--u-string---apiversion-string---concise---json---loglevel-tracedebuginfowarnerrorfataltracedebuginfowarnerrorfatal) -- [`sfdx force:source:beta:tracking:clear [-p] [-u ] [--apiversion ] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`](#sfdx-forcesourcebetatrackingclear--p--u-string---apiversion-string---json---loglevel-tracedebuginfowarnerrorfataltracedebuginfowarnerrorfatal) -- [`sfdx force:source:beta:tracking:reset [-r ] [-p] [-u ] [--apiversion ] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`](#sfdx-forcesourcebetatrackingreset--r-integer--p--u-string---apiversion-string---json---loglevel-tracedebuginfowarnerrorfataltracedebuginfowarnerrorfatal) -- [`sfdx force:source:convert [-r ] [-d ] [-n ] [-p | -x | -m ] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`](#sfdx-forcesourceconvert--r-directory--d-directory--n-string--p-array---x-string---m-array---json---loglevel-tracedebuginfowarnerrorfataltracedebuginfowarnerrorfatal) -- [`sfdx force:source:delete [-w ] [-l NoTestRun|RunLocalTests|RunAllTestsInOrg] [-r] [-m ] [-p ] [-f [-t | -c]] [-u ] [--apiversion ] [--verbose] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`](#sfdx-forcesourcedelete--w-minutes--l-notestrunrunlocaltestsrunalltestsinorg--r--m-array--p-array--f--t---c--u-string---apiversion-string---verbose---json---loglevel-tracedebuginfowarnerrorfataltracedebuginfowarnerrorfatal) -- [`sfdx force:source:deploy [--soapdeploy] [-w ] [-o] [-g] [--purgeondelete -x ] [-q | -c | -l NoTestRun|RunSpecifiedTests|RunLocalTests|RunAllTestsInOrg | -r | -t] [-m ] [-p ] [--predestructivechanges ] [--postdestructivechanges ] [-f ] [--resultsdir ] [--coverageformatters ] [--junit] [-u ] [--apiversion ] [--verbose] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`](#sfdx-forcesourcedeploy---soapdeploy--w-minutes--o--g---purgeondelete--x-filepath--q-id---c---l-notestrunrunspecifiedtestsrunlocaltestsrunalltestsinorg---r-array---t--m-array--p-array---predestructivechanges-filepath----postdestructivechanges-filepath---f----resultsdir-directory---coverageformatters-array---junit--u-string---apiversion-string---verbose---json---loglevel-tracedebuginfowarnerrorfataltracedebuginfowarnerrorfatal) -- [`sfdx force:source:deploy:cancel [-w ] [-i ] [-u ] [--apiversion ] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`](#sfdx-forcesourcedeploycancel--w-minutes--i-id--u-string---apiversion-string---json---loglevel-tracedebuginfowarnerrorfataltracedebuginfowarnerrorfatal) -- [`sfdx force:source:deploy:report [-w ] [-i ] [--resultsdir ] [--coverageformatters ] [--junit] [-u ] [--apiversion ] [--verbose] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`](#sfdx-forcesourcedeployreport--w-minutes--i-id---resultsdir-directory---coverageformatters-array---junit--u-string---apiversion-string---verbose---json---loglevel-tracedebuginfowarnerrorfataltracedebuginfowarnerrorfatal) -- [`sfdx force:source:ignored:list [-p ] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`](#sfdx-forcesourceignoredlist--p-filepath---json---loglevel-tracedebuginfowarnerrorfataltracedebuginfowarnerrorfatal) -- [`sfdx force:source:manifest:create [-m ] [-p ] [-n | -t pre|post|destroy|package] [-c --fromorg ] [-o ] [--apiversion ] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`](#sfdx-forcesourcemanifestcreate--m-array--p-array--n-string---t-prepostdestroypackage--c-array---fromorg-string--o-string---apiversion-string---json---loglevel-tracedebuginfowarnerrorfataltracedebuginfowarnerrorfatal) -- [`sfdx force:source:pull [-f] [-w ] [-u ] [--apiversion ] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`](#sfdx-forcesourcepull--f--w-minutes--u-string---apiversion-string---json---loglevel-tracedebuginfowarnerrorfataltracedebuginfowarnerrorfatal) -- [`sfdx force:source:push [-f] [-w ] [-g] [-u ] [--apiversion ] [--quiet] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`](#sfdx-forcesourcepush--f--w-minutes--g--u-string---apiversion-string---quiet---json---loglevel-tracedebuginfowarnerrorfataltracedebuginfowarnerrorfatal) -- [`sfdx force:source:retrieve [-p | -x | -m ] [-w ] [-n ] [-f -t] [-u ] [-a ] [--verbose] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`](#sfdx-forcesourceretrieve--p-array---x-filepath---m-array--w-minutes--n-array--f--t--u-string--a-string---verbose---json---loglevel-tracedebuginfowarnerrorfataltracedebuginfowarnerrorfatal) -- [`sfdx force:source:status [-l | -r] [-u ] [--apiversion ] [--concise] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`](#sfdx-forcesourcestatus--l---r--u-string---apiversion-string---concise---json---loglevel-tracedebuginfowarnerrorfataltracedebuginfowarnerrorfatal) -- [`sfdx force:source:tracking:clear [-p] [-u ] [--apiversion ] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`](#sfdx-forcesourcetrackingclear--p--u-string---apiversion-string---json---loglevel-tracedebuginfowarnerrorfataltracedebuginfowarnerrorfatal) -- [`sfdx force:source:tracking:reset [-r ] [-p] [-u ] [--apiversion ] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`](#sfdx-forcesourcetrackingreset--r-integer--p--u-string---apiversion-string---json---loglevel-tracedebuginfowarnerrorfataltracedebuginfowarnerrorfatal) - -## `sfdx force:mdapi:beta:convert -r [-d ] [-p | -x | -m ] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]` - -convert metadata from the Metadata API format into the source format +- [`sfdx force:mdapi:deploy`](#sfdx-forcemdapideploy) +- [`sfdx force:mdapi:deploy:cancel`](#sfdx-forcemdapideploycancel) +- [`sfdx force:mdapi:deploy:report`](#sfdx-forcemdapideployreport) +- [`sfdx force:mdapi:retrieve`](#sfdx-forcemdapiretrieve) +- [`sfdx force:mdapi:retrieve:report`](#sfdx-forcemdapiretrievereport) +- [`sfdx force:source:deploy`](#sfdx-forcesourcedeploy) +- [`sfdx force:source:deploy:cancel`](#sfdx-forcesourcedeploycancel) +- [`sfdx force:source:deploy:report`](#sfdx-forcesourcedeployreport) +- [`sfdx force:source:pull`](#sfdx-forcesourcepull) +- [`sfdx force:source:push`](#sfdx-forcesourcepush) +- [`sfdx force:source:retrieve`](#sfdx-forcesourceretrieve) +- [`sfdx force:source:status`](#sfdx-forcesourcestatus) -``` -USAGE - $ sfdx force:mdapi:beta:convert -r [-d ] [-p | -x | -m ] [--json] [--loglevel - trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL] - -FLAGS - -d, --outputdir= the output directory to store the - source–formatted files - -m, --metadata= comma-separated list of metadata - component names to convert - -p, --metadatapath= comma-separated list of metadata - file paths to convert - -r, --rootdir= (required) the root directory - containing the Metadata - API–formatted metadata - -x, --manifest= file path to manifest (package.xml) - of metadata types to convert. - --json format output as json - --loglevel=(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL) [default: warn] logging level for - this command invocation - -DESCRIPTION - convert metadata from the Metadata API format into the source format - - Converts metadata retrieved via Metadata API into the source format used in Salesforce DX projects. - - To use Salesforce CLI to work with components that you retrieved via Metadata API, first convert your files from the - metadata format to the source format using "sfdx force:mdapi:convert". - - To convert files from the source format back to the metadata format, so that you can deploy them using "sfdx - force:mdapi:deploy", run "sfdx force:source:convert". - -ALIASES - $ sfdx force:mdapi:beta:convert - -EXAMPLES - $ sfdx force:mdapi:convert -r path/to/metadata +## `sfdx force:mdapi:deploy` - $ sfdx force:mdapi:convert -r path/to/metadata -d path/to/outputdir -``` - -## `sfdx force:mdapi:beta:deploy [-d ] [-w ] [-o] [-g] [-q | -l NoTestRun|RunSpecifiedTests|RunLocalTests|RunAllTestsInOrg | -r | -c] [-f ] [-s] [--soapdeploy] [--purgeondelete] [--resultsdir ] [--coverageformatters ] [--junit] [-u ] [--apiversion ] [--verbose] [--concise] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]` - -deploy metadata to an org using Metadata API +Deploy metadata to an org using Metadata API. ``` USAGE - $ sfdx force:mdapi:beta:deploy [-d ] [-w ] [-o] [-g] [-q | -l - NoTestRun|RunSpecifiedTests|RunLocalTests|RunAllTestsInOrg | -r | -c] [-f ] [-s] [--soapdeploy] - [--purgeondelete] [--resultsdir ] [--coverageformatters ] [--junit] [-u ] [--apiversion - ] [--verbose] [--concise] [--json] [--loglevel - trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL] + $ sfdx force:mdapi:deploy -u [--json] [--api-version ] [-d ] [-w ] [-o] [-g] [-q + | -l NoTestRun|RunSpecifiedTests|RunLocalTests|RunAllTestsInOrg | -r | -c] [--verbose] [-f ] [-s] + [--soapdeploy] [--purgeondelete] [--concise] [--resultsdir ] [--coverageformatters + clover|cobertura|html-spa|html|json|json-summary|lcovonly|none|teamcity|text|text-summary] [--junit] FLAGS -c, --checkonly - validate deploy but don’t save to the org + Validates the deployed metadata and runs all Apex tests, but prevents the deployment from being saved to the org. -d, --deploydir= - root of directory tree of files to deploy + Root of directory tree that contains the files you want to deploy. -f, --zipfile= - path to .zip file of metadata to deploy + Path to .zip file of metadata to deploy. -g, --ignorewarnings - whether a warning will allow a deployment to complete successfully + Ignore any warnings and don't roll back the deployment. - -l, --testlevel=(NoTestRun|RunSpecifiedTests|RunLocalTests|RunAllTestsInOrg) - deployment testing level + -l, --testlevel=