@salesforce/plugin-org 1.9.2 → 1.11.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 +67 -52
- package/LICENSE.txt +1 -1
- package/README.md +129 -14
- package/lib/commands/force/org/beta/create.d.ts +27 -0
- package/lib/commands/force/org/beta/create.js +304 -0
- package/lib/commands/force/org/beta/create.js.map +1 -0
- package/lib/commands/force/org/delete.d.ts +14 -0
- package/lib/commands/force/org/delete.js +61 -0
- package/lib/commands/force/org/delete.js.map +1 -0
- package/lib/commands/force/org/open.js +11 -7
- package/lib/commands/force/org/open.js.map +1 -1
- package/lib/shared/orgHooks.d.ts +22 -0
- package/lib/shared/orgHooks.js +9 -0
- package/lib/shared/orgHooks.js.map +1 -0
- package/lib/shared/orgListUtil.js +2 -2
- package/lib/shared/orgListUtil.js.map +1 -1
- package/lib/shared/sandboxReporter.d.ts +12 -0
- package/lib/shared/sandboxReporter.js +48 -0
- package/lib/shared/sandboxReporter.js.map +1 -0
- package/messages/create.json +37 -0
- package/messages/delete.json +13 -0
- package/messages/open.json +1 -0
- package/oclif.manifest.json +1 -1
- package/package.json +17 -22
package/CHANGELOG.md
CHANGED
|
@@ -2,72 +2,99 @@
|
|
|
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
|
-
### [1.
|
|
5
|
+
### [1.11.1](https://github.com/salesforcecli/plugin-org/compare/v1.11.0...v1.11.1) (2022-01-28)
|
|
6
|
+
|
|
7
|
+
### Features
|
|
6
8
|
|
|
9
|
+
- scratchOrg create ([955667e](https://github.com/salesforcecli/plugin-org/commit/955667e2d3e7e6444903c89ad065b9161444b22b))
|
|
7
10
|
|
|
8
11
|
### Bug Fixes
|
|
9
12
|
|
|
10
|
-
|
|
13
|
+
- add initial org:beta:create command ([1cf6bdb](https://github.com/salesforcecli/plugin-org/commit/1cf6bdb1399e20e2fc72a9f0c15080e95b26e219))
|
|
14
|
+
- add initial org:beta:create command ([d2a89e2](https://github.com/salesforcecli/plugin-org/commit/d2a89e24a956136bb11d161618234b33842787e7))
|
|
15
|
+
- add org:beta:create command for sandboxes, UTs ([654ca50](https://github.com/salesforcecli/plugin-org/commit/654ca50ee2192342c6df382e9e20f8b33f9fd73f))
|
|
16
|
+
- add sandbox create/open/delete NUT ([60c81aa](https://github.com/salesforcecli/plugin-org/commit/60c81aa6330b87cecb06a84cca2994c7d466c3f5))
|
|
17
|
+
- bump testkit to fix yarn.lock ([454afbd](https://github.com/salesforcecli/plugin-org/commit/454afbd6649e2ceaabdaeeb27ce9a3d5e5f9c813))
|
|
18
|
+
- disable nuts-on-windows w/latest ([0bf02b1](https://github.com/salesforcecli/plugin-org/commit/0bf02b191d2ef039c5800ef233bba142b82bf975))
|
|
19
|
+
- manual release for beta:org:create ([a33137f](https://github.com/salesforcecli/plugin-org/commit/a33137f04602bb36033c73132098e311206ebafe))
|
|
20
|
+
- merge conflicts ([cd02453](https://github.com/salesforcecli/plugin-org/commit/cd024538fe2616fe3b46ef477d268e41f2516bea))
|
|
21
|
+
- use compatible types from command/test ([a4de0b0](https://github.com/salesforcecli/plugin-org/commit/a4de0b06be0f899b07a6651b61febf6732069ef0))
|
|
11
22
|
|
|
12
|
-
|
|
23
|
+
## [1.11.0](https://github.com/salesforcecli/plugin-org/compare/v1.10.1...v1.11.0) (2021-12-02)
|
|
24
|
+
|
|
25
|
+
### Features
|
|
26
|
+
|
|
27
|
+
- bump deps ([fbd44e7](https://github.com/salesforcecli/plugin-org/commit/fbd44e7872c691c290a62f8ad739e323854f8de0))
|
|
13
28
|
|
|
29
|
+
### [1.10.1](https://github.com/salesforcecli/plugin-org/compare/v1.10.0...v1.10.1) (2021-12-01)
|
|
14
30
|
|
|
15
31
|
### Bug Fixes
|
|
16
32
|
|
|
17
|
-
|
|
33
|
+
- org:delete scratch org + sandboxes ([#228](https://github.com/salesforcecli/plugin-org/issues/228)) ([ab4b7a2](https://github.com/salesforcecli/plugin-org/commit/ab4b7a234c22d226aa148002daf578ee8a7975e6))
|
|
18
34
|
|
|
19
|
-
## [1.
|
|
35
|
+
## [1.10.0](https://github.com/salesforcecli/plugin-org/compare/v1.9.2...v1.10.0) (2021-11-30)
|
|
36
|
+
|
|
37
|
+
### Features
|
|
38
|
+
|
|
39
|
+
- do not display url for basic org:open ([b20ac79](https://github.com/salesforcecli/plugin-org/commit/b20ac7901bd44a680ac32c0e17ae4398ef97b9ce))
|
|
40
|
+
|
|
41
|
+
### [1.9.2](https://github.com/salesforcecli/plugin-org/compare/v1.9.1...v1.9.2) (2021-11-18)
|
|
42
|
+
|
|
43
|
+
### Bug Fixes
|
|
44
|
+
|
|
45
|
+
- update domain URL to be more secure ([769ddd8](https://github.com/salesforcecli/plugin-org/commit/769ddd8184d43a3e974f539378b8e10768b29eef))
|
|
46
|
+
|
|
47
|
+
### [1.9.1](https://github.com/salesforcecli/plugin-org/compare/v1.9.0...v1.9.1) (2021-11-15)
|
|
48
|
+
|
|
49
|
+
### Bug Fixes
|
|
20
50
|
|
|
51
|
+
- add warning about using --verbose.. ([5bd1511](https://github.com/salesforcecli/plugin-org/commit/5bd151136806b7f3a7056cf5c3a4bdc09a1b0d35))
|
|
52
|
+
|
|
53
|
+
## [1.9.0](https://github.com/salesforcecli/plugin-org/compare/v1.8.4...v1.9.0) (2021-10-22)
|
|
21
54
|
|
|
22
55
|
### Features
|
|
23
56
|
|
|
24
|
-
|
|
57
|
+
- support targeting browser in "open" command ([c06442b](https://github.com/salesforcecli/plugin-org/commit/c06442b9f42641d535674b0f258f2c6039d5370b))
|
|
25
58
|
|
|
26
59
|
### [1.8.4](https://github.com/salesforcecli/plugin-org/compare/v1.8.3...v1.8.4) (2021-10-20)
|
|
27
60
|
|
|
28
|
-
|
|
29
61
|
### Bug Fixes
|
|
30
62
|
|
|
31
|
-
|
|
63
|
+
- remove extraneous single quote ([62269a2](https://github.com/salesforcecli/plugin-org/commit/62269a24d2d0f3cdcd1277882e2ea51e41cb617e))
|
|
32
64
|
|
|
33
65
|
### [1.8.3](https://github.com/salesforcecli/plugin-org/compare/v1.8.2...v1.8.3) (2021-10-13)
|
|
34
66
|
|
|
35
|
-
|
|
36
67
|
### Bug Fixes
|
|
37
68
|
|
|
38
|
-
|
|
69
|
+
- warnings for json, too ([e4d5cf1](https://github.com/salesforcecli/plugin-org/commit/e4d5cf15451f6b4ed36279191655dcbba4e80b51))
|
|
39
70
|
|
|
40
71
|
### [1.8.2](https://github.com/salesforcecli/plugin-org/compare/v1.8.1...v1.8.2) (2021-10-12)
|
|
41
72
|
|
|
42
73
|
### [1.8.1](https://github.com/salesforcecli/plugin-org/compare/v1.8.0...v1.8.1) (2021-10-06)
|
|
43
74
|
|
|
44
|
-
|
|
45
75
|
### Bug Fixes
|
|
46
76
|
|
|
47
|
-
|
|
77
|
+
- update deps ([254039c](https://github.com/salesforcecli/plugin-org/commit/254039c59bbb88a85fe32d0c705a58d808d330df))
|
|
48
78
|
|
|
49
79
|
## [1.8.0](https://github.com/salesforcecli/plugin-org/compare/v1.7.0...v1.8.0) (2021-09-29)
|
|
50
80
|
|
|
51
|
-
|
|
52
81
|
### Features
|
|
53
82
|
|
|
54
|
-
|
|
83
|
+
- security warnings for display/open ([b2599be](https://github.com/salesforcecli/plugin-org/commit/b2599bed02bccf72b8b6a8766334caa41b5603a4))
|
|
55
84
|
|
|
56
85
|
## [1.7.0](https://github.com/salesforcecli/plugin-org/compare/v1.6.9...v1.7.0) (2021-08-20)
|
|
57
86
|
|
|
58
|
-
|
|
59
87
|
### Features
|
|
60
88
|
|
|
61
|
-
|
|
89
|
+
- namespace on orgList ([b1d2c61](https://github.com/salesforcecli/plugin-org/commit/b1d2c616fac9b182f2483685e0fd46fd96a28259))
|
|
62
90
|
|
|
63
91
|
### [1.6.9](https://github.com/salesforcecli/plugin-org/compare/v1.6.7...v1.6.9) (2021-08-05)
|
|
64
92
|
|
|
65
93
|
### [1.6.7](https://github.com/salesforcecli/plugin-org/compare/v1.6.6...v1.6.7) (2021-06-15)
|
|
66
94
|
|
|
67
|
-
|
|
68
95
|
### Bug Fixes
|
|
69
96
|
|
|
70
|
-
|
|
97
|
+
- use most recent alias ([0ab922a](https://github.com/salesforcecli/plugin-org/commit/0ab922a96cab70f64bdc5e4d104b007a34def1b0))
|
|
71
98
|
|
|
72
99
|
### [1.6.6](https://github.com/salesforcecli/plugin-org/compare/v1.6.5...v1.6.6) (2021-05-10)
|
|
73
100
|
|
|
@@ -75,94 +102,82 @@ All notable changes to this project will be documented in this file. See [standa
|
|
|
75
102
|
|
|
76
103
|
### [1.6.4](https://github.com/salesforcecli/plugin-org/compare/v1.6.3...v1.6.4) (2021-04-23)
|
|
77
104
|
|
|
78
|
-
|
|
79
105
|
### Bug Fixes
|
|
80
106
|
|
|
81
|
-
|
|
107
|
+
- force release of 1.6.4 ([50ee064](https://github.com/salesforcecli/plugin-org/commit/50ee064e73f4473c3b0830e5371d30dd09f88085))
|
|
82
108
|
|
|
83
109
|
### [1.6.3](https://github.com/salesforcecli/plugin-org/compare/v1.6.2...v1.6.3) (2021-04-20)
|
|
84
110
|
|
|
85
|
-
|
|
86
111
|
### Bug Fixes
|
|
87
112
|
|
|
88
|
-
|
|
113
|
+
- add missing message ([40d1cca](https://github.com/salesforcecli/plugin-org/commit/40d1ccad42a961d4452f77262b28e87351534b82))
|
|
89
114
|
|
|
90
115
|
### [1.6.2](https://github.com/salesforcecli/plugin-org/compare/v1.6.1...v1.6.2) (2021-04-06)
|
|
91
116
|
|
|
92
|
-
|
|
93
117
|
### Bug Fixes
|
|
94
118
|
|
|
95
|
-
|
|
96
|
-
|
|
119
|
+
- leif .yml merge [skip-validate-pr] ([dd28564](https://github.com/salesforcecli/plugin-org/commit/dd28564f4ae1095ad9f2304a33804ad49f1e6b82))
|
|
120
|
+
- leif .yml merge [skip-validate-pr] ([217473e](https://github.com/salesforcecli/plugin-org/commit/217473e1ddb03dd0a606b0f859322c6d3eeb5421))
|
|
97
121
|
|
|
98
122
|
### [1.6.1](https://github.com/salesforcecli/plugin-org/compare/v1.6.0...v1.6.1) (2021-03-30)
|
|
99
123
|
|
|
100
124
|
## [1.6.0](https://github.com/salesforcecli/plugin-org/compare/v1.3.3...v1.6.0) (2021-03-25)
|
|
101
125
|
|
|
102
|
-
|
|
103
126
|
### Bug Fixes
|
|
104
127
|
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
128
|
+
- clean up a few messages ([3cee3a2](https://github.com/salesforcecli/plugin-org/commit/3cee3a2d71c95b2c37f2fb7c664c0f1a8faad39f))
|
|
129
|
+
- error handling for no scratch org info from the hub ([d536bad](https://github.com/salesforcecli/plugin-org/commit/d536badb53580a73603bc9125a49029f5962cbbe))
|
|
130
|
+
- list command shows orgs that have userId ([b26a656](https://github.com/salesforcecli/plugin-org/commit/b26a656185bd84b182be29fc401231698644b499))
|
|
131
|
+
- shane's suggestion ([0f03592](https://github.com/salesforcecli/plugin-org/commit/0f0359274ca218ac8d6044c9f6282fe85c480d82))
|
|
109
132
|
|
|
110
133
|
### [1.3.3](https://github.com/salesforcecli/plugin-org/compare/v1.3.2...v1.3.3) (2021-03-03)
|
|
111
134
|
|
|
112
|
-
|
|
113
135
|
### Bug Fixes
|
|
114
136
|
|
|
115
|
-
|
|
137
|
+
- no devhub on display ([3d220ab](https://github.com/salesforcecli/plugin-org/commit/3d220ab2cff97a6fc9bfc8697a26606f70a9509e))
|
|
116
138
|
|
|
117
139
|
### [1.3.2](https://github.com/salesforcecli/plugin-org/compare/v1.3.1...v1.3.2) (2021-02-19)
|
|
118
140
|
|
|
119
|
-
|
|
120
141
|
### Bug Fixes
|
|
121
142
|
|
|
122
|
-
|
|
143
|
+
- refresh before reading files ([aa2e612](https://github.com/salesforcecli/plugin-org/commit/aa2e612738718911008b8ceaac2b4507b2fb4d1d))
|
|
123
144
|
|
|
124
145
|
### [1.3.1](https://github.com/salesforcecli/plugin-org/compare/v1.3.0...v1.3.1) (2021-02-16)
|
|
125
146
|
|
|
126
|
-
|
|
127
147
|
### Bug Fixes
|
|
128
148
|
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
149
|
+
- no connectStatus json ([5704c3f](https://github.com/salesforcecli/plugin-org/commit/5704c3f973f0936709347bdfb9acadcf2fd3c90a))
|
|
150
|
+
- no json connectedStatus on skipconnection ([7889c4b](https://github.com/salesforcecli/plugin-org/commit/7889c4ba5110b84357f8ec1f33f81acf51f33a82))
|
|
151
|
+
- org:list updates devhub status ([df45fd9](https://github.com/salesforcecli/plugin-org/commit/df45fd9f3a39d106066d3ccf6450eda38313c152))
|
|
132
152
|
|
|
133
153
|
## [1.3.0](https://github.com/salesforcecli/plugin-org/compare/v1.2.0...v1.3.0) (2021-02-16)
|
|
134
154
|
|
|
135
|
-
|
|
136
155
|
### Features
|
|
137
156
|
|
|
138
|
-
|
|
139
|
-
|
|
157
|
+
- uses default username ([5654f9e](https://github.com/salesforcecli/plugin-org/commit/5654f9e9fd26a421054b6f200a65e56f85e69975))
|
|
140
158
|
|
|
141
159
|
### Bug Fixes
|
|
142
160
|
|
|
143
|
-
|
|
161
|
+
- org:display default username ([bc815da](https://github.com/salesforcecli/plugin-org/commit/bc815da15b3c0a6e910a4b1752ad39489cabc7c9))
|
|
144
162
|
|
|
145
163
|
## [1.2.0](https://github.com/salesforcecli/plugin-org/compare/v1.1.3...v1.2.0) (2021-02-16)
|
|
146
164
|
|
|
147
|
-
|
|
148
165
|
### Features
|
|
149
166
|
|
|
150
|
-
|
|
167
|
+
- add deprecation warning ([64f0f72](https://github.com/salesforcecli/plugin-org/commit/64f0f72f0d4794ae076c71a731552103dc437a49))
|
|
151
168
|
|
|
152
169
|
### [1.1.3](https://github.com/salesforcecli/plugin-org/compare/v1.1.2...v1.1.3) (2021-02-04)
|
|
153
170
|
|
|
154
|
-
|
|
155
171
|
### Bug Fixes
|
|
156
172
|
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
173
|
+
- handle remaining orgs when decryption fails ([6276d49](https://github.com/salesforcecli/plugin-org/commit/6276d49228129cd252e9f8c98fa134146b579891))
|
|
174
|
+
- unencrypt access tokens on org:list ([38f17a0](https://github.com/salesforcecli/plugin-org/commit/38f17a0fed306d0ff0345db1cc466c7e04206379))
|
|
175
|
+
- warning and instructions for unable to clean ([78e7702](https://github.com/salesforcecli/plugin-org/commit/78e7702c3cd19c6f071152e909a5f64551f21de0))
|
|
160
176
|
|
|
161
177
|
### 1.1.2 (2021-02-03)
|
|
162
178
|
|
|
163
|
-
|
|
164
179
|
### Bug Fixes
|
|
165
180
|
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
181
|
+
- ask internal about url, not domain ([dec90df](https://github.com/salesforcecli/plugin-org/commit/dec90dfda8ae7e737580a51f818b50711eea9349))
|
|
182
|
+
- changes from code review ([b0a24a5](https://github.com/salesforcecli/plugin-org/commit/b0a24a51197415ab09b6691912e3f8db030f01d0))
|
|
183
|
+
- default open behavior ([6dc3f2f](https://github.com/salesforcecli/plugin-org/commit/6dc3f2f7ea4b13a0dbcc6adc1b9a135b3e4d7f54))
|
package/LICENSE.txt
CHANGED
package/README.md
CHANGED
|
@@ -77,9 +77,123 @@ sfdx plugins
|
|
|
77
77
|
## Commands
|
|
78
78
|
|
|
79
79
|
<!-- commands -->
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
80
|
+
|
|
81
|
+
- [`sfdx force:org:beta:create [name=value...] [-t scratch|sandbox] [-f <filepath>] [-n] [-c] [-i <string>] [-s] [-a <string>] [-w <minutes>] [-d <integer>] [-v <string>] [-u <string>] [--apiversion <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`](#sfdx-forceorgbetacreate-namevalue--t-scratchsandbox--f-filepath--n--c--i-string--s--a-string--w-minutes--d-integer--v-string--u-string---apiversion-string---json---loglevel-tracedebuginfowarnerrorfataltracedebuginfowarnerrorfatal)
|
|
82
|
+
- [`sfdx force:org:delete [-p] [-v <string>] [-u <string>] [--apiversion <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`](#sfdx-forceorgdelete--p--v-string--u-string---apiversion-string---json---loglevel-tracedebuginfowarnerrorfataltracedebuginfowarnerrorfatal)
|
|
83
|
+
- [`sfdx force:org:display [-u <string>] [--apiversion <string>] [--verbose] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`](#sfdx-forceorgdisplay--u-string---apiversion-string---verbose---json---loglevel-tracedebuginfowarnerrorfataltracedebuginfowarnerrorfatal)
|
|
84
|
+
- [`sfdx force:org:list [--all] [-p --clean] [--skipconnectionstatus] [--verbose] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`](#sfdx-forceorglist---all--p---clean---skipconnectionstatus---verbose---json---loglevel-tracedebuginfowarnerrorfataltracedebuginfowarnerrorfatal)
|
|
85
|
+
- [`sfdx force:org:open [-b <string> | -r] [-p <string>] [-u <string>] [--apiversion <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`](#sfdx-forceorgopen--b-string---r--p-string--u-string---apiversion-string---json---loglevel-tracedebuginfowarnerrorfataltracedebuginfowarnerrorfatal)
|
|
86
|
+
|
|
87
|
+
## `sfdx force:org:beta:create [name=value...] [-t scratch|sandbox] [-f <filepath>] [-n] [-c] [-i <string>] [-s] [-a <string>] [-w <minutes>] [-d <integer>] [-v <string>] [-u <string>] [--apiversion <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`
|
|
88
|
+
|
|
89
|
+
create a scratch or sandbox org
|
|
90
|
+
|
|
91
|
+
```
|
|
92
|
+
create a scratch or sandbox org
|
|
93
|
+
Creates a scratch org or a sandbox org using the values specified in a configuration file or key=value pairs that you specify on the command line. Values specified on the command line override values in the configuration file. Specify a configuration file or provide key=value pairs while creating a scratch org or a sandbox. When creating scratch orgs, —targetdevhubusername (-v) must be a Dev Hub org. When creating sandboxes, the --targetusername (-u) must be a production org with sandbox licenses. The —type (-t) is required if creating a sandbox.
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
USAGE
|
|
98
|
+
$ sfdx force:org:beta:create [name=value...] [-t scratch|sandbox] [-f <filepath>] [-n] [-c] [-i <string>] [-s] [-a
|
|
99
|
+
<string>] [-w <minutes>] [-d <integer>] [-v <string>] [-u <string>] [--apiversion <string>] [--json] [--loglevel
|
|
100
|
+
trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]
|
|
101
|
+
|
|
102
|
+
OPTIONS
|
|
103
|
+
-a, --setalias=setalias alias for the created org
|
|
104
|
+
|
|
105
|
+
-c, --noancestors do not include second-generation
|
|
106
|
+
package ancestors in the scratch org
|
|
107
|
+
|
|
108
|
+
-d, --durationdays=durationdays duration of the scratch org (in
|
|
109
|
+
days) (default:7, min:1, max:30)
|
|
110
|
+
|
|
111
|
+
-f, --definitionfile=definitionfile path to an org definition file
|
|
112
|
+
|
|
113
|
+
-i, --clientid=clientid connected app consumer key; not
|
|
114
|
+
supported for sandbox org creation
|
|
115
|
+
|
|
116
|
+
-n, --nonamespace create the scratch org with no
|
|
117
|
+
namespace
|
|
118
|
+
|
|
119
|
+
-s, --setdefaultusername set the created org as the default
|
|
120
|
+
username
|
|
121
|
+
|
|
122
|
+
-t, --type=(scratch|sandbox) [default: scratch] type of org to
|
|
123
|
+
create
|
|
124
|
+
|
|
125
|
+
-u, --targetusername=targetusername username or alias for the target
|
|
126
|
+
org; overrides default target org
|
|
127
|
+
|
|
128
|
+
-v, --targetdevhubusername=targetdevhubusername username or alias for the dev hub
|
|
129
|
+
org; overrides default dev hub org
|
|
130
|
+
|
|
131
|
+
-w, --wait=wait [default: 6 minutes] the streaming
|
|
132
|
+
client socket timeout (in minutes)
|
|
133
|
+
|
|
134
|
+
--apiversion=apiversion override the api version used for
|
|
135
|
+
api requests made by this command
|
|
136
|
+
|
|
137
|
+
--json format output as json
|
|
138
|
+
|
|
139
|
+
--loglevel=(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL) [default: warn] logging level for
|
|
140
|
+
this command invocation
|
|
141
|
+
|
|
142
|
+
DESCRIPTION
|
|
143
|
+
Creates a scratch org or a sandbox org using the values specified in a configuration file or key=value pairs that you
|
|
144
|
+
specify on the command line. Values specified on the command line override values in the configuration file. Specify a
|
|
145
|
+
configuration file or provide key=value pairs while creating a scratch org or a sandbox. When creating scratch orgs,
|
|
146
|
+
—targetdevhubusername (-v) must be a Dev Hub org. When creating sandboxes, the --targetusername (-u) must be a
|
|
147
|
+
production org with sandbox licenses. The —type (-t) is required if creating a sandbox.
|
|
148
|
+
|
|
149
|
+
EXAMPLES
|
|
150
|
+
$ sfdx force:org:create -f config/enterprise-scratch-def.json -a MyScratchOrg
|
|
151
|
+
$ sfdx force:org:create edition=Developer -a MyScratchOrg -s -v devHub
|
|
152
|
+
$ sfdx force:org:create -f config/enterprise-scratch-def.json -a ScratchOrgWithOverrides
|
|
153
|
+
username=testuser1@mycompany.org
|
|
154
|
+
$ sfdx force:org:create -t sandbox -f config/dev-sandbox-def.json -a MyDevSandbox -u prodOrg
|
|
155
|
+
```
|
|
156
|
+
|
|
157
|
+
_See code: [src/commands/force/org/beta/create.ts](https://github.com/salesforcecli/plugin-org/blob/v1.11.1/src/commands/force/org/beta/create.ts)_
|
|
158
|
+
|
|
159
|
+
## `sfdx force:org:delete [-p] [-v <string>] [-u <string>] [--apiversion <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`
|
|
160
|
+
|
|
161
|
+
mark a scratch or sandbox org for deletion
|
|
162
|
+
|
|
163
|
+
```
|
|
164
|
+
mark a scratch or sandbox org for deletion
|
|
165
|
+
To mark the org for deletion without being prompted to confirm, specify --noprompt.
|
|
166
|
+
|
|
167
|
+
USAGE
|
|
168
|
+
$ sfdx force:org:delete [-p] [-v <string>] [-u <string>] [--apiversion <string>] [--json] [--loglevel
|
|
169
|
+
trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]
|
|
170
|
+
|
|
171
|
+
OPTIONS
|
|
172
|
+
-p, --noprompt no prompt to confirm deletion
|
|
173
|
+
|
|
174
|
+
-u, --targetusername=targetusername username or alias for the target
|
|
175
|
+
org; overrides default target org
|
|
176
|
+
|
|
177
|
+
-v, --targetdevhubusername=targetdevhubusername username or alias for the dev hub
|
|
178
|
+
org; overrides default dev hub org
|
|
179
|
+
|
|
180
|
+
--apiversion=apiversion override the api version used for
|
|
181
|
+
api requests made by this command
|
|
182
|
+
|
|
183
|
+
--json format output as json
|
|
184
|
+
|
|
185
|
+
--loglevel=(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL) [default: warn] logging level for
|
|
186
|
+
this command invocation
|
|
187
|
+
|
|
188
|
+
DESCRIPTION
|
|
189
|
+
To mark the org for deletion without being prompted to confirm, specify --noprompt.
|
|
190
|
+
|
|
191
|
+
EXAMPLES
|
|
192
|
+
$ sfdx force:org:delete -u me@my.org
|
|
193
|
+
$ sfdx force:org:delete -u MyOrgAlias -p
|
|
194
|
+
```
|
|
195
|
+
|
|
196
|
+
_See code: [src/commands/force/org/delete.ts](https://github.com/salesforcecli/plugin-org/blob/v1.11.1/src/commands/force/org/delete.ts)_
|
|
83
197
|
|
|
84
198
|
## `sfdx force:org:display [-u <string>] [--apiversion <string>] [--verbose] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`
|
|
85
199
|
|
|
@@ -92,7 +206,7 @@ Use --verbose to include the SFDX auth URL. WARNING: The SFDX auth URL contains
|
|
|
92
206
|
Including --verbose displays the sfdxAuthUrl property only if you authenticated to the org using auth:web:login (not auth:jwt:grant)
|
|
93
207
|
|
|
94
208
|
USAGE
|
|
95
|
-
$ sfdx force:org:display [-u <string>] [--apiversion <string>] [--verbose] [--json] [--loglevel
|
|
209
|
+
$ sfdx force:org:display [-u <string>] [--apiversion <string>] [--verbose] [--json] [--loglevel
|
|
96
210
|
trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]
|
|
97
211
|
|
|
98
212
|
OPTIONS
|
|
@@ -111,11 +225,11 @@ OPTIONS
|
|
|
111
225
|
stdout
|
|
112
226
|
|
|
113
227
|
DESCRIPTION
|
|
114
|
-
Output includes your access token, client Id, connected status, org ID, instance URL, username, and alias, if
|
|
228
|
+
Output includes your access token, client Id, connected status, org ID, instance URL, username, and alias, if
|
|
115
229
|
applicable.
|
|
116
|
-
Use --verbose to include the SFDX auth URL. WARNING: The SFDX auth URL contains sensitive information, such as a
|
|
230
|
+
Use --verbose to include the SFDX auth URL. WARNING: The SFDX auth URL contains sensitive information, such as a
|
|
117
231
|
refresh token that can be used to access an org. Don't share or distribute this URL or token.
|
|
118
|
-
Including --verbose displays the sfdxAuthUrl property only if you authenticated to the org using auth:web:login (not
|
|
232
|
+
Including --verbose displays the sfdxAuthUrl property only if you authenticated to the org using auth:web:login (not
|
|
119
233
|
auth:jwt:grant)
|
|
120
234
|
|
|
121
235
|
EXAMPLES
|
|
@@ -125,7 +239,7 @@ EXAMPLES
|
|
|
125
239
|
sfdx force:org:display -u TestOrg1 --json > tmp/MyOrgDesc.json
|
|
126
240
|
```
|
|
127
241
|
|
|
128
|
-
_See code: [src/commands/force/org/display.ts](https://github.com/salesforcecli/plugin-org/blob/v1.
|
|
242
|
+
_See code: [src/commands/force/org/display.ts](https://github.com/salesforcecli/plugin-org/blob/v1.11.1/src/commands/force/org/display.ts)_
|
|
129
243
|
|
|
130
244
|
## `sfdx force:org:list [--all] [-p --clean] [--skipconnectionstatus] [--verbose] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`
|
|
131
245
|
|
|
@@ -135,7 +249,7 @@ list all orgs you’ve created or authenticated to
|
|
|
135
249
|
list all orgs you’ve created or authenticated to
|
|
136
250
|
|
|
137
251
|
USAGE
|
|
138
|
-
$ sfdx force:org:list [--all] [-p --clean] [--skipconnectionstatus] [--verbose] [--json] [--loglevel
|
|
252
|
+
$ sfdx force:org:list [--all] [-p --clean] [--skipconnectionstatus] [--verbose] [--json] [--loglevel
|
|
139
253
|
trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]
|
|
140
254
|
|
|
141
255
|
OPTIONS
|
|
@@ -163,7 +277,7 @@ EXAMPLES
|
|
|
163
277
|
sfdx force:org:list --verbose --json > tmp/MyOrgList.json
|
|
164
278
|
```
|
|
165
279
|
|
|
166
|
-
_See code: [src/commands/force/org/list.ts](https://github.com/salesforcecli/plugin-org/blob/v1.
|
|
280
|
+
_See code: [src/commands/force/org/list.ts](https://github.com/salesforcecli/plugin-org/blob/v1.11.1/src/commands/force/org/list.ts)_
|
|
167
281
|
|
|
168
282
|
## `sfdx force:org:open [-b <string> | -r] [-p <string>] [-u <string>] [--apiversion <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`
|
|
169
283
|
|
|
@@ -177,7 +291,7 @@ To generate a URL but not launch it in your browser, specify --urlonly.
|
|
|
177
291
|
To open in a specific browser, use the --browser parameter. Supported browsers are "chrome", "edge", and "firefox". If you don't specify --browser, the org opens in your default browser.
|
|
178
292
|
|
|
179
293
|
USAGE
|
|
180
|
-
$ sfdx force:org:open [-b <string> | -r] [-p <string>] [-u <string>] [--apiversion <string>] [--json] [--loglevel
|
|
294
|
+
$ sfdx force:org:open [-b <string> | -r] [-p <string>] [-u <string>] [--apiversion <string>] [--json] [--loglevel
|
|
181
295
|
trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]
|
|
182
296
|
|
|
183
297
|
OPTIONS
|
|
@@ -200,10 +314,10 @@ OPTIONS
|
|
|
200
314
|
|
|
201
315
|
DESCRIPTION
|
|
202
316
|
To open a specific page, specify the portion of the URL after "https://MyDomainName.my.salesforce.com/" as --path.
|
|
203
|
-
For example, specify "--path lightning" to open Lightning Experience, or specify "--path /apex/YourPage" to open a
|
|
317
|
+
For example, specify "--path lightning" to open Lightning Experience, or specify "--path /apex/YourPage" to open a
|
|
204
318
|
Visualforce page.
|
|
205
319
|
To generate a URL but not launch it in your browser, specify --urlonly.
|
|
206
|
-
To open in a specific browser, use the --browser parameter. Supported browsers are "chrome", "edge", and "firefox". If
|
|
320
|
+
To open in a specific browser, use the --browser parameter. Supported browsers are "chrome", "edge", and "firefox". If
|
|
207
321
|
you don't specify --browser, the org opens in your default browser.
|
|
208
322
|
|
|
209
323
|
EXAMPLES
|
|
@@ -214,5 +328,6 @@ EXAMPLES
|
|
|
214
328
|
sfdx force:org:open -u me@my.org -b firefox
|
|
215
329
|
```
|
|
216
330
|
|
|
217
|
-
_See code: [src/commands/force/org/open.ts](https://github.com/salesforcecli/plugin-org/blob/v1.
|
|
331
|
+
_See code: [src/commands/force/org/open.ts](https://github.com/salesforcecli/plugin-org/blob/v1.11.1/src/commands/force/org/open.ts)_
|
|
332
|
+
|
|
218
333
|
<!-- commandsstop -->
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { FlagsConfig, SfdxCommand } from '@salesforce/command';
|
|
2
|
+
import { AuthFields, SandboxProcessObject, ScratchOrgInfo } from '@salesforce/core';
|
|
3
|
+
export interface ScratchOrgProcessObject {
|
|
4
|
+
username?: string;
|
|
5
|
+
scratchOrgInfo: ScratchOrgInfo;
|
|
6
|
+
authFields?: AuthFields;
|
|
7
|
+
warnings: string[];
|
|
8
|
+
orgId: string;
|
|
9
|
+
}
|
|
10
|
+
export declare class Create extends SfdxCommand {
|
|
11
|
+
static readonly description: string;
|
|
12
|
+
static readonly examples: string[];
|
|
13
|
+
static readonly supportsDevhubUsername = true;
|
|
14
|
+
static readonly supportsUsername = true;
|
|
15
|
+
static readonly varargs = true;
|
|
16
|
+
static readonly flagsConfig: FlagsConfig;
|
|
17
|
+
protected readonly lifecycleEventNames: string[];
|
|
18
|
+
private sandboxAuth?;
|
|
19
|
+
run(): Promise<SandboxProcessObject | ScratchOrgProcessObject>;
|
|
20
|
+
private validateSandboxFlags;
|
|
21
|
+
private lowerToUpper;
|
|
22
|
+
private createSandboxRequest;
|
|
23
|
+
private createSandbox;
|
|
24
|
+
private readJsonDefFile;
|
|
25
|
+
private setAliasAndDefaultUsername;
|
|
26
|
+
private createScratchOrg;
|
|
27
|
+
}
|