@salesforce/plugin-signups 1.2.16 → 1.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (66) hide show
  1. package/lib/commands/org/create/shape.d.ts +19 -0
  2. package/lib/commands/org/create/shape.js +63 -0
  3. package/lib/commands/org/create/shape.js.map +1 -0
  4. package/lib/commands/org/create/snapshot.d.ts +18 -0
  5. package/lib/commands/org/create/snapshot.js +79 -0
  6. package/lib/commands/org/create/snapshot.js.map +1 -0
  7. package/lib/commands/org/delete/shape.d.ts +34 -0
  8. package/lib/commands/org/delete/shape.js +126 -0
  9. package/lib/commands/org/delete/shape.js.map +1 -0
  10. package/lib/commands/org/delete/snapshot.d.ts +16 -0
  11. package/lib/commands/org/delete/snapshot.js +52 -0
  12. package/lib/commands/org/delete/snapshot.js.map +1 -0
  13. package/lib/commands/org/get/snapshot.d.ts +16 -0
  14. package/lib/commands/org/get/snapshot.js +42 -0
  15. package/lib/commands/org/get/snapshot.js.map +1 -0
  16. package/lib/commands/org/list/shape.d.ts +15 -0
  17. package/lib/commands/org/list/shape.js +64 -0
  18. package/lib/commands/org/list/shape.js.map +1 -0
  19. package/lib/commands/org/list/snapshot.d.ts +15 -0
  20. package/lib/commands/org/list/snapshot.js +36 -0
  21. package/lib/commands/org/list/snapshot.js.map +1 -0
  22. package/lib/shared/orgShapeListUtils.d.ts +2 -2
  23. package/lib/shared/orgShapeListUtils.js +1 -1
  24. package/lib/shared/orgShapeListUtils.js.map +1 -1
  25. package/lib/shared/snapshot.d.ts +2 -2
  26. package/lib/shared/snapshot.js +4 -5
  27. package/lib/shared/snapshot.js.map +1 -1
  28. package/messages/shape.create.md +33 -0
  29. package/messages/shape.delete.md +37 -0
  30. package/messages/shape.list.md +29 -0
  31. package/messages/snapshot.create.md +37 -0
  32. package/messages/snapshot.delete.md +29 -0
  33. package/messages/snapshot.get.md +27 -0
  34. package/messages/snapshot.list.md +19 -0
  35. package/messages/snapshot.md +7 -0
  36. package/oclif.manifest.json +1 -1
  37. package/package.json +27 -31
  38. package/lib/commands/force/org/shape/create.d.ts +0 -14
  39. package/lib/commands/force/org/shape/create.js +0 -68
  40. package/lib/commands/force/org/shape/create.js.map +0 -1
  41. package/lib/commands/force/org/shape/delete.d.ts +0 -27
  42. package/lib/commands/force/org/shape/delete.js +0 -122
  43. package/lib/commands/force/org/shape/delete.js.map +0 -1
  44. package/lib/commands/force/org/shape/list.d.ts +0 -9
  45. package/lib/commands/force/org/shape/list.js +0 -63
  46. package/lib/commands/force/org/shape/list.js.map +0 -1
  47. package/lib/commands/force/org/snapshot/create.d.ts +0 -9
  48. package/lib/commands/force/org/snapshot/create.js +0 -64
  49. package/lib/commands/force/org/snapshot/create.js.map +0 -1
  50. package/lib/commands/force/org/snapshot/delete.d.ts +0 -9
  51. package/lib/commands/force/org/snapshot/delete.js +0 -47
  52. package/lib/commands/force/org/snapshot/delete.js.map +0 -1
  53. package/lib/commands/force/org/snapshot/get.d.ts +0 -9
  54. package/lib/commands/force/org/snapshot/get.js +0 -37
  55. package/lib/commands/force/org/snapshot/get.js.map +0 -1
  56. package/lib/commands/force/org/snapshot/list.d.ts +0 -8
  57. package/lib/commands/force/org/snapshot/list.js +0 -29
  58. package/lib/commands/force/org/snapshot/list.js.map +0 -1
  59. package/messages/shape.create.json +0 -16
  60. package/messages/shape.delete.json +0 -25
  61. package/messages/shape.list.json +0 -13
  62. package/messages/snapshot.create.json +0 -19
  63. package/messages/snapshot.delete.json +0 -16
  64. package/messages/snapshot.get.json +0 -15
  65. package/messages/snapshot.json +0 -4
  66. package/messages/snapshot.list.json +0 -9
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SnapshotList = void 0;
4
+ /*
5
+ * Copyright (c) 2020, salesforce.com, inc.
6
+ * All rights reserved.
7
+ * Licensed under the BSD 3-Clause license.
8
+ * For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
9
+ */
10
+ const sf_plugins_core_1 = require("@salesforce/sf-plugins-core");
11
+ const core_1 = require("@salesforce/core");
12
+ const snapshot_1 = require("../../../shared/snapshot");
13
+ core_1.Messages.importMessagesDirectory(__dirname);
14
+ const messages = core_1.Messages.loadMessages('@salesforce/plugin-signups', 'snapshot.list');
15
+ class SnapshotList extends sf_plugins_core_1.SfCommand {
16
+ async run() {
17
+ const { flags } = await this.parse(SnapshotList);
18
+ const results = await (0, snapshot_1.queryAll)(flags['target-dev-hub'].getConnection(flags['api-version']));
19
+ if (!this.jsonEnabled()) {
20
+ (0, snapshot_1.printRecordTable)(results);
21
+ }
22
+ return results;
23
+ }
24
+ }
25
+ exports.SnapshotList = SnapshotList;
26
+ SnapshotList.summary = messages.getMessage('summary');
27
+ SnapshotList.description = messages.getMessage('description');
28
+ SnapshotList.examples = messages.getMessages('examples');
29
+ SnapshotList.aliases = ['force:org:snapshot:list'];
30
+ SnapshotList.deprecateAliases = true;
31
+ SnapshotList.flags = {
32
+ 'target-dev-hub': sf_plugins_core_1.requiredHubFlagWithDeprecations,
33
+ 'api-version': sf_plugins_core_1.orgApiVersionFlagWithDeprecations,
34
+ loglevel: sf_plugins_core_1.loglevel,
35
+ };
36
+ //# sourceMappingURL=snapshot.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"snapshot.js","sourceRoot":"","sources":["../../../../src/commands/org/list/snapshot.ts"],"names":[],"mappings":";;;AAAA;;;;;GAKG;AACH,iEAKqC;AACrC,2CAA4C;AAC5C,uDAAmF;AAEnF,eAAQ,CAAC,uBAAuB,CAAC,SAAS,CAAC,CAAC;AAC5C,MAAM,QAAQ,GAAG,eAAQ,CAAC,YAAY,CAAC,4BAA4B,EAAE,eAAe,CAAC,CAAC;AAEtF,MAAa,YAAa,SAAQ,2BAAwB;IAYjD,KAAK,CAAC,GAAG;QACd,MAAM,EAAE,KAAK,EAAE,GAAG,MAAM,IAAI,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC;QACjD,MAAM,OAAO,GAAG,MAAM,IAAA,mBAAQ,EAAC,KAAK,CAAC,gBAAgB,CAAC,CAAC,aAAa,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC;QAC5F,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE,EAAE;YACvB,IAAA,2BAAgB,EAAC,OAAO,CAAC,CAAC;SAC3B;QACD,OAAO,OAAO,CAAC;IACjB,CAAC;;AAnBH,oCAoBC;AAnBwB,oBAAO,GAAG,QAAQ,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC;AACzC,wBAAW,GAAG,QAAQ,CAAC,UAAU,CAAC,aAAa,CAAC,CAAC;AACjD,qBAAQ,GAAG,QAAQ,CAAC,WAAW,CAAC,UAAU,CAAC,CAAC;AAC5C,oBAAO,GAAG,CAAC,yBAAyB,CAAC,CAAC;AACtC,6BAAgB,GAAG,IAAI,CAAC;AACxB,kBAAK,GAAG;IAC7B,gBAAgB,EAAE,iDAA+B;IACjD,aAAa,EAAE,mDAAiC;IAChD,QAAQ,EAAR,0BAAQ;CACT,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import { OrgAuthorization, Connection } from '@salesforce/core';
2
- export interface OrgShapeListResult {
2
+ export type OrgShapeListResult = {
3
3
  orgId: string;
4
4
  username: string;
5
5
  alias?: string;
@@ -7,7 +7,7 @@ export interface OrgShapeListResult {
7
7
  status: string;
8
8
  createdBy: string;
9
9
  createdDate: string;
10
- }
10
+ };
11
11
  export interface JsForceError extends Error {
12
12
  errorCode: string;
13
13
  fields: string[];
@@ -24,7 +24,7 @@ async function getAllShapesFromOrg(orgAuth) {
24
24
  createdBy: shape.CreatedBy.Username,
25
25
  createdDate: shape.CreatedDate,
26
26
  },
27
- ...(orgAuth.aliases?.length > 0 ? { alias: orgAuth.aliases.join(',') } : {}),
27
+ ...(orgAuth.aliases?.length ? { alias: orgAuth.aliases.join(',') } : {}),
28
28
  }));
29
29
  }
30
30
  catch (err) {
@@ -1 +1 @@
1
- {"version":3,"file":"orgShapeListUtils.js","sourceRoot":"","sources":["../../src/shared/or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MAAM,EAAE,KAAK,CAAC,MAAM;gBACpB,SAAS,EAAE,KAAK,CAAC,SAAS,CAAC,QAAQ;gBACnC,WAAW,EAAE,KAAK,CAAC,WAAW;aAC/B;YACD,GAAG,CAAC,OAAO,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;SACzE,CAAC,CAAC,CAAC;KACL;IAAC,OAAO,GAAG,EAAE;QACZ,MAAM,UAAU,GAAG,GAAmB,CAAC;QACvC,IAAI,UAAU,CAAC,SAAS,KAAK,cAAc,EAAE;YAC3C,OAAO,EAAE,CAAC;SACX;aAAM;YACL,MAAM,CAAC,KAAK,CAAC,KAAK,EAAE,0BAA0B,EAAE,UAAU,CAAC,CAAC;YAC5D,MAAM,UAAU,CAAC;SAClB;KACF;AACH,CAAC;AA7BD,kDA6BC;AAED;;GAEG;AACI,KAAK,UAAU,cAAc,CAAC,IAAgB;IACnD,MAAM,SAAS,GAAG,MAAM,IAAI,CAAC,OAAO,CAAC,KAAK,CACxC,wCAAwC,gBAAgB,EAAE,CAC3D,CAAC;IACF,+DAA+D;IAC/D,OAAO,SAAS,CAAC,SAAS,GAAG,CAAC,IAAI,SAAS,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC,EAAE,wBAAwB,CAAC;AACrF,CAAC;AAND,wCAMC"}
@@ -5,7 +5,7 @@ export interface OrgSnapshotRequest {
5
5
  Description: string;
6
6
  Content?: string;
7
7
  }
8
- export interface OrgSnapshot extends OrgSnapshotRequest {
8
+ export type OrgSnapshot = OrgSnapshotRequest & {
9
9
  Id: string;
10
10
  Status: string;
11
11
  LastClonedDate?: string;
@@ -14,7 +14,7 @@ export interface OrgSnapshot extends OrgSnapshotRequest {
14
14
  LastModifiedDate: string;
15
15
  ExpirationDate?: string;
16
16
  Error?: string;
17
- }
17
+ };
18
18
  export declare const ORG_SNAPSHOT_FIELDS: string[];
19
19
  export declare const queryAll: (conn: Connection) => Promise<OrgSnapshot[]>;
20
20
  export declare const queryByNameOrId: (conn: Connection, nameOrId: string) => Promise<OrgSnapshot>;
@@ -71,7 +71,7 @@ const queryAll = async (conn) => {
71
71
  return result;
72
72
  }
73
73
  catch (e) {
74
- invalidTypeErrorHandler(e);
74
+ return invalidTypeErrorHandler(e);
75
75
  }
76
76
  };
77
77
  exports.queryAll = queryAll;
@@ -85,7 +85,7 @@ const queryByNameOrId = async (conn, nameOrId) => {
85
85
  if (e instanceof core_2.SfError && e.name === 'SingleRecordQuery_NoRecords') {
86
86
  e.message = messages.getMessage('noSnapshots', [nameOrId]);
87
87
  }
88
- invalidTypeErrorHandler(e);
88
+ return invalidTypeErrorHandler(e);
89
89
  }
90
90
  };
91
91
  exports.queryByNameOrId = queryByNameOrId;
@@ -110,9 +110,8 @@ const printRecordTable = (snapshotRecords) => {
110
110
  return;
111
111
  }
112
112
  core_1.CliUx.ux.table(
113
- // snapshotRecords,
114
- // without this, you encounter typing errors from CliUx.ux.table
115
- snapshotRecords.map((s) => ({ ...s })), ORG_SNAPSHOT_COLUMNS, { title: `Org Snapshots [${snapshotRecords.length}]`, 'no-truncate': true });
113
+ // we know what columns we want, so filter out the other fields
114
+ snapshotRecords.map((s) => Object.fromEntries(Object.entries(s).filter(([key]) => Object.keys(ORG_SNAPSHOT_COLUMNS).includes(key)))), ORG_SNAPSHOT_COLUMNS, { title: `Org Snapshots [${snapshotRecords.length}]`, 'no-truncate': true });
116
115
  };
117
116
  exports.printRecordTable = printRecordTable;
118
117
  //# sourceMappingURL=snapshot.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"snapshot.js","sourceRoot":"","sources":["../../src/shared/snapshot.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAEH,sCAAoC;AACpC,2CAAiE;AACjE,6CAA0C;AAE1C,eAAQ,CAAC,uBAAuB,CAAC,SAAS,CAAC,CAAC;AAC5C,MAAM,Q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AA,sBAAsB,0BAgBjC;AAEK,MAAM,gBAAgB,GAAG,CAAC,eAA8B,EAAQ,EAAE;IACvE,IAAI,eAAe,CAAC,MAAM,KAAK,CAAC,EAAE;QAChC,YAAK,CAAC,EAAE,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;QACnC,OAAO;KACR;IAED,YAAK,CAAC,EAAE,CAAC,KAAK;IACZ,+DAA+D;IAC/D,eAAe,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CACxB,MAAM,CAAC,WAAW,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,GAAG,CAAC,EAAE,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,oBAAoB,CAAC,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC,CACzG,EACD,oBAAoB,EACpB,EAAE,KAAK,EAAE,kBAAkB,eAAe,CAAC,MAAM,GAAG,EAAE,aAAa,EAAE,IAAI,EAAE,CAC5E,CAAC;AACJ,CAAC,CAAC;AAdW,QAAA,gBAAgB,oBAc3B"}
@@ -0,0 +1,33 @@
1
+ # summary
2
+
3
+ Create a scratch org configuration (shape) based on the specified source org.
4
+
5
+ # description
6
+
7
+ Scratch org shapes mimic the baseline setup (features, limits, edition, and Metadata API settings) of a source org without the extraneous data and metadata.
8
+
9
+ Run "<%= config.bin %> org list shape" to view the available org shapes and their IDs.
10
+
11
+ To create a scratch org from an org shape, include the "sourceOrg" property in the scratch org definition file and set it to the org ID of the source org. Then create a scratch org with the "<%= config.bin %> force:org:create" command.
12
+
13
+ # examples
14
+
15
+ - Create an org shape for the source org with alias SourceOrg:
16
+
17
+ <%= config.bin %> <%= command.id %> --target-org SourceOrg
18
+
19
+ # ShapeRepresentationNoAccess
20
+
21
+ The org needs to be enabled for org shape before one can be created. %s
22
+
23
+ # NoCrudAccessCreateShape
24
+
25
+ Can't create org shape. Contact the org admin to grant you access to the ShapeRepresentation object. Then try again.
26
+
27
+ # success
28
+
29
+ Successfully created org shape for %s.
30
+
31
+ # ShapeCreateFailed
32
+
33
+ Error creating scratch definition file. Please contact Salesforce support.
@@ -0,0 +1,37 @@
1
+ # summary
2
+
3
+ Delete all org shapes for a target org.
4
+
5
+ # description
6
+
7
+ A source org can have only one active org shape. If you try to create an org shape for a source org that already has one, the previous shape is marked inactive and replaced by a new active shape. If you don’t want to create scratch orgs based on this shape, you can delete the org shape.
8
+
9
+ # examples
10
+
11
+ - Delete all org shapes for the source org with alias SourceOrg:
12
+
13
+ <%= config.bin %> <%= command.id %> --target-org SourceOrg
14
+
15
+ - Delete all org shapes without prompting:
16
+
17
+ <%= config.bin %> <%= command.id %> --target-org SourceOrg --no-prompt
18
+
19
+ # flags.no-prompt.summary
20
+
21
+ Don't prompt for confirmation.
22
+
23
+ # noAccess
24
+
25
+ The org with name: %s needs to be enabled for org shape before shapes can be deleted.
26
+
27
+ # deleteCommandYesNo
28
+
29
+ Delete shapes for org with name: %s? Are you sure (y/n)?
30
+
31
+ # humanSuccess
32
+
33
+ Successfully deleted org shape for %s.
34
+
35
+ # noShapesHumanSuccess
36
+
37
+ Can't delete org shape. No org shape found for org %s.
@@ -0,0 +1,29 @@
1
+ # summary
2
+
3
+ List all org shapes you’ve created.
4
+
5
+ # description
6
+
7
+ The output includes the alias, username, and ID of the source org, the status of the org shape creation, and more. Use the org ID to update your scratch org configuration file so you can create a scratch org based on this org shape.
8
+
9
+ # examples
10
+
11
+ - List all org shapes you've created:
12
+
13
+ <%= config.bin %> <%= command.id %>
14
+
15
+ - List all org shapes in JSON format and write the output to a file:
16
+
17
+ <%= config.bin %> <%= command.id %> --json > tmp/MyOrgShapeList.json
18
+
19
+ # verbose
20
+
21
+ List more information about each org shape.
22
+
23
+ # noOrgShapes
24
+
25
+ No org shapes found.
26
+
27
+ # noAuthFound
28
+
29
+ No authenticated orgs found.
@@ -0,0 +1,37 @@
1
+ # summary
2
+
3
+ Create a snapshot of a scratch org.
4
+
5
+ # description
6
+
7
+ A snapshot is a point-in-time copy of a scratch org. The copy is referenced by its unique name in a scratch org definition file.
8
+
9
+ Use "<%= config.bin %> org get snapshot" to get details, including status, about a snapshot creation request.
10
+
11
+ To create a scratch org from a snapshot, include the "snapshot" option (instead of "edition") in the scratch org definition file and set it to the name of the snapshot. Then use "<%= config.bin %> force:org:create" to create the scratch org.
12
+
13
+ # examples
14
+
15
+ - Create a snapshot called "Dependencies" using the source scratch org ID and your default Dev Hub org:
16
+
17
+ <%= config.bin %> <%= command.id %> --source-org 00Dxx0000000000 --name Dependencies --description 'Contains PackageA v1.1.0'
18
+
19
+ - Create a snapshot called "NightlyBranch" using the source scratch org username and a Dev Hub org with alias NightlyDevHub:
20
+
21
+ <%= config.bin %> <%= command.id %> --source-org myuser@myorg --name NightlyBranch --description 'Contains PkgA v2.1.0 and PkgB 3.3.0' --target-dev-hub NightlyDevHub
22
+
23
+ # flags.name.summary
24
+
25
+ Unique name of snapshot.
26
+
27
+ # flags.description.summary
28
+
29
+ Description of snapshot.
30
+
31
+ # flags.source-org.summary
32
+
33
+ ID or locally authenticated username or alias of scratch org to snapshot.
34
+
35
+ # flags.description.description
36
+
37
+ Use this description to document the contents of the snapshot. We suggest that you include a reference point, such as a version control system tag or commit ID.
@@ -0,0 +1,29 @@
1
+ # summary
2
+
3
+ Delete a scratch org snapshot.
4
+
5
+ # description
6
+
7
+ Dev Hub admins can delete any snapshot, while users can delete only their own unless a Dev Hub admin gives the user Modify All permissions.
8
+
9
+ # examples
10
+
11
+ - Delete a snapshot from the default Dev Hub using the snapshot ID:
12
+
13
+ <%= config.bin %> <%= command.id %> --snapshot 0Oo...
14
+
15
+ - Delete a snapshot from the specified Dev Hub using the snapshot name:
16
+
17
+ <%= config.bin %> <%= command.id %> --snapshot BaseSnapshot --target-dev-hub SnapshotDevHub
18
+
19
+ # flags.snapshot.summary
20
+
21
+ Name or ID of snapshot to delete.
22
+
23
+ # flags.snapshot.description
24
+
25
+ The IDs of scratch org snapshots start with 0Oo.
26
+
27
+ # success
28
+
29
+ Successfully deleted snapshot %s.
@@ -0,0 +1,27 @@
1
+ # summary
2
+
3
+ Get details about a scratch org snapshot.
4
+
5
+ # description
6
+
7
+ Snapshot creation can take a while. Use this command with the snapshot name or ID to check its creation status. After the status changes to Active, you can use the snapshot to create scratch orgs.
8
+
9
+ To create a snapshot, use the "<%= config.bin %> org create snapshot" command. To retrieve a list of all snapshots, use "<%= config.bin %> org list snapshot".
10
+
11
+ # examples
12
+
13
+ - Get snapshot details using its ID and the default Dev Hub org:
14
+
15
+ <%= config.bin %> <%= command.id %> --snapshot 0Oo...
16
+
17
+ - Get snapshot details using its name from a Dev Hub org with alias SnapshotDevHub:
18
+
19
+ <%= config.bin %> <%= command.id %> --snapshot Dependencies --target-dev-hub SnapshotDevHub
20
+
21
+ # flags.snapshot.summary
22
+
23
+ Name or ID of snapshot to retrieve.
24
+
25
+ # flags.snapshot.description
26
+
27
+ The IDs of scratch org snapshots start with 0Oo.
@@ -0,0 +1,19 @@
1
+ # summary
2
+
3
+ List scratch org snapshots.
4
+
5
+ # description
6
+
7
+ You can view all the snapshots in a Dev Hub that you have access to. If you’re an admin, you can see all snapshots associated with the Dev Hub org. If you’re a user, you can see only your snapshots unless a Dev Hub admin gives you View All permissions.
8
+
9
+ To create a snapshot, use the "<%= config.bin %> org create snapshot" command. To get details about a snapshot request, use "<%= config.bin %> org get snapshot".
10
+
11
+ # examples
12
+
13
+ - List snapshots in the default Dev Hub:
14
+
15
+ <%= config.bin %> <%= command.id %>
16
+
17
+ - List snapshots in the Dev Hub with alias SnapshotDevHub:
18
+
19
+ <%= config.bin %> <%= command.id %> --target-dev-hub SnapshotDevHub
@@ -0,0 +1,7 @@
1
+ # noSnapshots
2
+
3
+ No snapshot found with the given name or id: %s
4
+
5
+ # snapshotNotEnabled
6
+
7
+ Org snapshots aren’t enabled for your Dev Hub.
@@ -1 +1 @@
1
- {"version":"1.2.16","commands":{"force:org:shape:create":{"id":"force:org:shape:create","description":"Create a scratch org configuration (shape) based on the specified source org","strict":true,"usage":"<%= command.id %> [-u <string>] [--apiversion <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]","pluginName":"@salesforce/plugin-signups","pluginAlias":"@salesforce/plugin-signups","pluginType":"core","aliases":[],"examples":["$ sfdx force:org:shape:create -u me@my.org","$ sfdx force:org:shape:create -u me@my.org --json --loglevel debug"],"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)","multiple":false,"options":["trace","debug","info","warn","error","fatal","TRACE","DEBUG","INFO","WARN","ERROR","FATAL"],"default":"warn"},"targetusername":{"name":"targetusername","type":"option","char":"u","description":"username or alias for the target org; overrides default target org","multiple":false},"apiversion":{"name":"apiversion","type":"option","description":"override the api version used for api requests made by this command","multiple":false}},"args":[],"requiresUsername":true},"force:org:shape:delete":{"id":"force:org:shape:delete","description":"Delete all org shapes for a target org","strict":true,"usage":"<%= command.id %> [-p] [-u <string>] [--apiversion <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]","pluginName":"@salesforce/plugin-signups","pluginAlias":"@salesforce/plugin-signups","pluginType":"core","aliases":[],"examples":["$ sfdx force:org:shape:delete -u me@my.org","$ sfdx force:org:shape:delete -u MyOrgAlias -p","$ sfdx force:org:shape:delete -u me@my.org --json","$ sfdx force:org:shape:delete -u me@my.org -p --json > tmp/MyOrgShapeDelete.json"],"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)","multiple":false,"options":["trace","debug","info","warn","error","fatal","TRACE","DEBUG","INFO","WARN","ERROR","FATAL"],"default":"warn"},"targetusername":{"name":"targetusername","type":"option","char":"u","description":"username or alias for the target org; overrides default target org","multiple":false},"apiversion":{"name":"apiversion","type":"option","description":"override the api version used for api requests made by this command","multiple":false},"noprompt":{"name":"noprompt","type":"boolean","char":"p","description":"do not prompt for confirmation","allowNo":false}},"args":[],"requiresUsername":true,"flagsConfig":{"noprompt":{"kind":"boolean","char":"p","description":"do not prompt for confirmation","allowNo":false,"type":"boolean"}}},"force:org:shape:list":{"id":"force:org:shape:list","description":"List all org shapes you’ve created","strict":true,"usage":"<%= command.id %> [--verbose] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]","pluginName":"@salesforce/plugin-signups","pluginAlias":"@salesforce/plugin-signups","pluginType":"core","aliases":[],"examples":["$ sfdx force:org:shape:list","$ sfdx force:org:shape:list --json","$ sfdx force:org:shape:list --json > tmp/MyOrgShapeList.json"],"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)","multiple":false,"options":["trace","debug","info","warn","error","fatal","TRACE","DEBUG","INFO","WARN","ERROR","FATAL"],"default":"warn"},"verbose":{"name":"verbose","type":"boolean","description":"list more information about each org shape","allowNo":false}},"args":[],"flagsConfig":{"verbose":{"description":"list more information about each org shape","type":"boolean","kind":"boolean","longDescription":"Emit additional command output to stdout.","allowNo":false}}},"force:org:snapshot:create":{"id":"force:org:snapshot:create","description":"create a snapshot of a scratch org\nA snapshot is a point-in-time copy of a scratch org. The copy is stored in Salesforce and referenced by its unique name in a scratch org definition file.\n\nUse \"sfdx force:org:snapshot:get\" to get details, including status, about a snapshot creation request.\n\nTo create a scratch org from a snapshot, include the \"snapshot\" entry (instead of \"edition\") in the scratch org definition file and set it to the name of the snapshot. Then use \"sfdx force:org:create\" to create the scratch org.","strict":true,"usage":"<%= command.id %> -o <string> -n <string> [-d <string>] [-v <string>] [--apiversion <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]","pluginName":"@salesforce/plugin-signups","pluginAlias":"@salesforce/plugin-signups","pluginType":"core","aliases":[],"examples":["Create a snapshot called \"Dependencies\" using the source scratch org ID:","$ sfdx force:org:snapshot:create --sourceorg 00Dxx0000000000 --snapshotname Dependencies --description 'Contains PackageA v1.1.0'","Create a snapshot called \"NightlyBranch\" using the source scratch org username:","$ sfdx force:org:snapshot:create -o myuser@myorg -n NightlyBranch -d 'Contains PkgA v2.1.0 and PkgB 3.3.0'"],"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)","multiple":false,"options":["trace","debug","info","warn","error","fatal","TRACE","DEBUG","INFO","WARN","ERROR","FATAL"],"default":"warn"},"targetdevhubusername":{"name":"targetdevhubusername","type":"option","char":"v","description":"username or alias for the dev hub org; overrides default dev hub org","multiple":false},"apiversion":{"name":"apiversion","type":"option","description":"override the api version used for api requests made by this command","multiple":false},"sourceorg":{"name":"sourceorg","type":"option","char":"o","description":"ID or locally authenticated username or alias of scratch org to snapshot","required":true,"multiple":false},"snapshotname":{"name":"snapshotname","type":"option","char":"n","description":"unique name of snapshot","required":true,"multiple":false},"description":{"name":"description","type":"option","char":"d","description":"description of snapshot","multiple":false}},"args":[],"requiresDevhubUsername":true,"flagsConfig":{"sourceorg":{"kind":"string","char":"o","description":"ID or locally authenticated username or alias of scratch org to snapshot","longDescription":"The org ID, or a locally authenticated username or alias, of the scratch org to snapshot.","required":true,"input":[],"multiple":false,"type":"option"},"snapshotname":{"kind":"string","char":"n","description":"unique name of snapshot","longDescription":"The unique name of the snapshot. Use this name to create scratch orgs from the snapshot.","required":true,"input":[],"multiple":false,"type":"option"},"description":{"kind":"string","char":"d","description":"description of snapshot","longDescription":"A description of the snapshot. Use this description to document the contents of the snapshot.\nWe suggest that you include a reference point, such as a version control system tag or commit ID.'","input":[],"multiple":false,"type":"option"}}},"force:org:snapshot:delete":{"id":"force:org:snapshot:delete","description":"delete a scratch org snapshot\nDev Hub admins can delete any snapshot, while users can delete only theirs unless a Dev Hub admin gives the user Modify All permissions.","strict":true,"usage":"<%= command.id %> -s <string> [-v <string>] [--apiversion <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]","pluginName":"@salesforce/plugin-signups","pluginAlias":"@salesforce/plugin-signups","pluginType":"core","aliases":[],"examples":["Delete a snapshot from the default Dev Hub using the snapshot ID:","$ sfdx force:org:snapshot:delete --snapshot 0Oo...","Delete a snapshot from the specified Dev Hub using the snapshot name:","$ sfdx force:org:snapshot:delete -s BaseSnapshot -v SnapshotDevHub"],"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)","multiple":false,"options":["trace","debug","info","warn","error","fatal","TRACE","DEBUG","INFO","WARN","ERROR","FATAL"],"default":"warn"},"targetdevhubusername":{"name":"targetdevhubusername","type":"option","char":"v","description":"username or alias for the dev hub org; overrides default dev hub org","multiple":false},"apiversion":{"name":"apiversion","type":"option","description":"override the api version used for api requests made by this command","multiple":false},"snapshot":{"name":"snapshot","type":"option","char":"s","description":"name or ID of snapshot to delete","required":true,"multiple":false}},"args":[],"requiresDevhubUsername":true,"flagsConfig":{"snapshot":{"kind":"string","char":"s","description":"name or ID of snapshot to delete","longDescription":"The name or ID (starts with 0Oo) of the snapshot to delete.","required":true,"input":[],"multiple":false,"type":"option"}}},"force:org:snapshot:get":{"id":"force:org:snapshot:get","description":"get details about a scratch org snapshot\nSnapshot creation can take a while. Use this command with the snapshot name or ID to check its creation status. Once the status changes to Active, you can use the snapshot to create scratch orgs. \n\nTo create a snapshot, use the \"sfdx force:org:snapshot:create\" command. To retrieve a list of all snapshots, use \"sfdx force:org:snapshot:list\".","strict":true,"usage":"<%= command.id %> -s <string> [-v <string>] [--apiversion <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]","pluginName":"@salesforce/plugin-signups","pluginAlias":"@salesforce/plugin-signups","pluginType":"core","aliases":[],"examples":["Get snapshot details using its ID:","$ sfdx force:org:snapshot:get --snapshot 0Oo...","Get snapshot details using its name:","$ sfdx force:org:snapshot:get -s Dependencies"],"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)","multiple":false,"options":["trace","debug","info","warn","error","fatal","TRACE","DEBUG","INFO","WARN","ERROR","FATAL"],"default":"warn"},"targetdevhubusername":{"name":"targetdevhubusername","type":"option","char":"v","description":"username or alias for the dev hub org; overrides default dev hub org","multiple":false},"apiversion":{"name":"apiversion","type":"option","description":"override the api version used for api requests made by this command","multiple":false},"snapshot":{"name":"snapshot","type":"option","char":"s","description":"name or ID of snapshot to retrieve","required":true,"multiple":false}},"args":[],"requiresDevhubUsername":true,"flagsConfig":{"snapshot":{"kind":"string","char":"s","description":"name or ID of snapshot to retrieve","longDescription":"The name or ID (starts with 0Oo) of the snapshot to retrieve.","required":true,"input":[],"multiple":false,"type":"option"}}},"force:org:snapshot:list":{"id":"force:org:snapshot:list","description":"list scratch org snapshots\nYou can view all the snapshots in a Dev Hub that you have access to. If you’re an admin, you can see all snapshots associated with the Dev Hub org. If you’re a user, you can see only your snapshots unless a Dev Hub admin gives you View All permissions.\n\nTo create a snapshot, use the \"sfdx force:org:snapshot:create\" command. To get details about a snapshot request, use \"sfdx force:org:snapshot:get\".","strict":true,"usage":"<%= command.id %> [-v <string>] [--apiversion <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]","pluginName":"@salesforce/plugin-signups","pluginAlias":"@salesforce/plugin-signups","pluginType":"core","aliases":[],"examples":["List snapshots in the default Dev Hub:","$ sfdx force:org:snapshot:list","List snapshots in the Dev Hub with the specified username:","$ sfdx force:org:snapshot:list -v OtherDevHub@example.com"],"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)","multiple":false,"options":["trace","debug","info","warn","error","fatal","TRACE","DEBUG","INFO","WARN","ERROR","FATAL"],"default":"warn"},"targetdevhubusername":{"name":"targetdevhubusername","type":"option","char":"v","description":"username or alias for the dev hub org; overrides default dev hub org","multiple":false},"apiversion":{"name":"apiversion","type":"option","description":"override the api version used for api requests made by this command","multiple":false}},"args":[],"requiresDevhubUsername":true}}}
1
+ {"version":"1.3.0","commands":{"org:create:shape":{"id":"org:create:shape","summary":"Create a scratch org configuration (shape) based on the specified source org.","description":"Scratch org shapes mimic the baseline setup (features, limits, edition, and Metadata API settings) of a source org without the extraneous data and metadata.\n\nRun \"<%= config.bin %> org list shape\" to view the available org shapes and their IDs.\n\nTo create a scratch org from an org shape, include the \"sourceOrg\" property in the scratch org definition file and set it to the org ID of the source org. Then create a scratch org with the \"<%= config.bin %> force:org:create\" command.","strict":true,"pluginName":"@salesforce/plugin-signups","pluginAlias":"@salesforce/plugin-signups","pluginType":"core","aliases":["force:org:shape:create"],"examples":["Create an org shape for the source org with alias SourceOrg:\n<%= config.bin %> <%= command.id %> --target-org SourceOrg"],"deprecateAliases":true,"flags":{"json":{"name":"json","type":"boolean","description":"Format output as json.","helpGroup":"GLOBAL","allowNo":false,"deprecateAliases":true},"target-org":{"name":"target-org","type":"option","char":"o","summary":"Username or alias of the target org.","required":true,"multiple":false,"deprecateAliases":true,"aliases":["targetusername","u"]},"api-version":{"name":"api-version","type":"option","description":"Override the api version used for api requests made by this command","multiple":false,"deprecateAliases":true,"aliases":["apiversion"]},"loglevel":{"name":"loglevel","type":"option","hidden":true,"multiple":false,"deprecated":{"message":"The loglevel flag is no longer in use on this command. You may use it without error, but it will be ignored.\nSet the log level using the `SFDX_LOG_LEVEL` environment variable."},"deprecateAliases":true}},"args":[],"hasDynamicHelp":true},"org:create:snapshot":{"id":"org:create:snapshot","summary":"Create a snapshot of a scratch org.","description":"A snapshot is a point-in-time copy of a scratch org. The copy is referenced by its unique name in a scratch org definition file.\n\nUse \"<%= config.bin %> org get snapshot\" to get details, including status, about a snapshot creation request.\n\nTo create a scratch org from a snapshot, include the \"snapshot\" option (instead of \"edition\") in the scratch org definition file and set it to the name of the snapshot. Then use \"<%= config.bin %> force:org:create\" to create the scratch org.","strict":true,"pluginName":"@salesforce/plugin-signups","pluginAlias":"@salesforce/plugin-signups","pluginType":"core","aliases":["force:org:snapshot:create"],"examples":["Create a snapshot called \"Dependencies\" using the source scratch org ID and your default Dev Hub org:\n<%= config.bin %> <%= command.id %> --source-org 00Dxx0000000000 --name Dependencies --description 'Contains PackageA v1.1.0'","Create a snapshot called \"NightlyBranch\" using the source scratch org username and a Dev Hub org with alias NightlyDevHub:\n<%= config.bin %> <%= command.id %> --source-org myuser@myorg --name NightlyBranch --description 'Contains PkgA v2.1.0 and PkgB 3.3.0' --target-dev-hub NightlyDevHub"],"deprecateAliases":true,"flags":{"json":{"name":"json","type":"boolean","description":"Format output as json.","helpGroup":"GLOBAL","allowNo":false,"deprecateAliases":true},"target-dev-hub":{"name":"target-dev-hub","type":"option","char":"v","summary":"Username or alias of the Dev Hub org.","required":true,"multiple":false,"deprecateAliases":true,"aliases":["targetdevhubusername"]},"api-version":{"name":"api-version","type":"option","description":"Override the api version used for api requests made by this command","multiple":false,"deprecateAliases":true,"aliases":["apiversion"]},"loglevel":{"name":"loglevel","type":"option","hidden":true,"multiple":false,"deprecated":{"message":"The loglevel flag is no longer in use on this command. You may use it without error, but it will be ignored.\nSet the log level using the `SFDX_LOG_LEVEL` environment variable."},"deprecateAliases":true},"source-org":{"name":"source-org","type":"option","char":"o","summary":"ID or locally authenticated username or alias of scratch org to snapshot.","required":true,"multiple":false,"deprecateAliases":true,"aliases":["sourceorg"]},"name":{"name":"name","type":"option","char":"n","summary":"Unique name of snapshot.","required":true,"multiple":false,"deprecateAliases":true,"aliases":["snapshotname"]},"description":{"name":"description","type":"option","char":"d","summary":"Description of snapshot.","description":"Use this description to document the contents of the snapshot. We suggest that you include a reference point, such as a version control system tag or commit ID.","multiple":false,"deprecateAliases":true}},"args":[],"hasDynamicHelp":true},"org:delete:shape":{"id":"org:delete:shape","summary":"Delete all org shapes for a target org.","description":"A source org can have only one active org shape. If you try to create an org shape for a source org that already has one, the previous shape is marked inactive and replaced by a new active shape. If you don’t want to create scratch orgs based on this shape, you can delete the org shape.","strict":true,"pluginName":"@salesforce/plugin-signups","pluginAlias":"@salesforce/plugin-signups","pluginType":"core","aliases":["force:org:shape:delete"],"examples":["Delete all org shapes for the source org with alias SourceOrg:\n<%= config.bin %> <%= command.id %> --target-org SourceOrg","Delete all org shapes without prompting:\n<%= config.bin %> <%= command.id %> --target-org SourceOrg --no-prompt"],"deprecateAliases":true,"flags":{"json":{"name":"json","type":"boolean","description":"Format output as json.","helpGroup":"GLOBAL","allowNo":false,"deprecateAliases":true},"target-org":{"name":"target-org","type":"option","char":"o","summary":"Username or alias of the target org.","required":true,"multiple":false,"deprecateAliases":true,"aliases":["targetusername","u"]},"api-version":{"name":"api-version","type":"option","description":"Override the api version used for api requests made by this command","multiple":false,"deprecateAliases":true,"aliases":["apiversion"]},"loglevel":{"name":"loglevel","type":"option","hidden":true,"multiple":false,"deprecated":{"message":"The loglevel flag is no longer in use on this command. You may use it without error, but it will be ignored.\nSet the log level using the `SFDX_LOG_LEVEL` environment variable."},"deprecateAliases":true},"no-prompt":{"name":"no-prompt","type":"boolean","char":"p","summary":"Don't prompt for confirmation.","allowNo":false,"deprecateAliases":true,"aliases":["noprompt"]}},"args":[],"hasDynamicHelp":true},"org:delete:snapshot":{"id":"org:delete:snapshot","summary":"Delete a scratch org snapshot.","description":"Dev Hub admins can delete any snapshot, while users can delete only their own unless a Dev Hub admin gives the user Modify All permissions.","strict":true,"pluginName":"@salesforce/plugin-signups","pluginAlias":"@salesforce/plugin-signups","pluginType":"core","aliases":["force:org:snapshot:delete"],"examples":["Delete a snapshot from the default Dev Hub using the snapshot ID:\n<%= config.bin %> <%= command.id %> --snapshot 0Oo...","Delete a snapshot from the specified Dev Hub using the snapshot name:\n<%= config.bin %> <%= command.id %> --snapshot BaseSnapshot --target-dev-hub SnapshotDevHub"],"deprecateAliases":true,"flags":{"json":{"name":"json","type":"boolean","description":"Format output as json.","helpGroup":"GLOBAL","allowNo":false,"deprecateAliases":true},"target-dev-hub":{"name":"target-dev-hub","type":"option","char":"v","summary":"Username or alias of the Dev Hub org.","required":true,"multiple":false,"deprecateAliases":true,"aliases":["targetdevhubusername"]},"api-version":{"name":"api-version","type":"option","description":"Override the api version used for api requests made by this command","multiple":false,"deprecateAliases":true,"aliases":["apiversion"]},"loglevel":{"name":"loglevel","type":"option","hidden":true,"multiple":false,"deprecated":{"message":"The loglevel flag is no longer in use on this command. You may use it without error, but it will be ignored.\nSet the log level using the `SFDX_LOG_LEVEL` environment variable."},"deprecateAliases":true},"snapshot":{"name":"snapshot","type":"option","char":"s","summary":"Name or ID of snapshot to delete.","description":"The IDs of scratch org snapshots start with 0Oo.","required":true,"multiple":false,"deprecateAliases":true}},"args":[],"hasDynamicHelp":true},"org:get:snapshot":{"id":"org:get:snapshot","summary":"Get details about a scratch org snapshot.","description":"Snapshot creation can take a while. Use this command with the snapshot name or ID to check its creation status. After the status changes to Active, you can use the snapshot to create scratch orgs.\n\nTo create a snapshot, use the \"<%= config.bin %> org create snapshot\" command. To retrieve a list of all snapshots, use \"<%= config.bin %> org list snapshot\".","strict":true,"pluginName":"@salesforce/plugin-signups","pluginAlias":"@salesforce/plugin-signups","pluginType":"core","aliases":["force:org:snapshot:get"],"examples":["Get snapshot details using its ID and the default Dev Hub org:\n<%= config.bin %> <%= command.id %> --snapshot 0Oo...","Get snapshot details using its name from a Dev Hub org with alias SnapshotDevHub:\n<%= config.bin %> <%= command.id %> --snapshot Dependencies --target-dev-hub SnapshotDevHub"],"deprecateAliases":true,"flags":{"json":{"name":"json","type":"boolean","description":"Format output as json.","helpGroup":"GLOBAL","allowNo":false,"deprecateAliases":true},"target-dev-hub":{"name":"target-dev-hub","type":"option","char":"v","summary":"Username or alias of the Dev Hub org.","required":true,"multiple":false,"deprecateAliases":true,"aliases":["targetdevhubusername"]},"api-version":{"name":"api-version","type":"option","description":"Override the api version used for api requests made by this command","multiple":false,"deprecateAliases":true,"aliases":["apiversion"]},"loglevel":{"name":"loglevel","type":"option","hidden":true,"multiple":false,"deprecated":{"message":"The loglevel flag is no longer in use on this command. You may use it without error, but it will be ignored.\nSet the log level using the `SFDX_LOG_LEVEL` environment variable."},"deprecateAliases":true},"snapshot":{"name":"snapshot","type":"option","char":"s","summary":"Name or ID of snapshot to retrieve.","description":"The IDs of scratch org snapshots start with 0Oo.","required":true,"multiple":false,"deprecateAliases":true}},"args":[],"hasDynamicHelp":true},"org:list:shape":{"id":"org:list:shape","summary":"List all org shapes you’ve created.","description":"The output includes the alias, username, and ID of the source org, the status of the org shape creation, and more. Use the org ID to update your scratch org configuration file so you can create a scratch org based on this org shape.","strict":true,"pluginName":"@salesforce/plugin-signups","pluginAlias":"@salesforce/plugin-signups","pluginType":"core","aliases":["force:org:shape:list"],"examples":["List all org shapes you've created:\n<%= config.bin %> <%= command.id %>","List all org shapes in JSON format and write the output to a file:\n<%= config.bin %> <%= command.id %> --json > tmp/MyOrgShapeList.json"],"deprecateAliases":true,"flags":{"json":{"name":"json","type":"boolean","description":"Format output as json.","helpGroup":"GLOBAL","allowNo":false,"deprecateAliases":true},"verbose":{"name":"verbose","type":"boolean","summary":"List more information about each org shape.","hidden":true,"allowNo":false,"deprecateAliases":true},"loglevel":{"name":"loglevel","type":"option","hidden":true,"multiple":false,"deprecated":{"message":"The loglevel flag is no longer in use on this command. You may use it without error, but it will be ignored.\nSet the log level using the `SFDX_LOG_LEVEL` environment variable."},"deprecateAliases":true}},"args":[]},"org:list:snapshot":{"id":"org:list:snapshot","summary":"List scratch org snapshots.","description":"You can view all the snapshots in a Dev Hub that you have access to. If you’re an admin, you can see all snapshots associated with the Dev Hub org. If you’re a user, you can see only your snapshots unless a Dev Hub admin gives you View All permissions.\n\nTo create a snapshot, use the \"<%= config.bin %> org create snapshot\" command. To get details about a snapshot request, use \"<%= config.bin %> org get snapshot\".","strict":true,"pluginName":"@salesforce/plugin-signups","pluginAlias":"@salesforce/plugin-signups","pluginType":"core","aliases":["force:org:snapshot:list"],"examples":["List snapshots in the default Dev Hub:\n<%= config.bin %> <%= command.id %>","List snapshots in the Dev Hub with alias SnapshotDevHub:\n<%= config.bin %> <%= command.id %> --target-dev-hub SnapshotDevHub"],"deprecateAliases":true,"flags":{"json":{"name":"json","type":"boolean","description":"Format output as json.","helpGroup":"GLOBAL","allowNo":false,"deprecateAliases":true},"target-dev-hub":{"name":"target-dev-hub","type":"option","char":"v","summary":"Username or alias of the Dev Hub org.","required":true,"multiple":false,"deprecateAliases":true,"aliases":["targetdevhubusername"]},"api-version":{"name":"api-version","type":"option","description":"Override the api version used for api requests made by this command","multiple":false,"deprecateAliases":true,"aliases":["apiversion"]},"loglevel":{"name":"loglevel","type":"option","hidden":true,"multiple":false,"deprecated":{"message":"The loglevel flag is no longer in use on this command. You may use it without error, but it will be ignored.\nSet the log level using the `SFDX_LOG_LEVEL` environment variable."},"deprecateAliases":true}},"args":[],"hasDynamicHelp":true}}}
package/package.json CHANGED
@@ -1,44 +1,46 @@
1
1
  {
2
2
  "name": "@salesforce/plugin-signups",
3
3
  "description": "Commands to interact with org shapes",
4
- "version": "1.2.16",
4
+ "version": "1.3.0",
5
5
  "author": "Salesforce",
6
6
  "main": "lib/index.js",
7
7
  "bugs": "https://github.com/forcedotcom/cli/issues",
8
8
  "dependencies": {
9
9
  "@oclif/core": "^1.23.0",
10
- "@salesforce/command": "^5.2.33",
11
10
  "@salesforce/core": "^3.31.17",
11
+ "@salesforce/sf-plugins-core": "^1.21.3",
12
12
  "chalk": "^4.1.2",
13
13
  "change-case": "^4.1.2",
14
14
  "tslib": "^2"
15
15
  },
16
16
  "devDependencies": {
17
- "@oclif/plugin-command-snapshot": "^3.2.11",
18
- "@salesforce/cli-plugins-testkit": "^3.2.15",
17
+ "@oclif/plugin-command-snapshot": "^3.2.16",
18
+ "@salesforce/cli-plugins-testkit": "^3.2.17",
19
19
  "@salesforce/dev-config": "^3.0.1",
20
20
  "@salesforce/dev-scripts": "^3.1.0",
21
- "@salesforce/plugin-command-reference": "^1.5.8",
21
+ "@salesforce/plugin-command-reference": "^2.2.8",
22
22
  "@salesforce/prettier-config": "^0.0.2",
23
- "@salesforce/ts-sinon": "1.4.2",
24
- "@salesforce/ts-types": "^1.5.21",
23
+ "@salesforce/ts-sinon": "1.4.4",
24
+ "@salesforce/ts-types": "^1.7.2",
25
25
  "@swc/core": "^1.3.24",
26
26
  "@types/chai-as-promised": "^7.1.5",
27
27
  "@types/chai-string": "^1.4.2",
28
+ "@types/inquirer": "^9.0.3",
28
29
  "@types/shelljs": "^0.8.11",
29
30
  "@typescript-eslint/eslint-plugin": "^5.45.0",
30
- "@typescript-eslint/parser": "^5.46.1",
31
+ "@typescript-eslint/parser": "^5.47.1",
31
32
  "chai": "^4.3.7",
32
33
  "chai-as-promised": "7.1.1",
33
34
  "chai-string": "^1.5.0",
34
35
  "eslint": "^8.31.0",
35
36
  "eslint-config-prettier": "^8.5.0",
36
37
  "eslint-config-salesforce": "^1.1.0",
37
- "eslint-config-salesforce-license": "^0.1.6",
38
+ "eslint-config-salesforce-license": "^0.2.0",
38
39
  "eslint-config-salesforce-typescript": "^1.1.1",
39
40
  "eslint-plugin-header": "^3.1.1",
40
- "eslint-plugin-import": "^2.26.0",
41
+ "eslint-plugin-import": "^2.27.4",
41
42
  "eslint-plugin-jsdoc": "^39.6.4",
43
+ "eslint-plugin-sf-plugin": "^1.3.1",
42
44
  "husky": "^7.0.4",
43
45
  "mocha": "^9.1.3",
44
46
  "nyc": "^15.1.0",
@@ -76,27 +78,21 @@
76
78
  "@salesforce/plugin-command-reference"
77
79
  ],
78
80
  "topics": {
79
- "force": {
81
+ "org": {
80
82
  "external": true,
83
+ "description": "Commands to manage org shapes and snapshots.",
81
84
  "subtopics": {
82
- "org": {
83
- "subtopics": {
84
- "shape": {
85
- "description": "manage org shape",
86
- "trailblazerCommunityLink": {
87
- "url": "https://success.salesforce.com/_ui/core/chatter/groups/GroupProfilePage?g=0F93A0000009TPk",
88
- "name": "Org Shape for Scratch Orgs"
89
- }
90
- },
91
- "snapshot": {
92
- "description": "manage org snapshots",
93
- "state": "closedPilot",
94
- "trailblazerCommunityLink": {
95
- "url": "https://success.salesforce.com/_ui/core/chatter/groups/GroupProfilePage?g=0F93A00000020d5",
96
- "name": "W19 Pilot: Scratch Org Snapshots"
97
- }
98
- }
99
- }
85
+ "create": {
86
+ "description": "Commands to create org shapes and snapshots."
87
+ },
88
+ "list": {
89
+ "description": "Commands to list org shapes and snapshots."
90
+ },
91
+ "delete": {
92
+ "description": " Commands to delete shapes and snapshots."
93
+ },
94
+ "get": {
95
+ "description": "Commands to get an org snapshot."
100
96
  }
101
97
  }
102
98
  }
@@ -128,7 +124,7 @@
128
124
  "access": "public"
129
125
  },
130
126
  "sfdx": {
131
- "publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-signups/1.2.16.crt",
132
- "signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-signups/1.2.16.sig"
127
+ "publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-signups/1.3.0.crt",
128
+ "signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-signups/1.3.0.sig"
133
129
  }
134
130
  }
@@ -1,14 +0,0 @@
1
- import { SfdxCommand } from '@salesforce/command';
2
- export interface ShapeCreateResult {
3
- shapeId: string;
4
- success: boolean;
5
- errors: [];
6
- }
7
- export declare class OrgShapeCreateCommand extends SfdxCommand {
8
- static readonly description: string;
9
- static readonly examples: string[];
10
- static readonly requiresUsername = true;
11
- private conn;
12
- run(): Promise<ShapeCreateResult>;
13
- private createShapeOrg;
14
- }