@forge/cli 14.0.0-next.8-experimental-6664e2b → 14.1.0-next.1-experimental-13c2f8d
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 +235 -7
- package/README.md +42 -0
- package/docs/local-storage.md +82 -0
- package/npm-shrinkwrap.json +35 -35
- package/out/autocomplete/autocomplete-config.json +3 -0
- package/out/command-line/command.d.ts +4 -1
- package/out/command-line/command.d.ts.map +1 -1
- package/out/command-line/command.js +5 -1
- package/out/command-line/command.js.map +1 -1
- package/out/command-line/controller/local-storage-controller.d.ts +18 -0
- package/out/command-line/controller/local-storage-controller.d.ts.map +1 -0
- package/out/command-line/controller/local-storage-controller.js +52 -0
- package/out/command-line/controller/local-storage-controller.js.map +1 -0
- package/out/command-line/controller/pre-command-controller.d.ts +1 -1
- package/out/command-line/controller/pre-command-controller.d.ts.map +1 -1
- package/out/command-line/controller/pre-command-controller.js.map +1 -1
- package/out/command-line/controller/rollout-controller.d.ts +18 -0
- package/out/command-line/controller/rollout-controller.d.ts.map +1 -0
- package/out/command-line/controller/rollout-controller.js +36 -0
- package/out/command-line/controller/rollout-controller.js.map +1 -0
- package/out/command-line/controller/tunnel-controller.d.ts +3 -1
- package/out/command-line/controller/tunnel-controller.d.ts.map +1 -1
- package/out/command-line/controller/tunnel-controller.js +49 -25
- package/out/command-line/controller/tunnel-controller.js.map +1 -1
- package/out/command-line/dependency-injection.d.ts +6 -0
- package/out/command-line/dependency-injection.d.ts.map +1 -1
- package/out/command-line/dependency-injection.js +23 -6
- package/out/command-line/dependency-injection.js.map +1 -1
- package/out/command-line/index.d.ts.map +1 -1
- package/out/command-line/index.js +3 -0
- package/out/command-line/index.js.map +1 -1
- package/out/command-line/register-installation-commands.d.ts.map +1 -1
- package/out/command-line/register-installation-commands.js +118 -61
- package/out/command-line/register-installation-commands.js.map +1 -1
- package/out/command-line/register-manifest-commands.js +1 -1
- package/out/command-line/register-manifest-commands.js.map +1 -1
- package/out/command-line/register-rollout-commands.d.ts +3 -0
- package/out/command-line/register-rollout-commands.d.ts.map +1 -0
- package/out/command-line/register-rollout-commands.js +30 -0
- package/out/command-line/register-rollout-commands.js.map +1 -0
- package/out/command-line/register-storage-commands.d.ts.map +1 -1
- package/out/command-line/register-storage-commands.js +38 -0
- package/out/command-line/register-storage-commands.js.map +1 -1
- package/out/command-line/register-tunnel-commands.d.ts.map +1 -1
- package/out/command-line/register-tunnel-commands.js +1 -0
- package/out/command-line/register-tunnel-commands.js.map +1 -1
- package/out/command-line/uninstall-command-helpers.d.ts +33 -8
- package/out/command-line/uninstall-command-helpers.d.ts.map +1 -1
- package/out/command-line/uninstall-command-helpers.js +157 -3
- package/out/command-line/uninstall-command-helpers.js.map +1 -1
- package/out/command-line/view/local-storage-view.d.ts +15 -0
- package/out/command-line/view/local-storage-view.d.ts.map +1 -0
- package/out/command-line/view/local-storage-view.js +79 -0
- package/out/command-line/view/local-storage-view.js.map +1 -0
- package/out/command-line/view/rollout-view.d.ts +16 -0
- package/out/command-line/view/rollout-view.d.ts.map +1 -0
- package/out/command-line/view/rollout-view.js +32 -0
- package/out/command-line/view/rollout-view.js.map +1 -0
- package/out/containers/container-command.d.ts +1 -1
- package/out/containers/container-command.d.ts.map +1 -1
- package/out/installations/graphql-client.d.ts.map +1 -1
- package/out/installations/graphql-client.js +18 -7
- package/out/installations/graphql-client.js.map +1 -1
- package/out/installations/uninstall-app.d.ts +8 -0
- package/out/installations/uninstall-app.d.ts.map +1 -1
- package/out/installations/uninstall-app.js +10 -2
- package/out/installations/uninstall-app.js.map +1 -1
- package/out/rollout/graphql-client.d.ts +19 -0
- package/out/rollout/graphql-client.d.ts.map +1 -0
- package/out/rollout/graphql-client.js +61 -0
- package/out/rollout/graphql-client.js.map +1 -0
- package/out/service/installation-service.d.ts +8 -0
- package/out/service/installation-service.d.ts.map +1 -1
- package/out/service/installation-service.js.map +1 -1
- package/out/service/local-storage-lifecycle.d.ts +91 -0
- package/out/service/local-storage-lifecycle.d.ts.map +1 -0
- package/out/service/local-storage-lifecycle.js +167 -0
- package/out/service/local-storage-lifecycle.js.map +1 -0
- package/out/service/local-storage-manifest.d.ts +20 -0
- package/out/service/local-storage-manifest.d.ts.map +1 -0
- package/out/service/local-storage-manifest.js +48 -0
- package/out/service/local-storage-manifest.js.map +1 -0
- package/out/service/local-storage-service.d.ts +58 -0
- package/out/service/local-storage-service.d.ts.map +1 -0
- package/out/service/local-storage-service.js +204 -0
- package/out/service/local-storage-service.js.map +1 -0
- package/out/service/rollout-service.d.ts +9 -0
- package/out/service/rollout-service.d.ts.map +1 -0
- package/out/service/rollout-service.js +19 -0
- package/out/service/rollout-service.js.map +1 -0
- package/out/service/tunnel-service.d.ts.map +1 -1
- package/out/service/tunnel-service.js +14 -5
- package/out/service/tunnel-service.js.map +1 -1
- package/out/service/version-service.d.ts +21 -0
- package/out/service/version-service.d.ts.map +1 -1
- package/out/service/version-service.js +76 -6
- package/out/service/version-service.js.map +1 -1
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,57 @@
|
|
|
1
1
|
# @forge/cli
|
|
2
2
|
|
|
3
|
-
## 14.
|
|
3
|
+
## 14.1.0-next.1-experimental-13c2f8d
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- dc2caec: Added container service definitions and counts to version JSON and file output, including comparison files.
|
|
8
|
+
- 9f27f8a: Update uninstall flow to improve user experience and support global apps
|
|
9
|
+
- 067c20a: Add manifest-driven Docker local storage, seeding, reset, status, persistent lifecycle, and local
|
|
10
|
+
SDK routing for Forge tunnels. Pull the current KVS and SQL emulator images from Atlassian's public
|
|
11
|
+
package registry.
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- 777ea86: Fixed the container service details return type to match the GraphQL services selection, resolving CLI build errors.
|
|
16
|
+
- Updated dependencies [dc2caec]
|
|
17
|
+
- Updated dependencies [9f27f8a]
|
|
18
|
+
- Updated dependencies [067c20a]
|
|
19
|
+
- @forge/manifest@13.5.1-next.0-experimental-13c2f8d
|
|
20
|
+
- @forge/cli-shared@9.7.0-next.1-experimental-13c2f8d
|
|
21
|
+
- @forge/tunnel@7.1.4-next.1-experimental-13c2f8d
|
|
22
|
+
- @forge/bundler@7.2.3-next.1-experimental-13c2f8d
|
|
23
|
+
- @forge/lint@6.2.3-next.1-experimental-13c2f8d
|
|
24
|
+
|
|
25
|
+
## 14.1.0-next.1
|
|
26
|
+
|
|
27
|
+
### Minor Changes
|
|
28
|
+
|
|
29
|
+
- dc2caec: Added container service definitions and counts to version JSON and file output, including comparison files.
|
|
30
|
+
|
|
31
|
+
### Patch Changes
|
|
32
|
+
|
|
33
|
+
- Updated dependencies [dc2caec]
|
|
34
|
+
- @forge/manifest@13.5.1-next.0
|
|
35
|
+
- @forge/bundler@7.2.3-next.1
|
|
36
|
+
- @forge/cli-shared@9.7.0-next.1
|
|
37
|
+
- @forge/lint@6.2.3-next.1
|
|
38
|
+
- @forge/tunnel@7.1.4-next.1
|
|
39
|
+
|
|
40
|
+
## 14.1.0-next.0
|
|
41
|
+
|
|
42
|
+
### Minor Changes
|
|
43
|
+
|
|
44
|
+
- 9f27f8a: Update uninstall flow to improve user experience and support global apps
|
|
45
|
+
|
|
46
|
+
### Patch Changes
|
|
47
|
+
|
|
48
|
+
- Updated dependencies [9f27f8a]
|
|
49
|
+
- @forge/cli-shared@9.7.0-next.0
|
|
50
|
+
- @forge/bundler@7.2.3-next.0
|
|
51
|
+
- @forge/lint@6.2.3-next.0
|
|
52
|
+
- @forge/tunnel@7.1.4-next.0
|
|
53
|
+
|
|
54
|
+
## 14.0.0
|
|
4
55
|
|
|
5
56
|
### Major Changes
|
|
6
57
|
|
|
@@ -14,26 +65,203 @@
|
|
|
14
65
|
|
|
15
66
|
- 406407c: Added secret key support for authorised web-triggers, plus non-expiring keys via `--noKeyExpiry` on `forge webtrigger create` and `secretKeyConfig.noExpiry` in `@forge/api`
|
|
16
67
|
- c7d6a28: Added additional --json to various commands
|
|
68
|
+
- a4ba041: Remove the `-p` shorthand for the `--placement` option of `forge manifest render`, because it is reserved for `--product`. The option is otherwise unchanged.
|
|
69
|
+
- febf70d: Improve forge install list output
|
|
17
70
|
|
|
18
71
|
### Patch Changes
|
|
19
72
|
|
|
73
|
+
- b21641c: Forge install list should just show major version
|
|
74
|
+
- 1b28613: Add building blocks for global app uninstall flow
|
|
75
|
+
- 87d6f62: Add forge rollout command
|
|
20
76
|
- dc18f89: Add new graphql queries for provisioning and deprovisioning installation links
|
|
77
|
+
- c6aca07: [bugfix] Fix issue related to display for forge version commands when using provision on demand flow
|
|
21
78
|
- 445988f: Route CLI warnings and errors to stderr
|
|
79
|
+
- 80c7373: Type fixes for CLI building with appId overrides
|
|
80
|
+
- 60d37d6: Add the required `placementAri` field to the `AppContainerService` fixtures in the show-command tests so `@forge/cli` type-checks against the updated AGG schema.
|
|
22
81
|
- Updated dependencies [28b74f6]
|
|
82
|
+
- Updated dependencies [1b28613]
|
|
83
|
+
- Updated dependencies [dea5ecf]
|
|
23
84
|
- Updated dependencies [4f14f40]
|
|
85
|
+
- Updated dependencies [87d6f62]
|
|
24
86
|
- Updated dependencies [406407c]
|
|
25
87
|
- Updated dependencies [c7d6a28]
|
|
88
|
+
- Updated dependencies [fe8d182]
|
|
26
89
|
- Updated dependencies [445988f]
|
|
90
|
+
- Updated dependencies [a4ba041]
|
|
91
|
+
- Updated dependencies [511fabb]
|
|
27
92
|
- Updated dependencies [cae833a]
|
|
28
93
|
- Updated dependencies [07cdf11]
|
|
29
|
-
- Updated dependencies [
|
|
94
|
+
- Updated dependencies [8693712]
|
|
95
|
+
- Updated dependencies [a5a58d4]
|
|
96
|
+
- Updated dependencies [eda3a24]
|
|
30
97
|
- Updated dependencies [0a75004]
|
|
98
|
+
- Updated dependencies [c146a72]
|
|
99
|
+
- Updated dependencies [3a75c6a]
|
|
31
100
|
- Updated dependencies [150a3c5]
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
- @forge/
|
|
35
|
-
- @forge/
|
|
36
|
-
- @forge/tunnel@7.1.3
|
|
101
|
+
- Updated dependencies [226567e]
|
|
102
|
+
- Updated dependencies [febf70d]
|
|
103
|
+
- @forge/manifest@13.5.0
|
|
104
|
+
- @forge/cli-shared@9.6.0
|
|
105
|
+
- @forge/tunnel@7.1.3
|
|
106
|
+
- @forge/bundler@7.2.2
|
|
107
|
+
- @forge/lint@6.2.2
|
|
108
|
+
|
|
109
|
+
## 14.0.0-next.23
|
|
110
|
+
|
|
111
|
+
### Patch Changes
|
|
112
|
+
|
|
113
|
+
- Updated dependencies [c146a72]
|
|
114
|
+
- @forge/manifest@13.5.0-next.9
|
|
115
|
+
- @forge/bundler@7.2.2-next.19
|
|
116
|
+
- @forge/cli-shared@9.6.0-next.19
|
|
117
|
+
- @forge/lint@6.2.2-next.19
|
|
118
|
+
- @forge/tunnel@7.1.3-next.19
|
|
119
|
+
|
|
120
|
+
## 14.0.0-next.22
|
|
121
|
+
|
|
122
|
+
### Patch Changes
|
|
123
|
+
|
|
124
|
+
- 60d37d6: Add the required `placementAri` field to the `AppContainerService` fixtures in the show-command tests so `@forge/cli` type-checks against the updated AGG schema.
|
|
125
|
+
|
|
126
|
+
## 14.0.0-next.21
|
|
127
|
+
|
|
128
|
+
### Patch Changes
|
|
129
|
+
|
|
130
|
+
- 1b28613: Add building blocks for global app uninstall flow
|
|
131
|
+
- Updated dependencies [1b28613]
|
|
132
|
+
- @forge/cli-shared@9.6.0-next.18
|
|
133
|
+
- @forge/bundler@7.2.2-next.18
|
|
134
|
+
- @forge/lint@6.2.2-next.18
|
|
135
|
+
- @forge/tunnel@7.1.3-next.18
|
|
136
|
+
|
|
137
|
+
## 14.0.0-next.20
|
|
138
|
+
|
|
139
|
+
### Patch Changes
|
|
140
|
+
|
|
141
|
+
- Updated dependencies [3a75c6a]
|
|
142
|
+
- @forge/manifest@13.5.0-next.8
|
|
143
|
+
- @forge/bundler@7.2.2-next.17
|
|
144
|
+
- @forge/cli-shared@9.6.0-next.17
|
|
145
|
+
- @forge/lint@6.2.2-next.17
|
|
146
|
+
- @forge/tunnel@7.1.3-next.17
|
|
147
|
+
|
|
148
|
+
## 14.0.0-next.19
|
|
149
|
+
|
|
150
|
+
### Patch Changes
|
|
151
|
+
|
|
152
|
+
- b21641c: Forge install list should just show major version
|
|
153
|
+
|
|
154
|
+
## 14.0.0-next.18
|
|
155
|
+
|
|
156
|
+
### Patch Changes
|
|
157
|
+
|
|
158
|
+
- 87d6f62: Add forge rollout command
|
|
159
|
+
- Updated dependencies [87d6f62]
|
|
160
|
+
- @forge/cli-shared@9.6.0-next.16
|
|
161
|
+
- @forge/bundler@7.2.2-next.16
|
|
162
|
+
- @forge/lint@6.2.2-next.16
|
|
163
|
+
- @forge/tunnel@7.1.3-next.16
|
|
164
|
+
|
|
165
|
+
## 14.0.0-next.17
|
|
166
|
+
|
|
167
|
+
### Minor Changes
|
|
168
|
+
|
|
169
|
+
- febf70d: Improve forge install list output
|
|
170
|
+
|
|
171
|
+
### Patch Changes
|
|
172
|
+
|
|
173
|
+
- Updated dependencies [febf70d]
|
|
174
|
+
- @forge/cli-shared@9.6.0-next.15
|
|
175
|
+
- @forge/bundler@7.2.2-next.15
|
|
176
|
+
- @forge/lint@6.2.2-next.15
|
|
177
|
+
- @forge/tunnel@7.1.3-next.15
|
|
178
|
+
|
|
179
|
+
## 14.0.0-next.16
|
|
180
|
+
|
|
181
|
+
### Patch Changes
|
|
182
|
+
|
|
183
|
+
- Updated dependencies [8693712]
|
|
184
|
+
- @forge/manifest@13.5.0-next.7
|
|
185
|
+
- @forge/bundler@7.2.2-next.14
|
|
186
|
+
- @forge/cli-shared@9.6.0-next.14
|
|
187
|
+
- @forge/lint@6.2.2-next.14
|
|
188
|
+
- @forge/tunnel@7.1.3-next.14
|
|
189
|
+
|
|
190
|
+
## 14.0.0-next.15
|
|
191
|
+
|
|
192
|
+
### Patch Changes
|
|
193
|
+
|
|
194
|
+
- Updated dependencies [a5a58d4]
|
|
195
|
+
- @forge/cli-shared@9.6.0-next.13
|
|
196
|
+
- @forge/tunnel@7.1.3-next.13
|
|
197
|
+
- @forge/bundler@7.2.2-next.13
|
|
198
|
+
- @forge/lint@6.2.2-next.13
|
|
199
|
+
|
|
200
|
+
## 14.0.0-next.14
|
|
201
|
+
|
|
202
|
+
### Minor Changes
|
|
203
|
+
|
|
204
|
+
- a4ba041: Remove the `-p` shorthand for the `--placement` option of `forge manifest render`, because it is reserved for `--product`. The option is otherwise unchanged.
|
|
205
|
+
|
|
206
|
+
### Patch Changes
|
|
207
|
+
|
|
208
|
+
- Updated dependencies [a4ba041]
|
|
209
|
+
- @forge/cli-shared@9.6.0-next.12
|
|
210
|
+
- @forge/bundler@7.2.2-next.12
|
|
211
|
+
- @forge/lint@6.2.2-next.12
|
|
212
|
+
- @forge/tunnel@7.1.3-next.12
|
|
213
|
+
|
|
214
|
+
## 14.0.0-next.13
|
|
215
|
+
|
|
216
|
+
### Patch Changes
|
|
217
|
+
|
|
218
|
+
- c6aca07: [bugfix] Fix issue related to display for forge version commands when using provision on demand flow
|
|
219
|
+
- Updated dependencies [226567e]
|
|
220
|
+
- @forge/manifest@13.5.0-next.6
|
|
221
|
+
- @forge/bundler@7.2.2-next.11
|
|
222
|
+
- @forge/cli-shared@9.6.0-next.11
|
|
223
|
+
- @forge/lint@6.2.2-next.11
|
|
224
|
+
- @forge/tunnel@7.1.3-next.11
|
|
225
|
+
|
|
226
|
+
## 14.0.0-next.12
|
|
227
|
+
|
|
228
|
+
### Patch Changes
|
|
229
|
+
|
|
230
|
+
- Updated dependencies [dea5ecf]
|
|
231
|
+
- @forge/manifest@13.5.0-next.5
|
|
232
|
+
- @forge/bundler@7.2.2-next.10
|
|
233
|
+
- @forge/cli-shared@9.6.0-next.10
|
|
234
|
+
- @forge/lint@6.2.2-next.10
|
|
235
|
+
- @forge/tunnel@7.1.3-next.10
|
|
236
|
+
|
|
237
|
+
## 14.0.0-next.11
|
|
238
|
+
|
|
239
|
+
### Patch Changes
|
|
240
|
+
|
|
241
|
+
- Updated dependencies [511fabb]
|
|
242
|
+
- @forge/manifest@13.5.0-next.4
|
|
243
|
+
- @forge/bundler@7.2.2-next.9
|
|
244
|
+
- @forge/cli-shared@9.6.0-next.9
|
|
245
|
+
- @forge/lint@6.2.2-next.9
|
|
246
|
+
- @forge/tunnel@7.1.3-next.9
|
|
247
|
+
|
|
248
|
+
## 14.0.0-next.10
|
|
249
|
+
|
|
250
|
+
### Patch Changes
|
|
251
|
+
|
|
252
|
+
- 80c7373: Type fixes for CLI building with appId overrides
|
|
253
|
+
|
|
254
|
+
## 14.0.0-next.9
|
|
255
|
+
|
|
256
|
+
### Patch Changes
|
|
257
|
+
|
|
258
|
+
- Updated dependencies [fe8d182]
|
|
259
|
+
- Updated dependencies [eda3a24]
|
|
260
|
+
- @forge/manifest@13.5.0-next.3
|
|
261
|
+
- @forge/bundler@7.2.2-next.8
|
|
262
|
+
- @forge/cli-shared@9.6.0-next.8
|
|
263
|
+
- @forge/lint@6.2.2-next.8
|
|
264
|
+
- @forge/tunnel@7.1.3-next.8
|
|
37
265
|
|
|
38
266
|
## 14.0.0-next.8
|
|
39
267
|
|
package/README.md
CHANGED
|
@@ -85,6 +85,48 @@ CLI Experience
|
|
|
85
85
|
(Rovo/Gemini)
|
|
86
86
|
```
|
|
87
87
|
|
|
88
|
+
## Local storage
|
|
89
|
+
|
|
90
|
+
Run KVS, Custom Entities, Secret Store, and Forge SQL on your computer with Docker. Your app
|
|
91
|
+
continues to use the normal `@forge/kvs` and `@forge/sql` APIs.
|
|
92
|
+
|
|
93
|
+
Start Docker, then run these commands from your Forge app directory:
|
|
94
|
+
|
|
95
|
+
```sh
|
|
96
|
+
forge storage local start
|
|
97
|
+
forge storage local status
|
|
98
|
+
forge tunnel --local-storage
|
|
99
|
+
```
|
|
100
|
+
|
|
101
|
+
Your `manifest.yml` determines which capabilities are available:
|
|
102
|
+
|
|
103
|
+
- Add `storage:app` to `permissions.scopes` for KVS, Custom Entities, and Secret Store.
|
|
104
|
+
- Declare Custom Entity attributes and indexes under `app.storage.entities`.
|
|
105
|
+
- Add `modules.sql` for Forge SQL.
|
|
106
|
+
|
|
107
|
+
To load development data, use a JSON seed file for KVS, Custom Entities, and secrets, or a SQL
|
|
108
|
+
file for Forge SQL:
|
|
109
|
+
|
|
110
|
+
```sh
|
|
111
|
+
forge storage local seed --kvs ./kvs-seed.json
|
|
112
|
+
forge storage local seed --sql ./sql-seed.sql
|
|
113
|
+
forge storage local seed --kvs ./kvs-seed.json --sql ./sql-seed.sql
|
|
114
|
+
```
|
|
115
|
+
|
|
116
|
+
See the existing [JSON seed example](./docs/local-storage.md#kvs-custom-entity-and-secret-seeding)
|
|
117
|
+
and [SQL seed example](./docs/local-storage.md#sql-seeding) for file formats and examples.
|
|
118
|
+
Running `forge storage local seed` without flags shows format help. Do not commit seed files
|
|
119
|
+
containing secrets.
|
|
120
|
+
|
|
121
|
+
Use `forge storage local reset --kvs` or `forge storage local reset --sql` to clear one capability.
|
|
122
|
+
Running `forge storage local reset` clears all configured local storage for the current app.
|
|
123
|
+
Use `forge storage local stop` to stop the containers while preserving data for the next start.
|
|
124
|
+
Exiting a tunnel started with `--local-storage` also stops its local-storage containers and preserves
|
|
125
|
+
data. Local app data is separate from hosted storage and from other apps' local data.
|
|
126
|
+
|
|
127
|
+
Docker must be running, and ports `18090` (KVS) and `18091` (SQL) must be available. Local storage
|
|
128
|
+
is intended for development and does not replace testing against hosted Forge services.
|
|
129
|
+
|
|
88
130
|
## Support
|
|
89
131
|
|
|
90
132
|
See [Get help](https://developer.atlassian.com/platform/forge/get-help/) for how to get help and provide feedback.
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
# Local storage reference
|
|
2
|
+
|
|
3
|
+
For requirements, manifest configuration, and commands, see [Local storage in the Forge CLI README](../README.md#local-storage).
|
|
4
|
+
|
|
5
|
+
## KVS, Custom Entity, and Secret seeding
|
|
6
|
+
|
|
7
|
+
The KVS seed file is strict JSON:
|
|
8
|
+
|
|
9
|
+
```json
|
|
10
|
+
{
|
|
11
|
+
"kvs": [
|
|
12
|
+
{ "key": "user:1", "value": { "name": "Ada", "active": true } }
|
|
13
|
+
],
|
|
14
|
+
"customEntities": [
|
|
15
|
+
{
|
|
16
|
+
"entityName": "employee",
|
|
17
|
+
"key": "employee:1",
|
|
18
|
+
"value": { "name": "Ada", "department": "Engineering" }
|
|
19
|
+
}
|
|
20
|
+
],
|
|
21
|
+
"secrets": [
|
|
22
|
+
{ "key": "example-api-key", "value": "local-development-value" }
|
|
23
|
+
]
|
|
24
|
+
}
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
The CLI validates the object shape, key/value limits, duplicate storage locations, entity names,
|
|
28
|
+
and entity attribute types before starting or mutating storage. The emulator validates the complete
|
|
29
|
+
request before applying it transactionally. Secret values are plaintext local-development data but
|
|
30
|
+
remain on the separate, non-queryable Secret Store surface. Do not commit seed files containing
|
|
31
|
+
secrets.
|
|
32
|
+
|
|
33
|
+
## SQL seeding
|
|
34
|
+
|
|
35
|
+
SQL seed files contain ordinary MySQL/TiDB statements separated by semicolons:
|
|
36
|
+
|
|
37
|
+
```sql
|
|
38
|
+
CREATE TABLE people (id INT PRIMARY KEY, name VARCHAR(64));
|
|
39
|
+
INSERT INTO people (id, name) VALUES (1, 'Ada');
|
|
40
|
+
UPDATE people SET name = 'Ada Lovelace' WHERE id = 1;
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
Statements execute in file order in one emulator transaction. Quoted semicolons and SQL comments
|
|
44
|
+
are supported. A failure reports the failing statement number, text, and SQL error. DML-only seed
|
|
45
|
+
batches roll back on failure. TiDB implicitly commits DDL, so a seed that mixes DDL with later
|
|
46
|
+
statements can leave the schema and intervening writes applied when a later statement fails; use
|
|
47
|
+
idempotent DDL or reset SQL after such a failure. Stored procedures that depend on client-side
|
|
48
|
+
`DELIMITER` directives are not supported by the core parser.
|
|
49
|
+
|
|
50
|
+
When both seed flags are present, files are fully parsed before either offering is changed. KVS and
|
|
51
|
+
SQL then run independently and produce separate results; if only one succeeds, the overall command
|
|
52
|
+
fails after showing that partial completion. Running `forge storage local seed` without flags prints
|
|
53
|
+
the supported formats and does not change data.
|
|
54
|
+
|
|
55
|
+
## Reset semantics
|
|
56
|
+
|
|
57
|
+
- `reset --kvs` clears KVS, Custom Entity, and Secret Store data for the current app only. SQL is
|
|
58
|
+
preserved.
|
|
59
|
+
- `reset --sql` drops and recreates the current app's empty SQL namespace. KVS-backed data is
|
|
60
|
+
preserved.
|
|
61
|
+
- bare `reset` clears every offering configured by the current manifest.
|
|
62
|
+
|
|
63
|
+
There are deliberately no `--all`, `--yes`, or `--allow-write` reset options.
|
|
64
|
+
|
|
65
|
+
## Tunnel routing and shutdown
|
|
66
|
+
|
|
67
|
+
`forge tunnel --local-storage` starts the storage capabilities configured in your manifest and routes
|
|
68
|
+
`@forge/kvs` and `@forge/sql` calls to local storage. Your app code does not change.
|
|
69
|
+
|
|
70
|
+
When the tunnel exits or fails to start, its local-storage containers stop, including containers
|
|
71
|
+
that were already running before the tunnel started. Data is preserved for the next start.
|
|
72
|
+
Without `--local-storage`, the tunnel continues to use hosted storage.
|
|
73
|
+
|
|
74
|
+
## Troubleshooting and limitations
|
|
75
|
+
|
|
76
|
+
- Start Docker before running a local-storage command.
|
|
77
|
+
- Free ports `18090` (KVS) and `18091` (SQL) if startup reports a port conflict.
|
|
78
|
+
- Use `forge storage local status` to check which capabilities are configured, running, and healthy.
|
|
79
|
+
- If an image download fails, check your connection to the registry shown in the error and try again.
|
|
80
|
+
- Local storage is intended for development. Test against hosted Forge services before deploying.
|
|
81
|
+
- Interactive inspection, REPL, and ad hoc query commands are not currently available. Use your app's
|
|
82
|
+
normal `@forge/kvs` and `@forge/sql` calls to read or update local data.
|
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@forge/cli",
|
|
3
|
-
"version": "14.
|
|
3
|
+
"version": "14.1.0-next.1-experimental-13c2f8d",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "@forge/cli",
|
|
9
|
-
"version": "14.
|
|
9
|
+
"version": "14.1.0-next.1-experimental-13c2f8d",
|
|
10
10
|
"hasInstallScript": true,
|
|
11
11
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"@forge/bundler": "7.2.
|
|
14
|
-
"@forge/cli-shared": "9.
|
|
13
|
+
"@forge/bundler": "7.2.3-next.1-experimental-13c2f8d",
|
|
14
|
+
"@forge/cli-shared": "9.7.0-next.1-experimental-13c2f8d",
|
|
15
15
|
"@forge/egress": "3.0.0",
|
|
16
16
|
"@forge/i18n": "1.0.0",
|
|
17
|
-
"@forge/lint": "6.2.
|
|
18
|
-
"@forge/manifest": "13.5.
|
|
17
|
+
"@forge/lint": "6.2.3-next.1-experimental-13c2f8d",
|
|
18
|
+
"@forge/manifest": "13.5.1-next.0-experimental-13c2f8d",
|
|
19
19
|
"@forge/runtime": "7.0.0",
|
|
20
|
-
"@forge/tunnel": "7.1.
|
|
20
|
+
"@forge/tunnel": "7.1.4-next.1-experimental-13c2f8d",
|
|
21
21
|
"@forge/util": "3.0.0",
|
|
22
22
|
"@sentry/node": "7.106.0",
|
|
23
23
|
"ajv": "^8.18.0",
|
|
@@ -543,9 +543,9 @@
|
|
|
543
543
|
}
|
|
544
544
|
},
|
|
545
545
|
"node_modules/@forge/bundler": {
|
|
546
|
-
"version": "7.2.
|
|
547
|
-
"resolved": "https://registry.npmjs.org/@forge/bundler/-/bundler-7.2.
|
|
548
|
-
"integrity": "sha512-
|
|
546
|
+
"version": "7.2.3-next.1-experimental-13c2f8d",
|
|
547
|
+
"resolved": "https://registry.npmjs.org/@forge/bundler/-/bundler-7.2.3-next.1-experimental-13c2f8d.tgz",
|
|
548
|
+
"integrity": "sha512-ruaAS0vrHMmx8/i58abfgKPksFbfSuNmhl6LakqlbyHFFgXquJmjqV2WRgCXTpYf3WNrtXTLtcoUjtZzL9vGfQ==",
|
|
549
549
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
550
550
|
"dependencies": {
|
|
551
551
|
"@babel/core": "^7.24.0",
|
|
@@ -557,10 +557,10 @@
|
|
|
557
557
|
"@babel/plugin-transform-react-jsx": "^7.23.4",
|
|
558
558
|
"@babel/traverse": "^7.24.0",
|
|
559
559
|
"@babel/types": "^7.24.0",
|
|
560
|
-
"@forge/cli-shared": "9.
|
|
560
|
+
"@forge/cli-shared": "9.7.0-next.1-experimental-13c2f8d",
|
|
561
561
|
"@forge/i18n": "1.0.0",
|
|
562
|
-
"@forge/lint": "6.2.
|
|
563
|
-
"@forge/manifest": "13.5.
|
|
562
|
+
"@forge/lint": "6.2.3-next.1-experimental-13c2f8d",
|
|
563
|
+
"@forge/manifest": "13.5.1-next.0-experimental-13c2f8d",
|
|
564
564
|
"babel-loader": "^8.3.0",
|
|
565
565
|
"cheerio": "^1.2.0",
|
|
566
566
|
"chokidar": "^4.0.3",
|
|
@@ -589,13 +589,13 @@
|
|
|
589
589
|
}
|
|
590
590
|
},
|
|
591
591
|
"node_modules/@forge/cli-shared": {
|
|
592
|
-
"version": "9.
|
|
593
|
-
"resolved": "https://registry.npmjs.org/@forge/cli-shared/-/cli-shared-9.
|
|
594
|
-
"integrity": "sha512-
|
|
592
|
+
"version": "9.7.0-next.1-experimental-13c2f8d",
|
|
593
|
+
"resolved": "https://registry.npmjs.org/@forge/cli-shared/-/cli-shared-9.7.0-next.1-experimental-13c2f8d.tgz",
|
|
594
|
+
"integrity": "sha512-NMLTwniwyuSSLrJ5jE/KLM6K1J/ieW4N/5/HnhvQzAxN5qRJ5aL5Mht0yWo6TgonSCAXG1p7StiNM5Z9k/IxOg==",
|
|
595
595
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
596
596
|
"dependencies": {
|
|
597
597
|
"@forge/i18n": "1.0.0",
|
|
598
|
-
"@forge/manifest": "13.5.
|
|
598
|
+
"@forge/manifest": "13.5.1-next.0-experimental-13c2f8d",
|
|
599
599
|
"@forge/util": "3.0.0",
|
|
600
600
|
"@sentry/node": "7.106.0",
|
|
601
601
|
"@vercel/detect-agent": "^1.2.3",
|
|
@@ -640,9 +640,9 @@
|
|
|
640
640
|
}
|
|
641
641
|
},
|
|
642
642
|
"node_modules/@forge/csp": {
|
|
643
|
-
"version": "6.3.1-experimental-
|
|
644
|
-
"resolved": "https://registry.npmjs.org/@forge/csp/-/csp-6.3.1-experimental-
|
|
645
|
-
"integrity": "sha512-
|
|
643
|
+
"version": "6.3.1-experimental-13c2f8d",
|
|
644
|
+
"resolved": "https://registry.npmjs.org/@forge/csp/-/csp-6.3.1-experimental-13c2f8d.tgz",
|
|
645
|
+
"integrity": "sha512-7tRwK71gJapzFJm/x83pk2gAumhz+rINgTe3P1ZGg1GgXF80mXznp62CDrZEQkmA1Zw/VNFcZhEbBTGxaPi/eg==",
|
|
646
646
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
647
647
|
"dependencies": {
|
|
648
648
|
"content-security-policy-parser": "^0.6.0"
|
|
@@ -692,16 +692,16 @@
|
|
|
692
692
|
}
|
|
693
693
|
},
|
|
694
694
|
"node_modules/@forge/lint": {
|
|
695
|
-
"version": "6.2.
|
|
696
|
-
"resolved": "https://registry.npmjs.org/@forge/lint/-/lint-6.2.
|
|
697
|
-
"integrity": "sha512-
|
|
695
|
+
"version": "6.2.3-next.1-experimental-13c2f8d",
|
|
696
|
+
"resolved": "https://registry.npmjs.org/@forge/lint/-/lint-6.2.3-next.1-experimental-13c2f8d.tgz",
|
|
697
|
+
"integrity": "sha512-8/ohCEq5hhzhqEKJGLHvJsO3t1uSGx9fj9fsiGgw1spMcsCJQItuPNnmwx7wxMYQvHEYy+0nAnwaqXVSWGEvFg==",
|
|
698
698
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
699
699
|
"dependencies": {
|
|
700
700
|
"@atlassian/atlassian-openapi": "^1.0.6",
|
|
701
|
-
"@forge/cli-shared": "9.
|
|
702
|
-
"@forge/csp": "6.3.1-experimental-
|
|
701
|
+
"@forge/cli-shared": "9.7.0-next.1-experimental-13c2f8d",
|
|
702
|
+
"@forge/csp": "6.3.1-experimental-13c2f8d",
|
|
703
703
|
"@forge/egress": "3.0.0",
|
|
704
|
-
"@forge/manifest": "13.5.
|
|
704
|
+
"@forge/manifest": "13.5.1-next.0-experimental-13c2f8d",
|
|
705
705
|
"@typescript-eslint/typescript-estree": "^5.62.0",
|
|
706
706
|
"archiver": "^8.0.0",
|
|
707
707
|
"array.prototype.flatmap": "^1.3.3",
|
|
@@ -719,9 +719,9 @@
|
|
|
719
719
|
}
|
|
720
720
|
},
|
|
721
721
|
"node_modules/@forge/manifest": {
|
|
722
|
-
"version": "13.5.
|
|
723
|
-
"resolved": "https://registry.npmjs.org/@forge/manifest/-/manifest-13.5.
|
|
724
|
-
"integrity": "sha512-
|
|
722
|
+
"version": "13.5.1-next.0-experimental-13c2f8d",
|
|
723
|
+
"resolved": "https://registry.npmjs.org/@forge/manifest/-/manifest-13.5.1-next.0-experimental-13c2f8d.tgz",
|
|
724
|
+
"integrity": "sha512-zavazmMe9ENy4W3H7U/HXCjhrZKZZ0y/GtqNnIgI8jOrSGhYm4aApR+0VnY+kMlCDppbg6DIlRQRwfarNJ/lmg==",
|
|
725
725
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
726
726
|
"dependencies": {
|
|
727
727
|
"@forge/i18n": "1.0.0",
|
|
@@ -758,14 +758,14 @@
|
|
|
758
758
|
}
|
|
759
759
|
},
|
|
760
760
|
"node_modules/@forge/tunnel": {
|
|
761
|
-
"version": "7.1.
|
|
762
|
-
"resolved": "https://registry.npmjs.org/@forge/tunnel/-/tunnel-7.1.
|
|
763
|
-
"integrity": "sha512-
|
|
761
|
+
"version": "7.1.4-next.1-experimental-13c2f8d",
|
|
762
|
+
"resolved": "https://registry.npmjs.org/@forge/tunnel/-/tunnel-7.1.4-next.1-experimental-13c2f8d.tgz",
|
|
763
|
+
"integrity": "sha512-0x1+U45JcLtMAXZbqNYXM7lso0yutpxeR4O/s1dqMO/LndstYH/wvqQx0a7l03m3vk0RTjHBE/P7ugClO4yWxg==",
|
|
764
764
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
765
765
|
"dependencies": {
|
|
766
|
-
"@forge/bundler": "7.2.
|
|
767
|
-
"@forge/cli-shared": "9.
|
|
768
|
-
"@forge/csp": "6.3.1-experimental-
|
|
766
|
+
"@forge/bundler": "7.2.3-next.1-experimental-13c2f8d",
|
|
767
|
+
"@forge/cli-shared": "9.7.0-next.1-experimental-13c2f8d",
|
|
768
|
+
"@forge/csp": "6.3.1-experimental-13c2f8d",
|
|
769
769
|
"@forge/runtime": "7.0.0",
|
|
770
770
|
"@forge/util": "^3.0.0",
|
|
771
771
|
"cheerio": "^1.2.0",
|
|
@@ -82,7 +82,7 @@ export declare class Command<Args extends AnyArgs = [], Opts extends AnyOpts = D
|
|
|
82
82
|
}>;
|
|
83
83
|
requireAppId(allowOverride: true): Command<Args, Opts & {
|
|
84
84
|
appIdOverride: string | undefined;
|
|
85
|
-
appId
|
|
85
|
+
appId: string;
|
|
86
86
|
}>;
|
|
87
87
|
nonInteractiveOption(...args: RequiredOptionFlag[]): Command<Args, Opts & {
|
|
88
88
|
nonInteractive?: boolean;
|
|
@@ -97,6 +97,9 @@ export declare class Command<Args extends AnyArgs = [], Opts extends AnyOpts = D
|
|
|
97
97
|
site?: URL;
|
|
98
98
|
product?: SupportedProduct;
|
|
99
99
|
}>;
|
|
100
|
+
placementOption(description: string): Command<Args, Opts & {
|
|
101
|
+
placement: string | undefined;
|
|
102
|
+
}>;
|
|
100
103
|
shardOption(): Command<Args, Opts & {
|
|
101
104
|
shard?: string;
|
|
102
105
|
}>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"command.d.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Y,CAAC,kBAAkB,CAY7F;AAED,wBAAgB,eAAe,CAAC,EAC9B,wBAAwB,EACxB,IAAI,EACJ,OAAO,EACR,EAAE;IACD,wBAAwB,EAAE,wBAAwB,CAAC;IACnD,IAAI,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;IACxB,OAAO,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;CAC5B,GAAG;IAAE,IAAI,CAAC,EAAE,GAAG,CAAC;IAAC,OAAO,CAAC,EAAE,gBAAgB,CAAA;CAAE,CAsB7C;AAED,wBAAgB,oBAAoB,CAAC,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAUvE;AAED,wBAAgB,uBAAuB,CAAC,CAAC,EACvC,GAAG,EAAE,MAAM,CAAC,EACZ,qBAAqB,EAAE,4BAA4B,EACnD,mCAAmC,UAAQ,GAC1C,CAAC,GAAG,IAAI,EAAE,GAAG,KAAK,OAAO,CAAC,CAAC,CAAC,CAsB9B"}
|
|
@@ -175,7 +175,8 @@ class Command {
|
|
|
175
175
|
return this.precondition(async () => {
|
|
176
176
|
const { appIdOverride } = this.cmd.optsWithGlobals();
|
|
177
177
|
if (!appIdOverride) {
|
|
178
|
-
|
|
178
|
+
const { appId } = await this.preCommandController.verifyManifestExistsWithAppConfig()();
|
|
179
|
+
return { appId, appIdOverride: undefined };
|
|
179
180
|
}
|
|
180
181
|
return { appId: appIdOverride, appIdOverride };
|
|
181
182
|
});
|
|
@@ -234,6 +235,9 @@ class Command {
|
|
|
234
235
|
return validateContext({ supportedProductsService, site, product });
|
|
235
236
|
});
|
|
236
237
|
}
|
|
238
|
+
placementOption(description) {
|
|
239
|
+
return this.option('--placement <placement>', description);
|
|
240
|
+
}
|
|
237
241
|
shardOption() {
|
|
238
242
|
return this.option('--shard <shard>', cli_shared_1.Text.optionShard.desc).precondition(async (...args) => {
|
|
239
243
|
const { shard } = last(args);
|