Skip to content

Commit d716542

Browse files
author
SF-CLI-BOT
committed
chore(release): 1.5.0 [ci skip]
1 parent 9dcc3e7 commit d716542

File tree

3 files changed

+74
-18
lines changed

3 files changed

+74
-18
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,13 @@
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.0](https://github.com/salesforcecli/plugin-source/compare/v1.4.3...v1.5.0) (2021-11-16)
6+
7+
8+
### Features
9+
10+
* add mdapi:deploy:cancel command, refactor base classes to support MDAPI and SOURCE stash keys ([#301](https://github.com/salesforcecli/plugin-source/issues/301)) ([9dcc3e7](https://github.com/salesforcecli/plugin-source/commit/9dcc3e7bc1be13d1dcb0df13b3f7710407f9e977))
11+
512
### [1.4.3](https://github.com/salesforcecli/plugin-source/compare/v1.4.2...v1.4.3) (2021-11-15)
613

714

README.md

Lines changed: 66 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ $ npm install -g @salesforce/plugin-source
8080
$ sfdx COMMAND
8181
running command...
8282
$ sfdx (-v|--version|version)
83-
@salesforce/plugin-source/1.4.2 linux-x64 node-v12.22.7
83+
@salesforce/plugin-source/1.4.3 linux-x64 node-v12.22.7
8484
$ sfdx --help [COMMAND]
8585
USAGE
8686
$ sfdx COMMAND
@@ -91,6 +91,7 @@ USAGE
9191
# Commands
9292

9393
<!-- commands -->
94+
* [`sfdx force:mdapi:deploy:cancel [-w <minutes>] [-i <id>] [-u <string>] [--apiversion <string>] [--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)
9495
* [`sfdx force:mdapi:describemetadata [-f <filepath>] [-u <string>] [-a <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`](#sfdx-forcemdapidescribemetadata--f-filepath--u-string--a-string---json---loglevel-tracedebuginfowarnerrorfataltracedebuginfowarnerrorfatal)
9596
* [`sfdx force:mdapi:listmetadata -m <string> [-f <filepath>] [--folder <string>] [-u <string>] [-a <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`](#sfdx-forcemdapilistmetadata--m-string--f-filepath---folder-string--u-string--a-string---json---loglevel-tracedebuginfowarnerrorfataltracedebuginfowarnerrorfatal)
9697
* [`sfdx force:source:beta:pull [-f] [-w <minutes>] [-u <string>] [--apiversion <string>] [--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)
@@ -107,6 +108,54 @@ USAGE
107108
* [`sfdx force:source:open -f <filepath> [-r] [-u <string>] [--apiversion <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`](#sfdx-forcesourceopen--f-filepath--r--u-string---apiversion-string---json---loglevel-tracedebuginfowarnerrorfataltracedebuginfowarnerrorfatal)
108109
* [`sfdx force:source:retrieve [-p <array> | -x <filepath> | -m <array>] [-w <minutes>] [-n <array>] [-u <string>] [-a <string>] [--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--u-string--a-string---verbose---json---loglevel-tracedebuginfowarnerrorfataltracedebuginfowarnerrorfatal)
109110

111+
## `sfdx force:mdapi:deploy:cancel [-w <minutes>] [-i <id>] [-u <string>] [--apiversion <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`
112+
113+
cancel a metadata deployment
114+
115+
```
116+
cancel a metadata deployment
117+
Use this command to cancel a specified asynchronous metadata deployment. You can also specify a wait time (in minutes) to check for updates to the canceled deploy status.
118+
119+
USAGE
120+
$ sfdx force:mdapi:deploy:cancel [-w <minutes>] [-i <id>] [-u <string>] [--apiversion <string>] [--json] [--loglevel
121+
trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]
122+
123+
OPTIONS
124+
-i, --jobid=jobid job ID of the deployment you want to
125+
cancel; defaults to your most recent
126+
CLI deployment if not specified
127+
128+
-u, --targetusername=targetusername username or alias for the target
129+
org; overrides default target org
130+
131+
-w, --wait=wait [default: 33 minutes] wait time for
132+
command to finish in minutes
133+
134+
--apiversion=apiversion override the api version used for
135+
api requests made by this command
136+
137+
--json format output as json
138+
139+
--loglevel=(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL) [default: warn] logging level for
140+
this command invocation
141+
142+
DESCRIPTION
143+
Use this command to cancel a specified asynchronous metadata deployment. You can also specify a wait time (in minutes)
144+
to check for updates to the canceled deploy status.
145+
146+
EXAMPLES
147+
Deploy a directory of files to the org
148+
$ sfdx force:mdapi:deploy -d <directory>
149+
Now cancel this deployment and wait two minutes
150+
$ sfdx force:mdapi:deploy:cancel -w 2
151+
If you have multiple deployments in progress and want to cancel a specific one, specify the job ID
152+
$ sfdx force:mdapi:deploy:cancel -i <jobid>
153+
Check the status of the cancel job
154+
$ sfdx force:mdapi:deploy:report
155+
```
156+
157+
_See code: [src/commands/force/mdapi/deploy/cancel.ts](https://github.com/salesforcecli/plugin-source/blob/v1.4.3/src/commands/force/mdapi/deploy/cancel.ts)_
158+
110159
## `sfdx force:mdapi:describemetadata [-f <filepath>] [-u <string>] [-a <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`
111160

112161
display details about the metadata types enabled for your org
@@ -149,7 +198,7 @@ EXAMPLES
149198
$ sfdx force:mdapi:describemetadata -u [email protected] -f /path/to/outputfilename.txt
150199
```
151200

152-
_See code: [src/commands/force/mdapi/describemetadata.ts](https://github.com/salesforcecli/plugin-source/blob/v1.4.2/src/commands/force/mdapi/describemetadata.ts)_
201+
_See code: [src/commands/force/mdapi/describemetadata.ts](https://github.com/salesforcecli/plugin-source/blob/v1.4.3/src/commands/force/mdapi/describemetadata.ts)_
153202

154203
## `sfdx force:mdapi:listmetadata -m <string> [-f <filepath>] [--folder <string>] [-u <string>] [-a <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`
155204

@@ -205,7 +254,7 @@ EXAMPLES
205254
$ sfdx force:mdapi:listmetadata -m CustomObject -u [email protected] -f /path/to/outputfilename.txt
206255
```
207256

208-
_See code: [src/commands/force/mdapi/listmetadata.ts](https://github.com/salesforcecli/plugin-source/blob/v1.4.2/src/commands/force/mdapi/listmetadata.ts)_
257+
_See code: [src/commands/force/mdapi/listmetadata.ts](https://github.com/salesforcecli/plugin-source/blob/v1.4.3/src/commands/force/mdapi/listmetadata.ts)_
209258

210259
## `sfdx force:source:beta:pull [-f] [-w <minutes>] [-u <string>] [--apiversion <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`
211260

@@ -240,7 +289,7 @@ OPTIONS
240289
[default: warn] logging level for this command invocation
241290
```
242291

243-
_See code: [src/commands/force/source/beta/pull.ts](https://github.com/salesforcecli/plugin-source/blob/v1.4.2/src/commands/force/source/beta/pull.ts)_
292+
_See code: [src/commands/force/source/beta/pull.ts](https://github.com/salesforcecli/plugin-source/blob/v1.4.3/src/commands/force/source/beta/pull.ts)_
244293

245294
## `sfdx force:source:beta:push [-f] [-w <minutes>] [-g] [-u <string>] [--apiversion <string>] [--quiet] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`
246295

@@ -281,7 +330,7 @@ OPTIONS
281330
minimize json and sdtout output on success
282331
```
283332

284-
_See code: [src/commands/force/source/beta/push.ts](https://github.com/salesforcecli/plugin-source/blob/v1.4.2/src/commands/force/source/beta/push.ts)_
333+
_See code: [src/commands/force/source/beta/push.ts](https://github.com/salesforcecli/plugin-source/blob/v1.4.3/src/commands/force/source/beta/push.ts)_
285334

286335
## `sfdx force:source:beta:status [-l | -r] [-u <string>] [--apiversion <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`
287336

@@ -319,7 +368,7 @@ EXAMPLES
319368
sfdx force:source:status -a -u [email protected] --json
320369
```
321370

322-
_See code: [src/commands/force/source/beta/status.ts](https://github.com/salesforcecli/plugin-source/blob/v1.4.2/src/commands/force/source/beta/status.ts)_
371+
_See code: [src/commands/force/source/beta/status.ts](https://github.com/salesforcecli/plugin-source/blob/v1.4.3/src/commands/force/source/beta/status.ts)_
323372

324373
## `sfdx force:source:beta:tracking:clear [-p] [-u <string>] [--apiversion <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`
325374

@@ -358,7 +407,7 @@ DESCRIPTION
358407
and remote files as changed, and any files with the same name are listed as conflicts.
359408
```
360409

361-
_See code: [src/commands/force/source/beta/tracking/clear.ts](https://github.com/salesforcecli/plugin-source/blob/v1.4.2/src/commands/force/source/beta/tracking/clear.ts)_
410+
_See code: [src/commands/force/source/beta/tracking/clear.ts](https://github.com/salesforcecli/plugin-source/blob/v1.4.3/src/commands/force/source/beta/tracking/clear.ts)_
362411

363412
## `sfdx force:source:beta:tracking:reset [-r <integer>] [-p] [-u <string>] [--apiversion <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`
364413

@@ -408,7 +457,7 @@ DESCRIPTION
408457
$ sfdx force:data:soql:query -q "SELECT MemberName, MemberType, RevisionCounter FROM SourceMember" -t
409458
```
410459

411-
_See code: [src/commands/force/source/beta/tracking/reset.ts](https://github.com/salesforcecli/plugin-source/blob/v1.4.2/src/commands/force/source/beta/tracking/reset.ts)_
460+
_See code: [src/commands/force/source/beta/tracking/reset.ts](https://github.com/salesforcecli/plugin-source/blob/v1.4.3/src/commands/force/source/beta/tracking/reset.ts)_
412461

413462
## `sfdx force:source:convert [-r <directory>] [-d <directory>] [-n <string>] [-p <array> | -x <string> | -m <array>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`
414463

@@ -430,7 +479,7 @@ USAGE
430479
431480
OPTIONS
432481
-d, --outputdir=outputdir [default:
433-
metadataPackage_1637007302184]
482+
metadataPackage_1637100105638]
434483
output directory to store the
435484
Metadata API–formatted files in
436485
@@ -468,7 +517,7 @@ EXAMPLES
468517
$ sfdx force:source:convert -r path/to/source -d path/to/outputdir -n 'My Package'
469518
```
470519

471-
_See code: [src/commands/force/source/convert.ts](https://github.com/salesforcecli/plugin-source/blob/v1.4.2/src/commands/force/source/convert.ts)_
520+
_See code: [src/commands/force/source/convert.ts](https://github.com/salesforcecli/plugin-source/blob/v1.4.3/src/commands/force/source/convert.ts)_
472521

473522
## `sfdx `
474523

@@ -524,7 +573,7 @@ EXAMPLES
524573
$ sfdx force:source:delete -p path/to/source
525574
```
526575

527-
_See code: [src/commands/force/source/delete.ts](https://github.com/salesforcecli/plugin-source/blob/v1.4.2/src/commands/force/source/delete.ts)_
576+
_See code: [src/commands/force/source/delete.ts](https://github.com/salesforcecli/plugin-source/blob/v1.4.3/src/commands/force/source/delete.ts)_
528577

529578
## `sfdx force:source:deploy [--soapdeploy] [-w <minutes>] [-q <id> | -x <filepath> | -m <array> | -p <array> | -c | -l NoTestRun|RunSpecifiedTests|RunLocalTests|RunAllTestsInOrg | -r <array> | -o | -g] [--predestructivechanges <filepath> ] [--postdestructivechanges <filepath> ] [-u <string>] [--apiversion <string>] [--verbose] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`
530579

@@ -653,7 +702,7 @@ EXAMPLES
653702
$ sfdx force:source:deploy --manifest package.xml --postdestructivechanges destructiveChangesPost.xml
654703
```
655704

656-
_See code: [src/commands/force/source/deploy.ts](https://github.com/salesforcecli/plugin-source/blob/v1.4.2/src/commands/force/source/deploy.ts)_
705+
_See code: [src/commands/force/source/deploy.ts](https://github.com/salesforcecli/plugin-source/blob/v1.4.3/src/commands/force/source/deploy.ts)_
657706

658707
## `sfdx force:source:deploy:cancel [-w <minutes>] [-i <id>] [-u <string>] [--apiversion <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`
659708

@@ -708,7 +757,7 @@ EXAMPLES
708757
$ sfdx force:source:deploy:report
709758
```
710759

711-
_See code: [src/commands/force/source/deploy/cancel.ts](https://github.com/salesforcecli/plugin-source/blob/v1.4.2/src/commands/force/source/deploy/cancel.ts)_
760+
_See code: [src/commands/force/source/deploy/cancel.ts](https://github.com/salesforcecli/plugin-source/blob/v1.4.3/src/commands/force/source/deploy/cancel.ts)_
712761

713762
## `sfdx force:source:deploy:report [-w <minutes>] [-i <id>] [-u <string>] [--apiversion <string>] [--verbose] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`
714763

@@ -758,7 +807,7 @@ EXAMPLES
758807
$ sfdx force:source:deploy:report
759808
```
760809

761-
_See code: [src/commands/force/source/deploy/report.ts](https://github.com/salesforcecli/plugin-source/blob/v1.4.2/src/commands/force/source/deploy/report.ts)_
810+
_See code: [src/commands/force/source/deploy/report.ts](https://github.com/salesforcecli/plugin-source/blob/v1.4.3/src/commands/force/source/deploy/report.ts)_
762811

763812
## `sfdx force:source:manifest:create [-m <array> | -p <array>] [-n <string> | -t pre|post|destroy|package] [-o <string>] [--apiversion <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`
764813

@@ -837,7 +886,7 @@ EXAMPLES
837886
$ sfdx force:source:manifest:create --sourcepath force-app --manifestname myNewManifest
838887
```
839888

840-
_See code: [src/commands/force/source/manifest/create.ts](https://github.com/salesforcecli/plugin-source/blob/v1.4.2/src/commands/force/source/manifest/create.ts)_
889+
_See code: [src/commands/force/source/manifest/create.ts](https://github.com/salesforcecli/plugin-source/blob/v1.4.3/src/commands/force/source/manifest/create.ts)_
841890

842891
## `sfdx force:source:open -f <filepath> [-r] [-u <string>] [--apiversion <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`
843892

@@ -887,7 +936,7 @@ EXAMPLES
887936
$ sfdx force:source:open -f path/to/source -u [email protected]
888937
```
889938

890-
_See code: [src/commands/force/source/open.ts](https://github.com/salesforcecli/plugin-source/blob/v1.4.2/src/commands/force/source/open.ts)_
939+
_See code: [src/commands/force/source/open.ts](https://github.com/salesforcecli/plugin-source/blob/v1.4.3/src/commands/force/source/open.ts)_
891940

892941
## `sfdx force:source:retrieve [-p <array> | -x <filepath> | -m <array>] [-w <minutes>] [-n <array>] [-u <string>] [-a <string>] [--verbose] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`
893942

@@ -975,5 +1024,5 @@ EXAMPLES
9751024
$ sfdx force:source:retrieve -n MyPackageName -x path/to/package.xml
9761025
```
9771026

978-
_See code: [src/commands/force/source/retrieve.ts](https://github.com/salesforcecli/plugin-source/blob/v1.4.2/src/commands/force/source/retrieve.ts)_
1027+
_See code: [src/commands/force/source/retrieve.ts](https://github.com/salesforcecli/plugin-source/blob/v1.4.3/src/commands/force/source/retrieve.ts)_
9791028
<!-- 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-source",
33
"description": "Commands to interact with source formatted metadata",
4-
"version": "1.4.3",
4+
"version": "1.5.0",
55
"author": "Salesforce",
66
"bugs": "https://github.com/forcedotcom/cli/issues",
77
"dependencies": {

0 commit comments

Comments
 (0)