@salesforce/plugin-release-management 2.0.8 → 2.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -2,6 +2,27 @@
2
2
 
3
3
  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.
4
4
 
5
+ ### [2.2.1](https://github.com/salesforcecli/plugin-release-management/compare/v2.2.0...v2.2.1) (2021-10-05)
6
+
7
+
8
+ ### Bug Fixes
9
+
10
+ * test that sf is installed alongside sfdx ([#314](https://github.com/salesforcecli/plugin-release-management/issues/314)) ([47686c0](https://github.com/salesforcecli/plugin-release-management/commit/47686c0ec05ff241ac166e4af8fe3397a9ae6ea1))
11
+
12
+ ## [2.2.0](https://github.com/salesforcecli/plugin-release-management/compare/v2.1.0...v2.2.0) (2021-10-05)
13
+
14
+
15
+ ### Features
16
+
17
+ * add cli:install:test command ([#309](https://github.com/salesforcecli/plugin-release-management/issues/309)) ([c83d53b](https://github.com/salesforcecli/plugin-release-management/commit/c83d53b3ab73816c1f35428533281eb7fab74da7))
18
+
19
+ ## [2.1.0](https://github.com/salesforcecli/plugin-release-management/compare/v2.0.8...v2.1.0) (2021-09-17)
20
+
21
+
22
+ ### Features
23
+
24
+ * add --skip-ci flag to automerge ([#289](https://github.com/salesforcecli/plugin-release-management/issues/289)) ([d1b12ed](https://github.com/salesforcecli/plugin-release-management/commit/d1b12edb07058da35361e457f6296a021d7edb63))
25
+
5
26
  ### [2.0.8](https://github.com/salesforcecli/plugin-release-management/compare/v2.0.7...v2.0.8) (2021-09-17)
6
27
 
7
28
 
package/README.md CHANGED
@@ -101,10 +101,11 @@ sfdx plugins
101
101
  <!-- commands -->
102
102
  * [`sfdx circleci [-t plugin|library|orb] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`](#sfdx-circleci--t-pluginlibraryorb---json---loglevel-tracedebuginfowarnerrorfataltracedebuginfowarnerrorfatal)
103
103
  * [`sfdx circleci:envvar:update -e <string> [-s <string>] [--dryrun] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`](#sfdx-circlecienvvarupdate--e-string--s-string---dryrun---json---loglevel-tracedebuginfowarnerrorfataltracedebuginfowarnerrorfatal)
104
+ * [`sfdx cli:install:test -c <string> -m <string> [--channel <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`](#sfdx-cliinstalltest--c-string--m-string---channel-string---json---loglevel-tracedebuginfowarnerrorfataltracedebuginfowarnerrorfatal)
104
105
  * [`sfdx cli:tarballs:prepare [-d] [-t] [--verbose] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`](#sfdx-clitarballsprepare--d--t---verbose---json---loglevel-tracedebuginfowarnerrorfataltracedebuginfowarnerrorfatal)
105
106
  * [`sfdx cli:tarballs:verify [-c sf|sfdx] [-w <number>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`](#sfdx-clitarballsverify--c-sfsfdx--w-number---json---loglevel-tracedebuginfowarnerrorfataltracedebuginfowarnerrorfatal)
106
107
  * [`sfdx cli:versions:inspect -c <string> -l <string> --cli sf|sfdx [-d <string>] [-s] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`](#sfdx-cliversionsinspect--c-string--l-string---cli-sfsfdx--d-string--s---json---loglevel-tracedebuginfowarnerrorfataltracedebuginfowarnerrorfatal)
107
- * [`sfdx dependabot:automerge -m major|minor|patch [-r <string> -o <string>] [-d] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`](#sfdx-dependabotautomerge--m-majorminorpatch--r-string--o-string--d---json---loglevel-tracedebuginfowarnerrorfataltracedebuginfowarnerrorfatal)
108
+ * [`sfdx dependabot:automerge -m major|minor|patch [-r <string> -o <string>] [-d] [-s] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`](#sfdx-dependabotautomerge--m-majorminorpatch--r-string--o-string--d--s---json---loglevel-tracedebuginfowarnerrorfataltracedebuginfowarnerrorfatal)
108
109
  * [`sfdx dependabot:consolidate -m major|minor|patch -b <string> -t <string> [--ignore <array>] [-d] [--no-pr] [-r <string> -o <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`](#sfdx-dependabotconsolidate--m-majorminorpatch--b-string--t-string---ignore-array--d---no-pr--r-string--o-string---json---loglevel-tracedebuginfowarnerrorfataltracedebuginfowarnerrorfatal)
109
110
  * [`sfdx npm:dependencies:pin [-d] [-t <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`](#sfdx-npmdependenciespin--d--t-string---json---loglevel-tracedebuginfowarnerrorfataltracedebuginfowarnerrorfatal)
110
111
  * [`sfdx npm:lerna:release [-d] [-s <array>] [-t <string>] [-a <string>] [--install] [--githubrelease] [--verify] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`](#sfdx-npmlernarelease--d--s-array--t-string--a-string---install---githubrelease---verify---json---loglevel-tracedebuginfowarnerrorfataltracedebuginfowarnerrorfatal)
@@ -135,7 +136,7 @@ EXAMPLE
135
136
  sfdx circleci -t plugin
136
137
  ```
137
138
 
138
- _See code: [src/commands/circleci/index.ts](https://github.com/salesforcecli/plugin-release-management/blob/v2.0.7/src/commands/circleci/index.ts)_
139
+ _See code: [src/commands/circleci/index.ts](https://github.com/salesforcecli/plugin-release-management/blob/v2.2.0/src/commands/circleci/index.ts)_
139
140
 
140
141
  ## `sfdx circleci:envvar:update -e <string> [-s <string>] [--dryrun] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`
141
142
 
@@ -172,7 +173,40 @@ EXAMPLES
172
173
  sfdx circleci -t plugin | sfdx circleci:envvar:update -e 'MY_ENV_VAR' -e 'MY_OTHER_ENV_VAR'
173
174
  ```
174
175
 
175
- _See code: [src/commands/circleci/envvar/update.ts](https://github.com/salesforcecli/plugin-release-management/blob/v2.0.7/src/commands/circleci/envvar/update.ts)_
176
+ _See code: [src/commands/circleci/envvar/update.ts](https://github.com/salesforcecli/plugin-release-management/blob/v2.2.0/src/commands/circleci/envvar/update.ts)_
177
+
178
+ ## `sfdx cli:install:test -c <string> -m <string> [--channel <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`
179
+
180
+ install sf or sfdx
181
+
182
+ ```
183
+ USAGE
184
+ $ sfdx cli:install:test -c <string> -m <string> [--channel <string>] [--json] [--loglevel
185
+ trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]
186
+
187
+ OPTIONS
188
+ -c, --cli=sf|sfdx (required) the cli to install
189
+
190
+ -m, --method=installer|npm|tarball (required) the installation method
191
+ to use
192
+
193
+ --channel=stable|stable-rc [default: stable] the channel to
194
+ install from
195
+
196
+ --json format output as json
197
+
198
+ --loglevel=(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL) [default: warn] logging level for
199
+ this command invocation
200
+
201
+ EXAMPLES
202
+ sfdx cli:install:test --cli sfdx --method installer
203
+ sfdx cli:install:test --cli sfdx --method npm
204
+ sfdx cli:install:test --cli sfdx --method tarball
205
+ sfdx cli:install:test --cli sf --method tarball
206
+ sfdx cli:install:test --cli sf --method tarball --channel stable-rc
207
+ ```
208
+
209
+ _See code: [src/commands/cli/install/test.ts](https://github.com/salesforcecli/plugin-release-management/blob/v2.2.0/src/commands/cli/install/test.ts)_
176
210
 
177
211
  ## `sfdx cli:tarballs:prepare [-d] [-t] [--verbose] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`
178
212
 
@@ -201,7 +235,7 @@ EXAMPLE
201
235
  sfdx cli:tarballs:prepare
202
236
  ```
203
237
 
204
- _See code: [src/commands/cli/tarballs/prepare.ts](https://github.com/salesforcecli/plugin-release-management/blob/v2.0.7/src/commands/cli/tarballs/prepare.ts)_
238
+ _See code: [src/commands/cli/tarballs/prepare.ts](https://github.com/salesforcecli/plugin-release-management/blob/v2.2.0/src/commands/cli/tarballs/prepare.ts)_
205
239
 
206
240
  ## `sfdx cli:tarballs:verify [-c sf|sfdx] [-w <number>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`
207
241
 
@@ -230,7 +264,7 @@ EXAMPLES
230
264
  sfdx cli:tarballs:verify --cli sf
231
265
  ```
232
266
 
233
- _See code: [src/commands/cli/tarballs/verify.ts](https://github.com/salesforcecli/plugin-release-management/blob/v2.0.7/src/commands/cli/tarballs/verify.ts)_
267
+ _See code: [src/commands/cli/tarballs/verify.ts](https://github.com/salesforcecli/plugin-release-management/blob/v2.2.0/src/commands/cli/tarballs/verify.ts)_
234
268
 
235
269
  ## `sfdx cli:versions:inspect -c <string> -l <string> --cli sf|sfdx [-d <string>] [-s] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`
236
270
 
@@ -278,15 +312,15 @@ EXAMPLES
278
312
  sfdx cli:versions:inspect -l npm -c latest -d chalk -s
279
313
  ```
280
314
 
281
- _See code: [src/commands/cli/versions/inspect.ts](https://github.com/salesforcecli/plugin-release-management/blob/v2.0.7/src/commands/cli/versions/inspect.ts)_
315
+ _See code: [src/commands/cli/versions/inspect.ts](https://github.com/salesforcecli/plugin-release-management/blob/v2.2.0/src/commands/cli/versions/inspect.ts)_
282
316
 
283
- ## `sfdx dependabot:automerge -m major|minor|patch [-r <string> -o <string>] [-d] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`
317
+ ## `sfdx dependabot:automerge -m major|minor|patch [-r <string> -o <string>] [-d] [-s] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`
284
318
 
285
319
  automatically merge one green, mergeable PR up to the specified maximum bump type
286
320
 
287
321
  ```
288
322
  USAGE
289
- $ sfdx dependabot:automerge -m major|minor|patch [-r <string> -o <string>] [-d] [--json] [--loglevel
323
+ $ sfdx dependabot:automerge -m major|minor|patch [-r <string> -o <string>] [-d] [-s] [--json] [--loglevel
290
324
  trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]
291
325
 
292
326
  OPTIONS
@@ -306,6 +340,9 @@ OPTIONS
306
340
  the repository specified in the
307
341
  package.json
308
342
 
343
+ -s, --skip-ci add [skip ci] to the merge commit
344
+ title
345
+
309
346
  --json format output as json
310
347
 
311
348
  --loglevel=(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL) [default: warn] logging level for
@@ -317,7 +354,7 @@ EXAMPLES
317
354
  sfdx dependabot:automerge --max-version-bump major
318
355
  ```
319
356
 
320
- _See code: [src/commands/dependabot/automerge.ts](https://github.com/salesforcecli/plugin-release-management/blob/v2.0.7/src/commands/dependabot/automerge.ts)_
357
+ _See code: [src/commands/dependabot/automerge.ts](https://github.com/salesforcecli/plugin-release-management/blob/v2.2.0/src/commands/dependabot/automerge.ts)_
321
358
 
322
359
  ## `sfdx dependabot:consolidate -m major|minor|patch -b <string> -t <string> [--ignore <array>] [-d] [--no-pr] [-r <string> -o <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`
323
360
 
@@ -368,7 +405,7 @@ EXAMPLES
368
405
  sfdx dependabot:consolidate --max-version-bump major
369
406
  ```
370
407
 
371
- _See code: [src/commands/dependabot/consolidate.ts](https://github.com/salesforcecli/plugin-release-management/blob/v2.0.7/src/commands/dependabot/consolidate.ts)_
408
+ _See code: [src/commands/dependabot/consolidate.ts](https://github.com/salesforcecli/plugin-release-management/blob/v2.2.0/src/commands/dependabot/consolidate.ts)_
372
409
 
373
410
  ## `sfdx npm:dependencies:pin [-d] [-t <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`
374
411
 
@@ -393,7 +430,7 @@ OPTIONS
393
430
  this command invocation
394
431
  ```
395
432
 
396
- _See code: [src/commands/npm/dependencies/pin.ts](https://github.com/salesforcecli/plugin-release-management/blob/v2.0.7/src/commands/npm/dependencies/pin.ts)_
433
+ _See code: [src/commands/npm/dependencies/pin.ts](https://github.com/salesforcecli/plugin-release-management/blob/v2.2.0/src/commands/npm/dependencies/pin.ts)_
397
434
 
398
435
  ## `sfdx npm:lerna:release [-d] [-s <array>] [-t <string>] [-a <string>] [--install] [--githubrelease] [--verify] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`
399
436
 
@@ -433,7 +470,7 @@ OPTIONS
433
470
  after publish and digital signature
434
471
  ```
435
472
 
436
- _See code: [src/commands/npm/lerna/release.ts](https://github.com/salesforcecli/plugin-release-management/blob/v2.0.7/src/commands/npm/lerna/release.ts)_
473
+ _See code: [src/commands/npm/lerna/release.ts](https://github.com/salesforcecli/plugin-release-management/blob/v2.2.0/src/commands/npm/lerna/release.ts)_
437
474
 
438
475
  ## `sfdx npm:package:promote -c <string> [-d] [-t <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`
439
476
 
@@ -462,7 +499,7 @@ EXAMPLE
462
499
  sfdx npm:package:promote --candidate latest-rc --target latest
463
500
  ```
464
501
 
465
- _See code: [src/commands/npm/package/promote.ts](https://github.com/salesforcecli/plugin-release-management/blob/v2.0.7/src/commands/npm/package/promote.ts)_
502
+ _See code: [src/commands/npm/package/promote.ts](https://github.com/salesforcecli/plugin-release-management/blob/v2.2.0/src/commands/npm/package/promote.ts)_
466
503
 
467
504
  ## `sfdx npm:package:release [-d] [-s] [-t <string>] [-a <string>] [--install] [--prerelease <string>] [--verify] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`
468
505
 
@@ -503,7 +540,7 @@ OPTIONS
503
540
  after publish and digital signature
504
541
  ```
505
542
 
506
- _See code: [src/commands/npm/package/release.ts](https://github.com/salesforcecli/plugin-release-management/blob/v2.0.7/src/commands/npm/package/release.ts)_
543
+ _See code: [src/commands/npm/package/release.ts](https://github.com/salesforcecli/plugin-release-management/blob/v2.2.0/src/commands/npm/package/release.ts)_
507
544
 
508
545
  ## `sfdx npm:release:validate [--verbose] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`
509
546
 
@@ -524,7 +561,7 @@ OPTIONS
524
561
  (only works with --json flag)
525
562
  ```
526
563
 
527
- _See code: [src/commands/npm/release/validate.ts](https://github.com/salesforcecli/plugin-release-management/blob/v2.0.7/src/commands/npm/release/validate.ts)_
564
+ _See code: [src/commands/npm/release/validate.ts](https://github.com/salesforcecli/plugin-release-management/blob/v2.2.0/src/commands/npm/release/validate.ts)_
528
565
 
529
566
  ## `sfdx plugins:trust:verify -n <string> [-r <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`
530
567
 
@@ -597,7 +634,7 @@ EXAMPLES
597
634
  sfdx repositories --json | jq -r '.result[] | select(.name=="sfdx-core") | .packages[] | .url
598
635
  ```
599
636
 
600
- _See code: [src/commands/repositories/index.ts](https://github.com/salesforcecli/plugin-release-management/blob/v2.0.7/src/commands/repositories/index.ts)_
637
+ _See code: [src/commands/repositories/index.ts](https://github.com/salesforcecli/plugin-release-management/blob/v2.2.0/src/commands/repositories/index.ts)_
601
638
 
602
639
  ## `sfdx typescript:update [-v <string>] [-t <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`
603
640
 
@@ -624,5 +661,5 @@ OPTIONS
624
661
  this command invocation
625
662
  ```
626
663
 
627
- _See code: [src/commands/typescript/update.ts](https://github.com/salesforcecli/plugin-release-management/blob/v2.0.7/src/commands/typescript/update.ts)_
664
+ _See code: [src/commands/typescript/update.ts](https://github.com/salesforcecli/plugin-release-management/blob/v2.2.0/src/commands/typescript/update.ts)_
628
665
  <!-- commandsstop -->
@@ -0,0 +1,18 @@
1
+ import { FlagsConfig, SfdxCommand } from '@salesforce/command';
2
+ declare enum CLI {
3
+ SF = "sf",
4
+ SFDX = "sfdx"
5
+ }
6
+ export declare type Results = Record<string, Record<CLI, boolean>>;
7
+ export declare type ServiceAvailability = {
8
+ service: string;
9
+ available: boolean;
10
+ };
11
+ export default class Test extends SfdxCommand {
12
+ static readonly description: string;
13
+ static readonly examples: string[];
14
+ static readonly flagsConfig: FlagsConfig;
15
+ run(): Promise<Results>;
16
+ private makeWorkingDir;
17
+ }
18
+ export {};
@@ -0,0 +1,426 @@
1
+ "use strict";
2
+ /*
3
+ * Copyright (c) 2020, salesforce.com, inc.
4
+ * All rights reserved.
5
+ * Licensed under the BSD 3-Clause license.
6
+ * For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
7
+ */
8
+ Object.defineProperty(exports, "__esModule", { value: true });
9
+ const path = require("path");
10
+ const os = require("os");
11
+ const command_1 = require("@salesforce/command");
12
+ const core_1 = require("@salesforce/core");
13
+ const ts_types_1 = require("@salesforce/ts-types");
14
+ const got_1 = require("got");
15
+ const shelljs_1 = require("shelljs");
16
+ const chalk = require("chalk");
17
+ core_1.Messages.importMessagesDirectory(__dirname);
18
+ const messages = core_1.Messages.loadMessages('@salesforce/plugin-release-management', 'cli.install');
19
+ var CLI;
20
+ (function (CLI) {
21
+ CLI["SF"] = "sf";
22
+ CLI["SFDX"] = "sfdx";
23
+ })(CLI || (CLI = {}));
24
+ var Channel;
25
+ (function (Channel) {
26
+ Channel["STABLE"] = "stable";
27
+ Channel["STABLE_RC"] = "stable-rc";
28
+ })(Channel || (Channel = {}));
29
+ var Method;
30
+ (function (Method) {
31
+ let Type;
32
+ (function (Type) {
33
+ Type["INSTALLER"] = "installer";
34
+ Type["NPM"] = "npm";
35
+ Type["TARBALL"] = "tarball";
36
+ })(Type = Method.Type || (Method.Type = {}));
37
+ class Base {
38
+ constructor(options, ux) {
39
+ this.options = options;
40
+ this.ux = ux;
41
+ }
42
+ async execute() {
43
+ const { service, available } = await this.ping();
44
+ if (!available) {
45
+ throw new Error(`${service} is not currently available. Unable to run installation tests...`);
46
+ }
47
+ switch (process.platform) {
48
+ case 'darwin': {
49
+ return this.darwin();
50
+ }
51
+ case 'win32': {
52
+ return this.win32();
53
+ }
54
+ case 'linux': {
55
+ return this.linux();
56
+ }
57
+ default:
58
+ break;
59
+ }
60
+ return {};
61
+ }
62
+ async ping() {
63
+ return Promise.resolve({ available: true, service: 'Service' });
64
+ }
65
+ logResult(cli, success) {
66
+ const msg = success ? chalk.green('true') : chalk.red('false');
67
+ this.ux.log(`${chalk.bold(`${cli} Success`)}: ${msg}`);
68
+ }
69
+ getTargets() {
70
+ return Base.TEST_TARGETS[this.options.cli];
71
+ }
72
+ }
73
+ Base.TEST_TARGETS = {
74
+ [CLI.SF]: [CLI.SF],
75
+ [CLI.SFDX]: [CLI.SFDX, CLI.SF],
76
+ };
77
+ Method.Base = Base;
78
+ })(Method || (Method = {}));
79
+ class AmazonS3 {
80
+ constructor(cli, channel, ux) {
81
+ this.ux = ux;
82
+ this.directory = `https://developer.salesforce.com/media/salesforce-cli/${cli}/channels/${channel}`;
83
+ }
84
+ async ping() {
85
+ const { statusCode } = await got_1.default.get(AmazonS3.STATUS_URL);
86
+ return { service: 'Amazon S3', available: statusCode >= 200 && statusCode < 300 };
87
+ }
88
+ async download(url, location) {
89
+ const downloadStream = got_1.default.stream(url);
90
+ const fileWriterStream = core_1.fs.createWriteStream(location);
91
+ return new Promise((resolve) => {
92
+ downloadStream.on('error', (error) => {
93
+ this.ux.error(`Download failed: ${error.message}`);
94
+ });
95
+ fileWriterStream
96
+ .on('error', (error) => {
97
+ this.ux.stopSpinner('Failed');
98
+ this.ux.error(`Could not write file to system: ${error.message}`);
99
+ })
100
+ .on('finish', () => {
101
+ this.ux.stopSpinner();
102
+ resolve();
103
+ });
104
+ this.ux.startSpinner(`Downloading ${chalk.cyan(url)}`);
105
+ downloadStream.pipe(fileWriterStream);
106
+ });
107
+ }
108
+ }
109
+ AmazonS3.STATUS_URL = 'https://s3.amazonaws.com';
110
+ class Tarball extends Method.Base {
111
+ constructor(options, ux) {
112
+ super(options, ux);
113
+ this.options = options;
114
+ this.ux = ux;
115
+ this.paths = {
116
+ darwin: ['x64.tar.gz', 'x64.tar.xz'],
117
+ win32: [
118
+ 'x64.tar.gz',
119
+ 'x86.tar.gz',
120
+ // .xz is not supported by powershell's tar command
121
+ // 'x64.tar.xz',
122
+ // 'x86.tar.xz'
123
+ ],
124
+ linux: ['x64.tar.gz', 'x64.tar.xz'],
125
+ 'linux-arm': ['arm.tar.gz', 'arm.tar.xz'],
126
+ };
127
+ this.s3 = new AmazonS3(options.cli, options.channel, ux);
128
+ }
129
+ async darwin() {
130
+ return this.installAndTest('darwin');
131
+ }
132
+ async win32() {
133
+ return this.installAndTest('win32');
134
+ }
135
+ async linux() {
136
+ return this.installAndTest('linux');
137
+ }
138
+ async ping() {
139
+ return this.s3.ping();
140
+ }
141
+ async installAndTest(platform) {
142
+ const tarballs = this.getTarballs(platform);
143
+ const results = {};
144
+ for (const [tarball, location] of Object.entries(tarballs)) {
145
+ try {
146
+ await this.s3.download(tarball, location);
147
+ const extracted = await this.extract(location);
148
+ const testResults = this.test(extracted);
149
+ for (const [cli, success] of Object.entries(testResults)) {
150
+ this.logResult(cli, success);
151
+ }
152
+ results[tarball] = testResults;
153
+ }
154
+ catch {
155
+ for (const cli of this.getTargets()) {
156
+ results[tarball][cli] = false;
157
+ }
158
+ }
159
+ this.ux.log();
160
+ }
161
+ return results;
162
+ }
163
+ getTarballs(platform) {
164
+ const paths = platform === 'linux' && os.arch().includes('arm') ? this.paths['linux-arm'] : this.paths[platform];
165
+ const s3Tarballs = paths.map((p) => {
166
+ return `${this.s3.directory}/${this.options.cli}-${platform}-${p}`;
167
+ });
168
+ const tarballs = {};
169
+ for (const tarball of s3Tarballs) {
170
+ const name = path.basename(tarball);
171
+ const location = path.join(this.options.directory, name);
172
+ tarballs[tarball] = location;
173
+ }
174
+ return tarballs;
175
+ }
176
+ async extract(file) {
177
+ const dir = path.join(this.options.directory, path.basename(file).replace(/./g, '-'));
178
+ await core_1.fs.mkdirp(dir);
179
+ return new Promise((resolve, reject) => {
180
+ this.ux.startSpinner(`Unpacking ${chalk.cyan(path.basename(file))}`);
181
+ const cmd = process.platform === 'win32'
182
+ ? `tar -xf ${file} -C ${dir} --strip-components 1 --exclude node_modules/.bin`
183
+ : `tar -xf ${file} -C ${dir} --strip-components 1`;
184
+ const opts = process.platform === 'win32'
185
+ ? { silent: true, async: true, shell: 'powershell.exe' }
186
+ : { silent: true, async: true };
187
+ shelljs_1.exec(cmd, opts, (code, stdout, stderr) => {
188
+ if (code === 0) {
189
+ this.ux.stopSpinner();
190
+ resolve(dir);
191
+ }
192
+ else {
193
+ this.ux.stopSpinner('Failed');
194
+ this.ux.log('code:', code.toString());
195
+ this.ux.log('stdout:', stdout);
196
+ this.ux.log('stderr:', stderr);
197
+ reject();
198
+ }
199
+ });
200
+ });
201
+ }
202
+ test(directory) {
203
+ var _a;
204
+ const results = {};
205
+ for (const cli of this.getTargets()) {
206
+ const executable = path.join(directory, 'bin', process.platform === 'win32' ? `${cli}.cmd` : cli);
207
+ this.ux.log(`Testing ${chalk.cyan(executable)}`);
208
+ const result = shelljs_1.exec(`${executable} --version`, { silent: true });
209
+ this.ux.log(chalk.dim(((_a = result.stdout) !== null && _a !== void 0 ? _a : result.stderr).replace(/\n*$/, '')));
210
+ results[cli] = result.code === 0;
211
+ }
212
+ return results;
213
+ }
214
+ }
215
+ class Npm extends Method.Base {
216
+ constructor(options, ux) {
217
+ super(options, ux);
218
+ this.options = options;
219
+ this.ux = ux;
220
+ const name = options.cli === CLI.SF ? '@salesforce/cli' : 'sfdx-cli';
221
+ const tag = options.channel === Channel.STABLE ? 'latest' : 'latest-rc';
222
+ this.package = `${name}@${tag}`;
223
+ }
224
+ async darwin() {
225
+ return this.installAndTest();
226
+ }
227
+ async win32() {
228
+ return this.installAndTest();
229
+ }
230
+ async linux() {
231
+ return this.installAndTest();
232
+ }
233
+ async ping() {
234
+ // I'm not confident that this is the best way to preempt any issues related to Npm's availability. Mainly
235
+ // because I couldn't find any documetation related to what status indicators might be used and when.
236
+ const response = await got_1.default.get(Npm.STATUS_URL).json();
237
+ return { service: 'Npm', available: response.status.indicator === 'none' };
238
+ }
239
+ async installAndTest() {
240
+ await this.install();
241
+ const testResults = this.test();
242
+ for (const [cli, success] of Object.entries(testResults)) {
243
+ this.logResult(cli, success);
244
+ }
245
+ this.ux.log();
246
+ return { [this.package]: testResults };
247
+ }
248
+ async install() {
249
+ this.ux.startSpinner(`Installing: ${chalk.cyan(this.package)}`);
250
+ return new Promise((resolve, reject) => {
251
+ shelljs_1.exec(`npm install ${this.package}`, { silent: true, cwd: this.options.directory, async: true }, (code) => {
252
+ if (code === 0) {
253
+ this.ux.stopSpinner();
254
+ resolve();
255
+ }
256
+ else {
257
+ this.ux.stopSpinner('Failed');
258
+ reject();
259
+ }
260
+ });
261
+ });
262
+ }
263
+ test() {
264
+ var _a;
265
+ const results = {};
266
+ for (const cli of this.getTargets()) {
267
+ const executable = path.join(this.options.directory, 'node_modules', '.bin', cli);
268
+ this.ux.log(`Testing ${chalk.cyan(executable)}`);
269
+ const result = shelljs_1.exec(`${executable} --version`, { silent: true });
270
+ this.ux.log(chalk.dim(((_a = result.stdout) !== null && _a !== void 0 ? _a : result.stderr).replace(/\n*$/, '')));
271
+ results[cli] = result.code === 0;
272
+ }
273
+ return results;
274
+ }
275
+ }
276
+ Npm.STATUS_URL = 'https://status.npmjs.org/api/v2/status.json';
277
+ class Installer extends Method.Base {
278
+ constructor(options, ux) {
279
+ super(options, ux);
280
+ this.options = options;
281
+ this.ux = ux;
282
+ this.s3 = new AmazonS3(options.cli, options.channel, ux);
283
+ }
284
+ async darwin() {
285
+ const pkg = `${this.options.cli}.pkg`;
286
+ const url = `${this.s3.directory}/${pkg}`;
287
+ const location = path.join(this.options.directory, pkg);
288
+ await this.s3.download(url, location);
289
+ const result = shelljs_1.exec(`sudo installer -pkg ${location} -target /`, { silent: true });
290
+ if (result.code === 0) {
291
+ const success = this.nixTest();
292
+ this.logResult(this.options.cli, success);
293
+ this.ux.log();
294
+ return { [url]: { [this.options.cli]: success } };
295
+ }
296
+ else {
297
+ this.logResult(this.options.cli, false);
298
+ this.ux.log();
299
+ return { [url]: { [this.options.cli]: false } };
300
+ }
301
+ }
302
+ async win32() {
303
+ const executables = [`${this.options.cli}-x64.exe`, `${this.options.cli}-x86.exe`];
304
+ const results = {};
305
+ for (const exe of executables) {
306
+ const url = `${this.s3.directory}/${exe}`;
307
+ const location = path.join(this.options.directory, exe);
308
+ await this.s3.download(url, location);
309
+ const installLocation = `C:\\install-test\\${this.options.cli}\\${exe.includes('x86') ? 'x86' : 'x64'}`;
310
+ const cmd = `Start-Process -Wait -FilePath "${location}" -ArgumentList "/S", "/D=${installLocation}" -PassThru`;
311
+ this.ux.log(`Installing ${chalk.cyan(exe)}...`);
312
+ const result = shelljs_1.exec(cmd, { silent: false, shell: 'powershell.exe' });
313
+ if (result.code === 0) {
314
+ const success = this.win32Test(installLocation);
315
+ this.logResult(this.options.cli, success);
316
+ this.ux.log();
317
+ return { [url]: { [this.options.cli]: success } };
318
+ }
319
+ else {
320
+ this.logResult(this.options.cli, false);
321
+ this.ux.log();
322
+ return { [url]: { [this.options.cli]: false } };
323
+ }
324
+ }
325
+ return results;
326
+ }
327
+ // eslint-disable-next-line @typescript-eslint/require-await
328
+ async linux() {
329
+ throw new Error('Installers not supported for linux.');
330
+ }
331
+ async ping() {
332
+ return this.s3.ping();
333
+ }
334
+ win32Test(installLocation) {
335
+ var _a;
336
+ const binaryPath = path.join(installLocation, 'bin', `${this.options.cli}.cmd`);
337
+ this.ux.log(`Testing ${chalk.cyan(binaryPath)}`);
338
+ const execOptions = { silent: true, shell: 'powershell.exe' };
339
+ const result = shelljs_1.exec(`& "${binaryPath}" --version`, execOptions);
340
+ const version = ((_a = result.stdout) !== null && _a !== void 0 ? _a : result.stderr).replace(/\n*$/, '');
341
+ this.ux.log(chalk.dim(version));
342
+ if (result.code === 0) {
343
+ return binaryPath.includes('x86') ? version.includes('win32-x86') : version.includes('win32-x64');
344
+ }
345
+ else {
346
+ return false;
347
+ }
348
+ }
349
+ nixTest() {
350
+ var _a;
351
+ const binaryPath = `/usr/local/bin/${this.options.cli}`;
352
+ this.ux.log(`Testing ${chalk.cyan(binaryPath)}`);
353
+ const result = shelljs_1.exec(`${binaryPath} --version`, { silent: true });
354
+ this.ux.log(chalk.dim(((_a = result.stdout) !== null && _a !== void 0 ? _a : result.stderr).replace(/\n*$/, '')));
355
+ return result.code === 0;
356
+ }
357
+ }
358
+ class Test extends command_1.SfdxCommand {
359
+ async run() {
360
+ const cli = ts_types_1.ensure(this.flags.cli);
361
+ const method = ts_types_1.ensure(this.flags.method);
362
+ const channel = ts_types_1.ensure(this.flags.channel);
363
+ const directory = await this.makeWorkingDir(cli, channel, method);
364
+ this.ux.log(`Working Directory: ${directory}`);
365
+ this.ux.log();
366
+ let results = {};
367
+ switch (method) {
368
+ case 'tarball': {
369
+ const tarball = new Tarball({ cli, channel, directory, method }, this.ux);
370
+ results = await tarball.execute();
371
+ break;
372
+ }
373
+ case 'npm': {
374
+ const npm = new Npm({ cli, channel, directory, method }, this.ux);
375
+ results = await npm.execute();
376
+ break;
377
+ }
378
+ case 'installer': {
379
+ const installer = new Installer({ cli, channel, directory, method }, this.ux);
380
+ results = await installer.execute();
381
+ break;
382
+ }
383
+ default:
384
+ break;
385
+ }
386
+ const hasFailures = Object.values(results).some((r) => !r);
387
+ if (hasFailures)
388
+ process.exitCode = 1;
389
+ return results;
390
+ }
391
+ async makeWorkingDir(cli, channel, method) {
392
+ const tmpDir = path.join(os.tmpdir(), 'cli-install-test', cli, channel, method);
393
+ // ensure that we are starting with a clean directory
394
+ try {
395
+ await core_1.fs.remove(tmpDir);
396
+ }
397
+ catch {
398
+ // error means that folder doesn't exist which is okay
399
+ }
400
+ await core_1.fs.mkdirp(tmpDir, { recursive: true });
401
+ return tmpDir;
402
+ }
403
+ }
404
+ exports.default = Test;
405
+ Test.description = messages.getMessage('description');
406
+ Test.examples = messages.getMessage('examples').split(os.EOL);
407
+ Test.flagsConfig = {
408
+ cli: command_1.flags.string({
409
+ description: messages.getMessage('cliFlag'),
410
+ options: Object.values(CLI),
411
+ char: 'c',
412
+ required: true,
413
+ }),
414
+ method: command_1.flags.string({
415
+ description: messages.getMessage('methodFlag'),
416
+ options: Object.values(Method.Type),
417
+ char: 'm',
418
+ required: true,
419
+ }),
420
+ channel: command_1.flags.string({
421
+ description: messages.getMessage('channelFlag'),
422
+ options: Object.values(Channel),
423
+ default: 'stable',
424
+ }),
425
+ };
426
+ //# sourceMappingURL=test.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"test.js","sourceRoot":"","sources":["../../../../src/commands/cli/install/test.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;AAEH,6BAA6B;AAC7B,yBAAyB;AACzB,iDAA0E;AAC1E,2CAAgD;AAChD,mDAA8C;AAC9C,6BAAsB;AACtB,qCAA+B;AAC/B,+BAA+B;AAE/B,eAAQ,CAAC,uBAAuB,CAAC,SAAS,CAAC,CAAC;AAC5C,MAAM,QAAQ,GAAG,eAAQ,CAAC,YAAY,CAAC,uCAAuC,EAAE,aAAa,CAAC,CA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CAAC;QAC9C,OAAO,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC;QACnC,IAAI,EAAE,GAAG;QACT,QAAQ,EAAE,IAAI;KACf,CAAC;IACF,OAAO,EAAE,eAAK,CAAC,MAAM,CAAC;QACpB,WAAW,EAAE,QAAQ,CAAC,UAAU,CAAC,aAAa,CAAC;QAC/C,OAAO,EAAE,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC;QAC/B,OAAO,EAAE,QAAQ;KAClB,CAAC;CACH,CAAC"}
@@ -46,10 +46,14 @@ class AutoMerge extends command_1.SfdxCommand {
46
46
  const prToMerge = mergeablePRs[0];
47
47
  if (this.flags.dryrun === false) {
48
48
  this.ux.log(`merging ${prToMerge.number.toString()} | ${prToMerge.title}`);
49
- const mergeResult = await this.octokit.request('PUT /repos/{owner}/{repo}/pulls/{pull_number}/merge', {
49
+ const opts = {
50
50
  ...this.baseRepoObject,
51
51
  pull_number: prToMerge.number,
52
- });
52
+ };
53
+ if (this.flags['skip-ci']) {
54
+ opts.commit_title = `Merge pull request #${prToMerge.number} from ${prToMerge.head.ref} [skip ci]`;
55
+ }
56
+ const mergeResult = await this.octokit.request('PUT /repos/{owner}/{repo}/pulls/{pull_number}/merge', opts);
53
57
  this.ux.logJson(mergeResult);
54
58
  }
55
59
  else {
@@ -97,5 +101,10 @@ AutoMerge.flagsConfig = {
97
101
  char: 'd',
98
102
  default: false,
99
103
  }),
104
+ 'skip-ci': command_1.flags.boolean({
105
+ description: messages.getMessage('skipCi'),
106
+ char: 's',
107
+ default: false,
108
+ }),
100
109
  };
101
110
  //# sourceMappingURL=automerge.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"automerge.js","sourceRoot":"","sources":["../../../src/commands/dependabot/automerge.ts"],"names":[],"mappings":";;AAAA;;;;;GAKG;AACH,qJAAqJ;AACrJ,yBAAyB;AACzB,iDAAsE;AACtE,wCAAwC;AACxC,yCAAsC;AACtC,mDAAoD;AACpD,2CAA4C;A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,CAAC;QAC1C,IAAI,EAAE,GAAG;QACT,OAAO,EAAE,KAAK;KACf,CAAC;CACH,CAAC"}
@@ -0,0 +1,13 @@
1
+ {
2
+ "description": "install sf or sfdx",
3
+ "examples": [
4
+ "<%= config.bin %> <%= command.id %> --cli sfdx --method installer",
5
+ "<%= config.bin %> <%= command.id %> --cli sfdx --method npm",
6
+ "<%= config.bin %> <%= command.id %> --cli sfdx --method tarball",
7
+ "<%= config.bin %> <%= command.id %> --cli sf --method tarball",
8
+ "<%= config.bin %> <%= command.id %> --cli sf --method tarball --channel stable-rc"
9
+ ],
10
+ "cliFlag": "the cli to install",
11
+ "methodFlag": "the installation method to use",
12
+ "channelFlag": "the channel to install from"
13
+ }
@@ -1,5 +1,6 @@
1
1
  {
2
2
  "description": "automatically merge one green, mergeable PR up to the specified maximum bump type",
3
+ "skipCi": "add [skip ci] to the merge commit title",
3
4
  "examples": [
4
5
  "<%= config.bin %> <%= command.id %> --max-version-bump patch",
5
6
  "<%= config.bin %> <%= command.id %> --max-version-bump minor",
@@ -1 +1 @@
1
- {"version":"2.0.8","commands":{"circleci":{"id":"circleci","description":"list known Circle CI slugs from '<%= config.bin %> repositories'","usage":"<%= command.id %> [-t plugin|library|orb] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]","pluginName":"@salesforce/plugin-release-management","pluginType":"core","aliases":[],"examples":["<%= config.bin %> <%= command.id %> -t plugin"],"flags":{"json":{"name":"json","type":"boolean","description":"format output as json","allowNo":false},"loglevel":{"name":"loglevel","type":"option","description":"logging level for this command invocation","required":false,"helpValue":"(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL)","options":["trace","debug","info","warn","error","fatal","TRACE","DEBUG","INFO","WARN","ERROR","FATAL"],"default":"warn"},"contains-package-type":{"name":"contains-package-type","type":"option","char":"t","description":"filter based on type of package","helpValue":"(plugin|library|orb)","options":["plugin","library","orb"]}},"args":[]},"dependabot:automerge":{"id":"dependabot:automerge","description":"automatically merge one green, mergeable PR up to the specified maximum bump type","usage":"<%= command.id %> -m major|minor|patch [-r <string> -o <string>] [-d] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]","pluginName":"@salesforce/plugin-release-management","pluginType":"core","aliases":[],"examples":["<%= config.bin %> <%= command.id %> --max-version-bump patch","<%= config.bin %> <%= command.id %> --max-version-bump minor","<%= config.bin %> <%= command.id %> --max-version-bump major"],"flags":{"json":{"name":"json","type":"boolean","description":"format output as json","allowNo":false},"loglevel":{"name":"loglevel","type":"option","description":"logging level for this command invocation","required":false,"helpValue":"(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL)","options":["trace","debug","info","warn","error","fatal","TRACE","DEBUG","INFO","WARN","ERROR","FATAL"],"default":"warn"},"owner":{"name":"owner","type":"option","char":"o","description":"the organization that the repository belongs to. This defaults to the owner specified in the package.json"},"repo":{"name":"repo","type":"option","char":"r","description":"the repository you want to consolidate PRs on. This defaults to the repository specified in the package.json"},"max-version-bump":{"name":"max-version-bump","type":"option","char":"m","description":"the maximum version bump you want to be included","required":true,"helpValue":"(major|minor|patch)","options":["major","minor","patch"],"default":"minor"},"dryrun":{"name":"dryrun","type":"boolean","char":"d","description":"only show what would happen if you consolidated dependabot PRs","allowNo":false}},"args":[]},"dependabot:consolidate":{"id":"dependabot:consolidate","description":"consolidate dependabot PRs into a single PR","usage":"<%= command.id %> -m major|minor|patch -b <string> -t <string> [--ignore <array>] [-d] [--no-pr] [-r <string> -o <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]","pluginName":"@salesforce/plugin-release-management","pluginType":"core","aliases":[],"examples":["<%= config.bin %> <%= command.id %> --max-version-bump patch","<%= config.bin %> <%= command.id %> --max-version-bump minor","<%= config.bin %> <%= command.id %> --max-version-bump major"],"flags":{"json":{"name":"json","type":"boolean","description":"format output as json","allowNo":false},"loglevel":{"name":"loglevel","type":"option","description":"logging level for this command invocation","required":false,"helpValue":"(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL)","options":["trace","debug","info","warn","error","fatal","TRACE","DEBUG","INFO","WARN","ERROR","FATAL"],"default":"warn"},"max-version-bump":{"name":"max-version-bump","type":"option","char":"m","description":"the maximum version bump you want to be included","required":true,"helpValue":"(major|minor|patch)","options":["major","minor","patch"],"default":"minor"},"base-branch":{"name":"base-branch","type":"option","char":"b","description":"name of the base branch for merging","required":true,"default":"main"},"target-branch":{"name":"target-branch","type":"option","char":"t","description":"name of the target branch for merging","required":true,"default":"consolidate-dependabot"},"ignore":{"name":"ignore","type":"option","description":"ignore any PRs with titles that include this value","default":[]},"dryrun":{"name":"dryrun","type":"boolean","char":"d","description":"only show what would happen if you consolidated dependabot PRs","allowNo":false},"no-pr":{"name":"no-pr","type":"boolean","description":"do everything but create the PR","allowNo":false},"owner":{"name":"owner","type":"option","char":"o","description":"the organization that the repository belongs to. This defaults to the owner specified in the package.json"},"repo":{"name":"repo","type":"option","char":"r","description":"the repository you want to consolidate PRs on. This defaults to the repository specified in the package.json"}},"args":[]},"repositories":{"id":"repositories","description":"list repositories owned and supported by Salesforce CLI\nFor more information on the list of repositories, visit https://github.com/salesforcecli/status.","usage":"","pluginName":"@salesforce/plugin-release-management","pluginType":"core","aliases":[],"examples":["<%= config.bin %> <%= command.id %> --columns=url --filter='Name=sfdx-core' --no-header | xargs open","<%= config.bin %> <%= command.id %> --json | jq -r '.result[] | select(.name==\"sfdx-core\") | .packages[] | .url"],"flags":{"json":{"name":"json","type":"boolean","description":"format output as json","allowNo":false},"loglevel":{"name":"loglevel","type":"option","description":"logging level for this command invocation","required":false,"helpValue":"(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL)","options":["trace","debug","info","warn","error","fatal","TRACE","DEBUG","INFO","WARN","ERROR","FATAL"],"default":"warn"},"columns":{"name":"columns","type":"option","description":"only show provided columns (comma-separated)"},"sort":{"name":"sort","type":"option","description":"property to sort by (prepend '-' for descending)"},"filter":{"name":"filter","type":"option","description":"filter property by partial string matching, ex: name=foo"},"csv":{"name":"csv","type":"boolean","description":"output is csv format [alias: --output=csv]","allowNo":false},"output":{"name":"output","type":"option","description":"output in a more machine friendly format","options":["csv","json","yaml"]},"extended":{"name":"extended","type":"boolean","char":"x","description":"show extra columns","allowNo":false},"no-truncate":{"name":"no-truncate","type":"boolean","description":"do not truncate output to fit screen","allowNo":false},"no-header":{"name":"no-header","type":"boolean","description":"hide table header from output","allowNo":false}},"args":[]},"typescript:update":{"id":"typescript:update","description":"Runs tests with updated typescript version and ES target","usage":"<%= command.id %> [-v <string>] [-t <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]","pluginName":"@salesforce/plugin-release-management","pluginType":"core","aliases":[],"flags":{"json":{"name":"json","type":"boolean","description":"format output as json","allowNo":false},"loglevel":{"name":"loglevel","type":"option","description":"logging level for this command invocation","required":false,"helpValue":"(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL)","options":["trace","debug","info","warn","error","fatal","TRACE","DEBUG","INFO","WARN","ERROR","FATAL"],"default":"warn"},"version":{"name":"version","type":"option","char":"v","description":"Specify the typescript version you'd like to update to. Defaults to latest if not specified","default":"latest"},"target":{"name":"target","type":"option","char":"t","description":"Specify the ES target you'd like to use. Defaults to ESNext if not specified","default":"ESNext"}},"args":[]},"circleci:envvar:update":{"id":"circleci:envvar:update","description":"update environment variable(s) on Circle CI slug(s)\nUpdates one or more environment variables on one or more CIrcle CI slugs. The environment variables must already exist on the slug. You will be prompted for the environment variable values unless they already exist on the process. The slugs can be piped in. If so, the environment variables must be on the process (prompting is disabled).","usage":"<%= command.id %> -e <string> [-s <string>] [--dryrun] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]","pluginName":"@salesforce/plugin-release-management","pluginType":"core","aliases":[],"examples":["<%= config.bin %> <%= command.id %> -e 'MY_ENV_VAR' -s 'gh/<org>/<repository>'","echo \"gh/<org>/<repository>\" | <%= config.bin %> <%= command.id %> -e 'MY_ENV_VAR'","<%= config.bin %> circleci -t plugin | <%= config.bin %> <%= command.id %> -e 'MY_ENV_VAR' -e 'MY_OTHER_ENV_VAR'"],"flags":{"json":{"name":"json","type":"boolean","description":"format output as json","allowNo":false},"loglevel":{"name":"loglevel","type":"option","description":"logging level for this command invocation","required":false,"helpValue":"(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL)","options":["trace","debug","info","warn","error","fatal","TRACE","DEBUG","INFO","WARN","ERROR","FATAL"],"default":"warn"},"slug":{"name":"slug","type":"option","char":"s","description":"a circle ci slugs in the format <vcs>/<org name>/<repo name>"},"envvar":{"name":"envvar","type":"option","char":"e","description":"a environment variables to set on the given circle slug(s)","required":true},"dryrun":{"name":"dryrun","type":"boolean","description":"do validation but do not update the environment variable values","allowNo":false}},"args":[]},"cli:tarballs:prepare":{"id":"cli:tarballs:prepare","description":"remove unnecessary files from node_modules","usage":"<%= command.id %> [-d] [-t] [--verbose] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]","pluginName":"@salesforce/plugin-release-management","pluginType":"core","aliases":[],"examples":["<%= config.bin %> <%= command.id %>"],"flags":{"json":{"name":"json","type":"boolean","description":"format output as json","allowNo":false},"loglevel":{"name":"loglevel","type":"option","description":"logging level for this command invocation","required":false,"helpValue":"(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL)","options":["trace","debug","info","warn","error","fatal","TRACE","DEBUG","INFO","WARN","ERROR","FATAL"],"default":"warn"},"dryrun":{"name":"dryrun","type":"boolean","char":"d","description":"only show what would be removed from node_modules","allowNo":false},"types":{"name":"types","type":"boolean","char":"t","description":"remove all types (.d.ts) files from node_modules ","allowNo":false},"verbose":{"name":"verbose","type":"boolean","description":"show all files paths being removed","allowNo":false}},"args":[]},"cli:tarballs:verify":{"id":"cli:tarballs:verify","description":"verify that tarballs are ready to be uploaded","usage":"<%= command.id %> [-c sf|sfdx] [-w <number>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]","pluginName":"@salesforce/plugin-release-management","pluginType":"core","aliases":[],"examples":["<%= config.bin %> <%= command.id %>","<%= config.bin %> <%= command.id %> --cli sfdx","<%= config.bin %> <%= command.id %> --cli sf"],"flags":{"json":{"name":"json","type":"boolean","description":"format output as json","allowNo":false},"loglevel":{"name":"loglevel","type":"option","description":"logging level for this command invocation","required":false,"helpValue":"(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL)","options":["trace","debug","info","warn","error","fatal","TRACE","DEBUG","INFO","WARN","ERROR","FATAL"],"default":"warn"},"cli":{"name":"cli","type":"option","char":"c","description":"the cli to verify","helpValue":"(sf|sfdx)","options":["sf","sfdx"],"default":"sfdx"},"windows-username-buffer":{"name":"windows-username-buffer","type":"option","char":"w","description":"the number of characters to allow for windows usernames","default":41}},"args":[]},"cli:versions:inspect":{"id":"cli:versions:inspect","description":"inspect the CLI version across all install paths","usage":"<%= command.id %> -c <string> -l <string> --cli sf|sfdx [-d <string>] [-s] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]","pluginName":"@salesforce/plugin-release-management","pluginType":"core","aliases":[],"examples":["<%= config.bin %> <%= command.id %> -l archive -c stable","<%= config.bin %> <%= command.id %> -l archive -c stable-rc","<%= config.bin %> <%= command.id %> -l archive npm -c stable","<%= config.bin %> <%= command.id %> -l archive npm -c latest","<%= config.bin %> <%= command.id %> -l archive npm -c latest latest-rc","<%= config.bin %> <%= command.id %> -l archive npm -c stable stable-rc","<%= config.bin %> <%= command.id %> -l npm -c latest --salesforce","<%= config.bin %> <%= command.id %> -l npm -c latest -d @salesforce/core","<%= config.bin %> <%= command.id %> -l npm -c latest -d @salesforce/**/ salesforce-alm","<%= config.bin %> <%= command.id %> -l npm -c latest -d chalk -s"],"flags":{"json":{"name":"json","type":"boolean","description":"format output as json","allowNo":false},"loglevel":{"name":"loglevel","type":"option","description":"logging level for this command invocation","required":false,"helpValue":"(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL)","options":["trace","debug","info","warn","error","fatal","TRACE","DEBUG","INFO","WARN","ERROR","FATAL"],"default":"warn"},"dependencies":{"name":"dependencies","type":"option","char":"d","description":"glob pattern of dependencies you want to see the version of"},"salesforce":{"name":"salesforce","type":"boolean","char":"s","description":"show versions of salesforce owned dependencies","allowNo":false},"channels":{"name":"channels","type":"option","char":"c","description":"the channel you want to inspect (for achives, latest and latest-rc are translated to stable and stable-rc. And vice-versa for npm)","required":true,"options":["legacy","stable","stable-rc","latest","latest-rc"]},"locations":{"name":"locations","type":"option","char":"l","description":"the location you want to inspect","required":true,"options":["archive","npm"]},"cli":{"name":"cli","type":"option","description":"the CLI you want to inspect","required":true,"helpValue":"(sf|sfdx)","options":["sf","sfdx"],"default":"sfdx"}},"args":[]},"npm:dependencies:pin":{"id":"npm:dependencies:pin","description":"lock a list of dependencies to a target tag or default to 'latest', place these entries in 'pinnedDependencies' entry in the package.json","usage":"<%= command.id %> [-d] [-t <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]","pluginName":"@salesforce/plugin-release-management","pluginType":"core","aliases":[],"flags":{"json":{"name":"json","type":"boolean","description":"format output as json","allowNo":false},"loglevel":{"name":"loglevel","type":"option","description":"logging level for this command invocation","required":false,"helpValue":"(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL)","options":["trace","debug","info","warn","error","fatal","TRACE","DEBUG","INFO","WARN","ERROR","FATAL"],"default":"warn"},"dryrun":{"name":"dryrun","type":"boolean","char":"d","description":"If true, will not make any changes to the package.json","allowNo":false},"tag":{"name":"tag","type":"option","char":"t","description":"The name of the tag you want, e.g. 'latest-rc', or 'latest'","default":"latest"}},"args":[]},"npm:lerna:release":{"id":"npm:lerna:release","description":"publish npm packages from a lerna repository","usage":"<%= command.id %> [-d] [-s <array>] [-t <string>] [-a <string>] [--install] [--githubrelease] [--verify] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]","pluginName":"@salesforce/plugin-release-management","pluginType":"core","aliases":[],"flags":{"json":{"name":"json","type":"boolean","description":"format output as json","allowNo":false},"loglevel":{"name":"loglevel","type":"option","description":"logging level for this command invocation","required":false,"helpValue":"(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL)","options":["trace","debug","info","warn","error","fatal","TRACE","DEBUG","INFO","WARN","ERROR","FATAL"],"default":"warn"},"dryrun":{"name":"dryrun","type":"boolean","char":"d","description":"if true, will not commit changes to repo or push any tags","allowNo":false},"sign":{"name":"sign","type":"option","char":"s","description":"list of packages to be signed. Should match the name property of the package.json"},"npmtag":{"name":"npmtag","type":"option","char":"t","description":"tag to use when publishing to npm","default":"latest"},"npmaccess":{"name":"npmaccess","type":"option","char":"a","description":"access level to use when publishing to npm","default":"public"},"install":{"name":"install","type":"boolean","description":"run yarn install and build on repository","allowNo":true},"githubrelease":{"name":"githubrelease","type":"boolean","description":"create release in github based on the package changes","allowNo":false},"verify":{"name":"verify","type":"boolean","description":"verify npm registry has new version after publish and digital signature","allowNo":true}},"args":[]},"npm:package:promote":{"id":"npm:package:promote","description":"promote an npm package","usage":"<%= command.id %> -c <string> [-d] [-t <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]","pluginName":"@salesforce/plugin-release-management","pluginType":"core","aliases":[],"examples":["<%= config.bin %> <%= command.id %> --candidate latest-rc --target latest"],"flags":{"json":{"name":"json","type":"boolean","description":"format output as json","allowNo":false},"loglevel":{"name":"loglevel","type":"option","description":"logging level for this command invocation","required":false,"helpValue":"(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL)","options":["trace","debug","info","warn","error","fatal","TRACE","DEBUG","INFO","WARN","ERROR","FATAL"],"default":"warn"},"dryrun":{"name":"dryrun","type":"boolean","char":"d","description":"If true, only show what would happen","allowNo":false},"target":{"name":"target","type":"option","char":"t","description":"the npm tag that you are promoting to","default":"latest"},"candidate":{"name":"candidate","type":"option","char":"c","description":"the npm tag that you want to promote","required":true}},"args":[]},"npm:package:release":{"id":"npm:package:release","description":"publish npm package","usage":"<%= command.id %> [-d] [-s] [-t <string>] [-a <string>] [--install] [--prerelease <string>] [--verify] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]","pluginName":"@salesforce/plugin-release-management","pluginType":"core","aliases":[],"flags":{"json":{"name":"json","type":"boolean","description":"format output as json","allowNo":false},"loglevel":{"name":"loglevel","type":"option","description":"logging level for this command invocation","required":false,"helpValue":"(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL)","options":["trace","debug","info","warn","error","fatal","TRACE","DEBUG","INFO","WARN","ERROR","FATAL"],"default":"warn"},"dryrun":{"name":"dryrun","type":"boolean","char":"d","description":"If true, will not commit changes to repo or push any tags","allowNo":false},"sign":{"name":"sign","type":"boolean","char":"s","description":"If true, then the package will be signed and the signature will be uploaded to S3","allowNo":false},"npmtag":{"name":"npmtag","type":"option","char":"t","description":"tag to use when publishing to npm","default":"latest"},"npmaccess":{"name":"npmaccess","type":"option","char":"a","description":"access level to use when publishing to npm","default":"public"},"install":{"name":"install","type":"boolean","description":"run yarn install and build on repository","allowNo":true},"prerelease":{"name":"prerelease","type":"option","description":"determine the next version as <version>-<prerelease>.0 if version is not manually set"},"verify":{"name":"verify","type":"boolean","description":"verify npm registry has new version after publish and digital signature","allowNo":true}},"args":[]},"npm:release:validate":{"id":"npm:release:validate","description":"inspects the git commits to see if there are any commits that will warrant a new release","usage":"<%= command.id %> [--verbose] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]","pluginName":"@salesforce/plugin-release-management","pluginType":"core","aliases":[],"flags":{"json":{"name":"json","type":"boolean","description":"format output as json","allowNo":false},"loglevel":{"name":"loglevel","type":"option","description":"logging level for this command invocation","required":false,"helpValue":"(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL)","options":["trace","debug","info","warn","error","fatal","TRACE","DEBUG","INFO","WARN","ERROR","FATAL"],"default":"warn"},"verbose":{"name":"verbose","type":"boolean","description":"show all commits for all packages (only works with --json flag)","allowNo":false}},"args":[]}}}
1
+ {"version":"2.2.1","commands":{"circleci":{"id":"circleci","description":"list known Circle CI slugs from '<%= config.bin %> repositories'","usage":"<%= command.id %> [-t plugin|library|orb] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]","pluginName":"@salesforce/plugin-release-management","pluginType":"core","aliases":[],"examples":["<%= config.bin %> <%= command.id %> -t plugin"],"flags":{"json":{"name":"json","type":"boolean","description":"format output as json","allowNo":false},"loglevel":{"name":"loglevel","type":"option","description":"logging level for this command invocation","required":false,"helpValue":"(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL)","options":["trace","debug","info","warn","error","fatal","TRACE","DEBUG","INFO","WARN","ERROR","FATAL"],"default":"warn"},"contains-package-type":{"name":"contains-package-type","type":"option","char":"t","description":"filter based on type of package","helpValue":"(plugin|library|orb)","options":["plugin","library","orb"]}},"args":[]},"dependabot:automerge":{"id":"dependabot:automerge","description":"automatically merge one green, mergeable PR up to the specified maximum bump type","usage":"<%= command.id %> -m major|minor|patch [-r <string> -o <string>] [-d] [-s] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]","pluginName":"@salesforce/plugin-release-management","pluginType":"core","aliases":[],"examples":["<%= config.bin %> <%= command.id %> --max-version-bump patch","<%= config.bin %> <%= command.id %> --max-version-bump minor","<%= config.bin %> <%= command.id %> --max-version-bump major"],"flags":{"json":{"name":"json","type":"boolean","description":"format output as json","allowNo":false},"loglevel":{"name":"loglevel","type":"option","description":"logging level for this command invocation","required":false,"helpValue":"(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL)","options":["trace","debug","info","warn","error","fatal","TRACE","DEBUG","INFO","WARN","ERROR","FATAL"],"default":"warn"},"owner":{"name":"owner","type":"option","char":"o","description":"the organization that the repository belongs to. This defaults to the owner specified in the package.json"},"repo":{"name":"repo","type":"option","char":"r","description":"the repository you want to consolidate PRs on. This defaults to the repository specified in the package.json"},"max-version-bump":{"name":"max-version-bump","type":"option","char":"m","description":"the maximum version bump you want to be included","required":true,"helpValue":"(major|minor|patch)","options":["major","minor","patch"],"default":"minor"},"dryrun":{"name":"dryrun","type":"boolean","char":"d","description":"only show what would happen if you consolidated dependabot PRs","allowNo":false},"skip-ci":{"name":"skip-ci","type":"boolean","char":"s","description":"add [skip ci] to the merge commit title","allowNo":false}},"args":[]},"dependabot:consolidate":{"id":"dependabot:consolidate","description":"consolidate dependabot PRs into a single PR","usage":"<%= command.id %> -m major|minor|patch -b <string> -t <string> [--ignore <array>] [-d] [--no-pr] [-r <string> -o <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]","pluginName":"@salesforce/plugin-release-management","pluginType":"core","aliases":[],"examples":["<%= config.bin %> <%= command.id %> --max-version-bump patch","<%= config.bin %> <%= command.id %> --max-version-bump minor","<%= config.bin %> <%= command.id %> --max-version-bump major"],"flags":{"json":{"name":"json","type":"boolean","description":"format output as json","allowNo":false},"loglevel":{"name":"loglevel","type":"option","description":"logging level for this command invocation","required":false,"helpValue":"(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL)","options":["trace","debug","info","warn","error","fatal","TRACE","DEBUG","INFO","WARN","ERROR","FATAL"],"default":"warn"},"max-version-bump":{"name":"max-version-bump","type":"option","char":"m","description":"the maximum version bump you want to be included","required":true,"helpValue":"(major|minor|patch)","options":["major","minor","patch"],"default":"minor"},"base-branch":{"name":"base-branch","type":"option","char":"b","description":"name of the base branch for merging","required":true,"default":"main"},"target-branch":{"name":"target-branch","type":"option","char":"t","description":"name of the target branch for merging","required":true,"default":"consolidate-dependabot"},"ignore":{"name":"ignore","type":"option","description":"ignore any PRs with titles that include this value","default":[]},"dryrun":{"name":"dryrun","type":"boolean","char":"d","description":"only show what would happen if you consolidated dependabot PRs","allowNo":false},"no-pr":{"name":"no-pr","type":"boolean","description":"do everything but create the PR","allowNo":false},"owner":{"name":"owner","type":"option","char":"o","description":"the organization that the repository belongs to. This defaults to the owner specified in the package.json"},"repo":{"name":"repo","type":"option","char":"r","description":"the repository you want to consolidate PRs on. This defaults to the repository specified in the package.json"}},"args":[]},"repositories":{"id":"repositories","description":"list repositories owned and supported by Salesforce CLI\nFor more information on the list of repositories, visit https://github.com/salesforcecli/status.","usage":"","pluginName":"@salesforce/plugin-release-management","pluginType":"core","aliases":[],"examples":["<%= config.bin %> <%= command.id %> --columns=url --filter='Name=sfdx-core' --no-header | xargs open","<%= config.bin %> <%= command.id %> --json | jq -r '.result[] | select(.name==\"sfdx-core\") | .packages[] | .url"],"flags":{"json":{"name":"json","type":"boolean","description":"format output as json","allowNo":false},"loglevel":{"name":"loglevel","type":"option","description":"logging level for this command invocation","required":false,"helpValue":"(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL)","options":["trace","debug","info","warn","error","fatal","TRACE","DEBUG","INFO","WARN","ERROR","FATAL"],"default":"warn"},"columns":{"name":"columns","type":"option","description":"only show provided columns (comma-separated)"},"sort":{"name":"sort","type":"option","description":"property to sort by (prepend '-' for descending)"},"filter":{"name":"filter","type":"option","description":"filter property by partial string matching, ex: name=foo"},"csv":{"name":"csv","type":"boolean","description":"output is csv format [alias: --output=csv]","allowNo":false},"output":{"name":"output","type":"option","description":"output in a more machine friendly format","options":["csv","json","yaml"]},"extended":{"name":"extended","type":"boolean","char":"x","description":"show extra columns","allowNo":false},"no-truncate":{"name":"no-truncate","type":"boolean","description":"do not truncate output to fit screen","allowNo":false},"no-header":{"name":"no-header","type":"boolean","description":"hide table header from output","allowNo":false}},"args":[]},"typescript:update":{"id":"typescript:update","description":"Runs tests with updated typescript version and ES target","usage":"<%= command.id %> [-v <string>] [-t <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]","pluginName":"@salesforce/plugin-release-management","pluginType":"core","aliases":[],"flags":{"json":{"name":"json","type":"boolean","description":"format output as json","allowNo":false},"loglevel":{"name":"loglevel","type":"option","description":"logging level for this command invocation","required":false,"helpValue":"(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL)","options":["trace","debug","info","warn","error","fatal","TRACE","DEBUG","INFO","WARN","ERROR","FATAL"],"default":"warn"},"version":{"name":"version","type":"option","char":"v","description":"Specify the typescript version you'd like to update to. Defaults to latest if not specified","default":"latest"},"target":{"name":"target","type":"option","char":"t","description":"Specify the ES target you'd like to use. Defaults to ESNext if not specified","default":"ESNext"}},"args":[]},"circleci:envvar:update":{"id":"circleci:envvar:update","description":"update environment variable(s) on Circle CI slug(s)\nUpdates one or more environment variables on one or more CIrcle CI slugs. The environment variables must already exist on the slug. You will be prompted for the environment variable values unless they already exist on the process. The slugs can be piped in. If so, the environment variables must be on the process (prompting is disabled).","usage":"<%= command.id %> -e <string> [-s <string>] [--dryrun] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]","pluginName":"@salesforce/plugin-release-management","pluginType":"core","aliases":[],"examples":["<%= config.bin %> <%= command.id %> -e 'MY_ENV_VAR' -s 'gh/<org>/<repository>'","echo \"gh/<org>/<repository>\" | <%= config.bin %> <%= command.id %> -e 'MY_ENV_VAR'","<%= config.bin %> circleci -t plugin | <%= config.bin %> <%= command.id %> -e 'MY_ENV_VAR' -e 'MY_OTHER_ENV_VAR'"],"flags":{"json":{"name":"json","type":"boolean","description":"format output as json","allowNo":false},"loglevel":{"name":"loglevel","type":"option","description":"logging level for this command invocation","required":false,"helpValue":"(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL)","options":["trace","debug","info","warn","error","fatal","TRACE","DEBUG","INFO","WARN","ERROR","FATAL"],"default":"warn"},"slug":{"name":"slug","type":"option","char":"s","description":"a circle ci slugs in the format <vcs>/<org name>/<repo name>"},"envvar":{"name":"envvar","type":"option","char":"e","description":"a environment variables to set on the given circle slug(s)","required":true},"dryrun":{"name":"dryrun","type":"boolean","description":"do validation but do not update the environment variable values","allowNo":false}},"args":[]},"cli:install:test":{"id":"cli:install:test","description":"install sf or sfdx","usage":"<%= command.id %> -c <string> -m <string> [--channel <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]","pluginName":"@salesforce/plugin-release-management","pluginType":"core","aliases":[],"examples":["<%= config.bin %> <%= command.id %> --cli sfdx --method installer","<%= config.bin %> <%= command.id %> --cli sfdx --method npm","<%= config.bin %> <%= command.id %> --cli sfdx --method tarball","<%= config.bin %> <%= command.id %> --cli sf --method tarball","<%= config.bin %> <%= command.id %> --cli sf --method tarball --channel stable-rc"],"flags":{"json":{"name":"json","type":"boolean","description":"format output as json","allowNo":false},"loglevel":{"name":"loglevel","type":"option","description":"logging level for this command invocation","required":false,"helpValue":"(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL)","options":["trace","debug","info","warn","error","fatal","TRACE","DEBUG","INFO","WARN","ERROR","FATAL"],"default":"warn"},"cli":{"name":"cli","type":"option","char":"c","description":"the cli to install","required":true,"options":["sf","sfdx"]},"method":{"name":"method","type":"option","char":"m","description":"the installation method to use","required":true,"options":["installer","npm","tarball"]},"channel":{"name":"channel","type":"option","description":"the channel to install from","options":["stable","stable-rc"],"default":"stable"}},"args":[]},"cli:tarballs:prepare":{"id":"cli:tarballs:prepare","description":"remove unnecessary files from node_modules","usage":"<%= command.id %> [-d] [-t] [--verbose] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]","pluginName":"@salesforce/plugin-release-management","pluginType":"core","aliases":[],"examples":["<%= config.bin %> <%= command.id %>"],"flags":{"json":{"name":"json","type":"boolean","description":"format output as json","allowNo":false},"loglevel":{"name":"loglevel","type":"option","description":"logging level for this command invocation","required":false,"helpValue":"(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL)","options":["trace","debug","info","warn","error","fatal","TRACE","DEBUG","INFO","WARN","ERROR","FATAL"],"default":"warn"},"dryrun":{"name":"dryrun","type":"boolean","char":"d","description":"only show what would be removed from node_modules","allowNo":false},"types":{"name":"types","type":"boolean","char":"t","description":"remove all types (.d.ts) files from node_modules ","allowNo":false},"verbose":{"name":"verbose","type":"boolean","description":"show all files paths being removed","allowNo":false}},"args":[]},"cli:tarballs:verify":{"id":"cli:tarballs:verify","description":"verify that tarballs are ready to be uploaded","usage":"<%= command.id %> [-c sf|sfdx] [-w <number>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]","pluginName":"@salesforce/plugin-release-management","pluginType":"core","aliases":[],"examples":["<%= config.bin %> <%= command.id %>","<%= config.bin %> <%= command.id %> --cli sfdx","<%= config.bin %> <%= command.id %> --cli sf"],"flags":{"json":{"name":"json","type":"boolean","description":"format output as json","allowNo":false},"loglevel":{"name":"loglevel","type":"option","description":"logging level for this command invocation","required":false,"helpValue":"(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL)","options":["trace","debug","info","warn","error","fatal","TRACE","DEBUG","INFO","WARN","ERROR","FATAL"],"default":"warn"},"cli":{"name":"cli","type":"option","char":"c","description":"the cli to verify","helpValue":"(sf|sfdx)","options":["sf","sfdx"],"default":"sfdx"},"windows-username-buffer":{"name":"windows-username-buffer","type":"option","char":"w","description":"the number of characters to allow for windows usernames","default":41}},"args":[]},"cli:versions:inspect":{"id":"cli:versions:inspect","description":"inspect the CLI version across all install paths","usage":"<%= command.id %> -c <string> -l <string> --cli sf|sfdx [-d <string>] [-s] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]","pluginName":"@salesforce/plugin-release-management","pluginType":"core","aliases":[],"examples":["<%= config.bin %> <%= command.id %> -l archive -c stable","<%= config.bin %> <%= command.id %> -l archive -c stable-rc","<%= config.bin %> <%= command.id %> -l archive npm -c stable","<%= config.bin %> <%= command.id %> -l archive npm -c latest","<%= config.bin %> <%= command.id %> -l archive npm -c latest latest-rc","<%= config.bin %> <%= command.id %> -l archive npm -c stable stable-rc","<%= config.bin %> <%= command.id %> -l npm -c latest --salesforce","<%= config.bin %> <%= command.id %> -l npm -c latest -d @salesforce/core","<%= config.bin %> <%= command.id %> -l npm -c latest -d @salesforce/**/ salesforce-alm","<%= config.bin %> <%= command.id %> -l npm -c latest -d chalk -s"],"flags":{"json":{"name":"json","type":"boolean","description":"format output as json","allowNo":false},"loglevel":{"name":"loglevel","type":"option","description":"logging level for this command invocation","required":false,"helpValue":"(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL)","options":["trace","debug","info","warn","error","fatal","TRACE","DEBUG","INFO","WARN","ERROR","FATAL"],"default":"warn"},"dependencies":{"name":"dependencies","type":"option","char":"d","description":"glob pattern of dependencies you want to see the version of"},"salesforce":{"name":"salesforce","type":"boolean","char":"s","description":"show versions of salesforce owned dependencies","allowNo":false},"channels":{"name":"channels","type":"option","char":"c","description":"the channel you want to inspect (for achives, latest and latest-rc are translated to stable and stable-rc. And vice-versa for npm)","required":true,"options":["legacy","stable","stable-rc","latest","latest-rc"]},"locations":{"name":"locations","type":"option","char":"l","description":"the location you want to inspect","required":true,"options":["archive","npm"]},"cli":{"name":"cli","type":"option","description":"the CLI you want to inspect","required":true,"helpValue":"(sf|sfdx)","options":["sf","sfdx"],"default":"sfdx"}},"args":[]},"npm:dependencies:pin":{"id":"npm:dependencies:pin","description":"lock a list of dependencies to a target tag or default to 'latest', place these entries in 'pinnedDependencies' entry in the package.json","usage":"<%= command.id %> [-d] [-t <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]","pluginName":"@salesforce/plugin-release-management","pluginType":"core","aliases":[],"flags":{"json":{"name":"json","type":"boolean","description":"format output as json","allowNo":false},"loglevel":{"name":"loglevel","type":"option","description":"logging level for this command invocation","required":false,"helpValue":"(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL)","options":["trace","debug","info","warn","error","fatal","TRACE","DEBUG","INFO","WARN","ERROR","FATAL"],"default":"warn"},"dryrun":{"name":"dryrun","type":"boolean","char":"d","description":"If true, will not make any changes to the package.json","allowNo":false},"tag":{"name":"tag","type":"option","char":"t","description":"The name of the tag you want, e.g. 'latest-rc', or 'latest'","default":"latest"}},"args":[]},"npm:lerna:release":{"id":"npm:lerna:release","description":"publish npm packages from a lerna repository","usage":"<%= command.id %> [-d] [-s <array>] [-t <string>] [-a <string>] [--install] [--githubrelease] [--verify] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]","pluginName":"@salesforce/plugin-release-management","pluginType":"core","aliases":[],"flags":{"json":{"name":"json","type":"boolean","description":"format output as json","allowNo":false},"loglevel":{"name":"loglevel","type":"option","description":"logging level for this command invocation","required":false,"helpValue":"(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL)","options":["trace","debug","info","warn","error","fatal","TRACE","DEBUG","INFO","WARN","ERROR","FATAL"],"default":"warn"},"dryrun":{"name":"dryrun","type":"boolean","char":"d","description":"if true, will not commit changes to repo or push any tags","allowNo":false},"sign":{"name":"sign","type":"option","char":"s","description":"list of packages to be signed. Should match the name property of the package.json"},"npmtag":{"name":"npmtag","type":"option","char":"t","description":"tag to use when publishing to npm","default":"latest"},"npmaccess":{"name":"npmaccess","type":"option","char":"a","description":"access level to use when publishing to npm","default":"public"},"install":{"name":"install","type":"boolean","description":"run yarn install and build on repository","allowNo":true},"githubrelease":{"name":"githubrelease","type":"boolean","description":"create release in github based on the package changes","allowNo":false},"verify":{"name":"verify","type":"boolean","description":"verify npm registry has new version after publish and digital signature","allowNo":true}},"args":[]},"npm:package:promote":{"id":"npm:package:promote","description":"promote an npm package","usage":"<%= command.id %> -c <string> [-d] [-t <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]","pluginName":"@salesforce/plugin-release-management","pluginType":"core","aliases":[],"examples":["<%= config.bin %> <%= command.id %> --candidate latest-rc --target latest"],"flags":{"json":{"name":"json","type":"boolean","description":"format output as json","allowNo":false},"loglevel":{"name":"loglevel","type":"option","description":"logging level for this command invocation","required":false,"helpValue":"(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL)","options":["trace","debug","info","warn","error","fatal","TRACE","DEBUG","INFO","WARN","ERROR","FATAL"],"default":"warn"},"dryrun":{"name":"dryrun","type":"boolean","char":"d","description":"If true, only show what would happen","allowNo":false},"target":{"name":"target","type":"option","char":"t","description":"the npm tag that you are promoting to","default":"latest"},"candidate":{"name":"candidate","type":"option","char":"c","description":"the npm tag that you want to promote","required":true}},"args":[]},"npm:package:release":{"id":"npm:package:release","description":"publish npm package","usage":"<%= command.id %> [-d] [-s] [-t <string>] [-a <string>] [--install] [--prerelease <string>] [--verify] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]","pluginName":"@salesforce/plugin-release-management","pluginType":"core","aliases":[],"flags":{"json":{"name":"json","type":"boolean","description":"format output as json","allowNo":false},"loglevel":{"name":"loglevel","type":"option","description":"logging level for this command invocation","required":false,"helpValue":"(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL)","options":["trace","debug","info","warn","error","fatal","TRACE","DEBUG","INFO","WARN","ERROR","FATAL"],"default":"warn"},"dryrun":{"name":"dryrun","type":"boolean","char":"d","description":"If true, will not commit changes to repo or push any tags","allowNo":false},"sign":{"name":"sign","type":"boolean","char":"s","description":"If true, then the package will be signed and the signature will be uploaded to S3","allowNo":false},"npmtag":{"name":"npmtag","type":"option","char":"t","description":"tag to use when publishing to npm","default":"latest"},"npmaccess":{"name":"npmaccess","type":"option","char":"a","description":"access level to use when publishing to npm","default":"public"},"install":{"name":"install","type":"boolean","description":"run yarn install and build on repository","allowNo":true},"prerelease":{"name":"prerelease","type":"option","description":"determine the next version as <version>-<prerelease>.0 if version is not manually set"},"verify":{"name":"verify","type":"boolean","description":"verify npm registry has new version after publish and digital signature","allowNo":true}},"args":[]},"npm:release:validate":{"id":"npm:release:validate","description":"inspects the git commits to see if there are any commits that will warrant a new release","usage":"<%= command.id %> [--verbose] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]","pluginName":"@salesforce/plugin-release-management","pluginType":"core","aliases":[],"flags":{"json":{"name":"json","type":"boolean","description":"format output as json","allowNo":false},"loglevel":{"name":"loglevel","type":"option","description":"logging level for this command invocation","required":false,"helpValue":"(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL)","options":["trace","debug","info","warn","error","fatal","TRACE","DEBUG","INFO","WARN","ERROR","FATAL"],"default":"warn"},"verbose":{"name":"verbose","type":"boolean","description":"show all commits for all packages (only works with --json flag)","allowNo":false}},"args":[]}}}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@salesforce/plugin-release-management",
3
3
  "description": "A plugin for preparing and publishing npm packages",
4
- "version": "2.0.8",
4
+ "version": "2.2.1",
5
5
  "author": "Salesforce",
6
6
  "bugs": "https://github.com/forcedotcom/cli/issues",
7
7
  "bin": {
@@ -118,6 +118,9 @@
118
118
  },
119
119
  "tarballs": {
120
120
  "description": "interact with CLI tarballs"
121
+ },
122
+ "install": {
123
+ "description": "utilities for CLI installation"
121
124
  }
122
125
  }
123
126
  },
@@ -187,7 +190,7 @@
187
190
  "access": "public"
188
191
  },
189
192
  "sfdx": {
190
- "publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-release-management/2.0.8.crt",
191
- "signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-release-management/2.0.8.sig"
193
+ "publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-release-management/2.2.1.crt",
194
+ "signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-release-management/2.2.1.sig"
192
195
  }
193
196
  }