Skip to content

Commit e1583d1

Browse files
author
SF-CLI-BOT
committed
chore(release): 1.5.5 [ci skip]
1 parent 834fad8 commit e1583d1

File tree

4 files changed

+145
-15
lines changed

4 files changed

+145
-15
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
44

5+
### [1.5.5](https://github.com/salesforcecli/plugin-deploy-retrieve/compare/v1.5.4...v1.5.5) (2022-08-23)
6+
57
### [1.5.4](https://github.com/salesforcecli/plugin-deploy-retrieve/compare/v1.5.3...v1.5.4) (2022-08-15)
68

79
### Bug Fixes

README.md

Lines changed: 141 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -67,11 +67,13 @@ sf plugins
6767
- [`sf deploy`](#sf-deploy)
6868
- [`sf deploy metadata`](#sf-deploy-metadata)
6969
- [`sf deploy metadata cancel`](#sf-deploy-metadata-cancel)
70+
- [`sf deploy metadata preview`](#sf-deploy-metadata-preview)
7071
- [`sf deploy metadata quick`](#sf-deploy-metadata-quick)
7172
- [`sf deploy metadata report`](#sf-deploy-metadata-report)
7273
- [`sf deploy metadata resume`](#sf-deploy-metadata-resume)
7374
- [`sf deploy metadata validate`](#sf-deploy-metadata-validate)
7475
- [`sf retrieve metadata`](#sf-retrieve-metadata)
76+
- [`sf retrieve metadata preview`](#sf-retrieve-metadata-preview)
7577

7678
## `sf deploy`
7779

@@ -115,7 +117,7 @@ EXAMPLES
115117
$ sf deploy --interactive
116118
```
117119

118-
_See code: [src/commands/deploy.ts](https://github.com/salesforcecli/plugin-deploy-retrieve/blob/v1.5.3/src/commands/deploy.ts)_
120+
_See code: [src/commands/deploy.ts](https://github.com/salesforcecli/plugin-deploy-retrieve/blob/v1.5.4/src/commands/deploy.ts)_
119121

120122
## `sf deploy metadata`
121123

@@ -138,8 +140,7 @@ FLAGS
138140
-o, --target-org=<value> Login username or alias for the target org.
139141
-r, --ignore-errors Ignore any errors and don’t roll back deployment.
140142
-t, --tests=<value>... Apex tests to run when --test-level is RunSpecifiedTests.
141-
-w, --wait=<minutes> [default: 33 minutes] Number of minutes to wait for command to complete and display
142-
results.
143+
-w, --wait=<minutes> Number of minutes to wait for command to complete and display results.
143144
-x, --manifest=<value> Full file path for manifest (package.xml) of components to deploy.
144145
--async Run the command asynchronously.
145146
--concise Show concise output of the deploy result.
@@ -207,8 +208,8 @@ EXAMPLES
207208
FLAG DESCRIPTIONS
208209
-a, --api-version=<value> Target API version for the deploy.
209210
210-
Use this flag to override the default API version, which is the latest version supported the CLI, with the API
211-
version of your package.xml file.
211+
Use this flag to override the default API version with the API version of your package.xml file. The default API
212+
version is the latest version supported by the CLI.
212213
213214
-c, --ignore-conflicts Ignore conflicts and deploy local files, even if they overwrite changes in the org.
214215
@@ -346,6 +347,83 @@ FLAG DESCRIPTIONS
346347
deploy metadata report".
347348
```
348349

350+
## `sf deploy metadata preview`
351+
352+
Preview a deployment to see what will deploy to the org, the potential conflicts, and the ignored files.
353+
354+
```
355+
USAGE
356+
$ sf deploy metadata preview [--json] [-c] [-x <value> | -d <value> | -m <value>] [-o <value>]
357+
358+
FLAGS
359+
-c, --ignore-conflicts Ignore conflicts and deploy local files, even if they overwrite changes in the org.
360+
-d, --source-dir=<value>... Path to the local source files to preview.
361+
-m, --metadata=<value>... Metadata component names to preview.
362+
-o, --target-org=<value> Login username or alias for the target org.
363+
-x, --manifest=<value> Full file path for manifest (package.xml) of components to preview.
364+
365+
GLOBAL FLAGS
366+
--json Format output as json.
367+
368+
DESCRIPTION
369+
Preview a deployment to see what will deploy to the org, the potential conflicts, and the ignored files.
370+
371+
You must run this command from within a project.
372+
373+
The command outputs a table that describes what will happen if you run the "sf deploy metadata" command. The table
374+
lists the metadata components that will be deployed and deleted. The table also lists the current conflicts between
375+
files in your local project and components in the org. Finally, the table lists the files that won't be deployed
376+
because they're included in your .forceignore file.
377+
378+
If your org allows source tracking, then this command considers conflicts between the org and local. Some orgs, such
379+
as production orgs, never allow source tracking. Use the "--no-track-source" flag when you create a scratch or sandbox
380+
org to disable source tracking.
381+
382+
To preview the deployment of multiple metadata components, either set multiple --metadata <name> flags or a single
383+
--metadata flag with multiple names separated by spaces. Enclose names that contain spaces in one set of double
384+
quotes. The same syntax applies to --manifest and --source-dir.
385+
386+
EXAMPLES
387+
NOTE: The commands to preview a deployment and actually deploy it use similar flags. We provide a few preview examples here, but see the help for "sf deploy metadata" for more examples that you can adapt for previewing.
388+
389+
Preview the deployment of source files in a directory, such as force-app:
390+
391+
$ sf deploy metadata preview --source-dir force-app
392+
393+
Preview the deployment of all Apex classes:
394+
395+
$ sf deploy metadata preview --metadata ApexClass
396+
397+
Preview deployment of a specific Apex class:
398+
399+
$ sf deploy metadata preview --metadata ApexClass:MyApexClass
400+
401+
Preview deployment of all components listed in a manifest:
402+
403+
$ sf deploy metadata preview --manifest path/to/package.xml
404+
405+
FLAG DESCRIPTIONS
406+
-c, --ignore-conflicts Ignore conflicts and deploy local files, even if they overwrite changes in the org.
407+
408+
This flag applies only to orgs that allow source tracking. It has no effect on orgs that don't allow it, such as
409+
production orgs.
410+
411+
-d, --source-dir=<value>... Path to the local source files to preview.
412+
413+
The supplied path can be to a single file (in which case the operation is applied to only one file) or to a folder
414+
(in which case the operation is applied to all metadata types in the directory and its subdirectories).
415+
416+
If you specify this flag, don’t specify --metadata or --manifest.
417+
418+
-o, --target-org=<value> Login username or alias for the target org.
419+
420+
Overrides your default org.
421+
422+
-x, --manifest=<value> Full file path for manifest (package.xml) of components to preview.
423+
424+
All child components are included. If you specify this flag, don’t specify --metadata or --source-dir.
425+
```
426+
349427
## `sf deploy metadata quick`
350428

351429
Quickly deploy a validated deployment to an org.
@@ -358,8 +436,7 @@ FLAGS
358436
-i, --job-id=<value> Job ID of the deployment you want to quick deploy.
359437
-o, --target-org=<value> Login username or alias for the target org.
360438
-r, --use-most-recent Use the job ID of the most recently validated deployment.
361-
-w, --wait=<minutes> [default: 33 minutes] Number of minutes to wait for the command to complete and display
362-
results.
439+
-w, --wait=<minutes> Number of minutes to wait for the command to complete and display results.
363440
--async Run the command asynchronously.
364441
--concise Show concise output of the deploy result.
365442
--verbose Show verbose output of the deploy result.
@@ -548,8 +625,7 @@ FLAGS
548625
-m, --metadata=<value>... Metadata component names to validate for deployment.
549626
-o, --target-org=<value> Login username or alias for the target org.
550627
-t, --tests=<value>... Apex tests to run when --test-level is RunSpecifiedTests.
551-
-w, --wait=<minutes> [default: 33 minutes] Number of minutes to wait for the command to complete and display
552-
results.
628+
-w, --wait=<minutes> Number of minutes to wait for the command to complete and display results.
553629
-x, --manifest=<value> Full file path for manifest (package.xml) of components to validate for deployment.
554630
--async Run the command asynchronously.
555631
--concise Show concise output of the validation result.
@@ -600,8 +676,8 @@ EXAMPLES
600676
FLAG DESCRIPTIONS
601677
-a, --api-version=<value> Target API version for the validation.
602678
603-
Use this flag to override the default API version, which is the latest version supported the CLI, with the API
604-
version in your package.xml file.
679+
Use this flag to override the default API version with the API version of your package.xml file. The default API
680+
version is the latest version supported by the CLI.
605681
606682
-d, --source-dir=<value>... Path to the local source files to validate for deployment.
607683
@@ -667,8 +743,8 @@ FLAGS
667743
-m, --metadata=<value>... Metadata component names to retrieve.
668744
-n, --package-name=<value>... Package names to retrieve.
669745
-o, --target-org=<value> Login username or alias for the target org.
670-
-w, --wait=<value> [default: 33 minutes] Number of minutes to wait for the command to complete and display
671-
results to the terminal window.
746+
-w, --wait=<value> Number of minutes to wait for the command to complete and display results to the
747+
terminal window.
672748
-x, --manifest=<value> File path for the manifest (package.xml) that specifies the components to retrieve.
673749
674750
GLOBAL FLAGS
@@ -758,4 +834,56 @@ FLAG DESCRIPTIONS
758834
If you specify this parameter, don’t specify --metadata or --source-dir.
759835
```
760836

837+
## `sf retrieve metadata preview`
838+
839+
Preview a retrieval to see what will be retrieved from the org, the potential conflicts, and the ignored files.
840+
841+
```
842+
USAGE
843+
$ sf retrieve metadata preview [--json] [-c] [-o <value>]
844+
845+
FLAGS
846+
-c, --ignore-conflicts Ignore conflicts and preview the retrieve of remote components, even if they will overwrite
847+
local changes.
848+
-o, --target-org=<value> Login username or alias for the target org.
849+
850+
GLOBAL FLAGS
851+
--json Format output as json.
852+
853+
DESCRIPTION
854+
Preview a retrieval to see what will be retrieved from the org, the potential conflicts, and the ignored files.
855+
856+
You must run this command from within a project.
857+
858+
The command outputs a table that describes what will happen if you run the "sf retrieve metadata" command. The table
859+
lists the metadata components that will be retrieved and deleted. The table also lists the current conflicts between
860+
files in your local project and components in the org. Finally, the table lists the files that won't be retrieved
861+
because they're included in your .forceignore file.
862+
863+
If your org allows source tracking, then this command considers conflicts between the org and local. Some orgs, such
864+
as production orgs, never allow source tracking. Use the "--no-track-source" flag when you create a scratch or sandbox
865+
org to disable source tracking.
866+
867+
EXAMPLES
868+
Preview the retrieve of all changes from the org:
869+
870+
$ sf retrieve metadata preview
871+
872+
Preview the retrieve when ignoring any conflicts:
873+
874+
$ sf retrieve metadata preview --ignore-conflicts
875+
876+
FLAG DESCRIPTIONS
877+
-c, --ignore-conflicts
878+
879+
Ignore conflicts and preview the retrieve of remote components, even if they will overwrite local changes.
880+
881+
This flag applies only to orgs that allow source tracking. It has no effect on orgs that don't allow it, such as
882+
production orgs.
883+
884+
-o, --target-org=<value> Login username or alias for the target org.
885+
886+
Overrides your default org.
887+
```
888+
761889
<!-- commandsstop -->

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@salesforce/plugin-deploy-retrieve",
33
"description": "deploy and retrieve commands for sf",
4-
"version": "1.5.4",
4+
"version": "1.5.5",
55
"author": "Salesforce",
66
"bugs": "https://github.com/forcedotcom/cli/issues",
77
"dependencies": {

yarn.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -924,7 +924,7 @@
924924
is-wsl "^2.1.1"
925925
tslib "^2.3.1"
926926

927-
"@oclif/core@1.15.0", "@oclif/core@^1.0.8", "@oclif/core@^1.15.0", "@oclif/core@^1.2.1", "@oclif/core@^1.3.4", "@oclif/core@^1.3.6", "@oclif/core@^1.6.0", "@oclif/core@^1.6.3", "@oclif/core@^1.6.4", "@oclif/core@^1.7.0", "@oclif/core@^1.9.5", "@oclif/core@^1.9.9":
927+
"@oclif/core@^1.0.8", "@oclif/core@^1.15.0", "@oclif/core@^1.2.1", "@oclif/core@^1.3.4", "@oclif/core@^1.3.6", "@oclif/core@^1.6.0", "@oclif/core@^1.6.3", "@oclif/core@^1.6.4", "@oclif/core@^1.7.0", "@oclif/core@^1.9.5", "@oclif/core@^1.9.9":
928928
version "1.15.0"
929929
resolved "https://registry.yarnpkg.com/@oclif/core/-/core-1.15.0.tgz#af015520456568a362a3592656b845d973494ffe"
930930
integrity sha512-H+l0SybcYJiVPRXTu88TsEXNQZV9ZZ6k/xtiHbgE6LItPk77/st9HH4uI/IKK1nMOJS8KkxNmkLKyrcuiL7Bjw==

0 commit comments

Comments
 (0)