@rulebricks/cli 1.9.0

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.
Files changed (93) hide show
  1. package/README.md +62 -0
  2. package/dist/commands/clone.d.ts +6 -0
  3. package/dist/commands/clone.js +60 -0
  4. package/dist/commands/deploy.d.ts +8 -0
  5. package/dist/commands/deploy.js +409 -0
  6. package/dist/commands/destroy.d.ts +8 -0
  7. package/dist/commands/destroy.js +298 -0
  8. package/dist/commands/init.d.ts +7 -0
  9. package/dist/commands/init.js +201 -0
  10. package/dist/commands/logs.d.ts +9 -0
  11. package/dist/commands/logs.js +222 -0
  12. package/dist/commands/open.d.ts +7 -0
  13. package/dist/commands/open.js +139 -0
  14. package/dist/commands/status.d.ts +5 -0
  15. package/dist/commands/status.js +125 -0
  16. package/dist/commands/upgrade.d.ts +7 -0
  17. package/dist/commands/upgrade.js +239 -0
  18. package/dist/components/DNSWaitScreen.d.ts +9 -0
  19. package/dist/components/DNSWaitScreen.js +73 -0
  20. package/dist/components/Wizard/WizardContext.d.ts +176 -0
  21. package/dist/components/Wizard/WizardContext.js +346 -0
  22. package/dist/components/Wizard/index.d.ts +2 -0
  23. package/dist/components/Wizard/index.js +2 -0
  24. package/dist/components/Wizard/steps/CloudProviderStep.d.ts +6 -0
  25. package/dist/components/Wizard/steps/CloudProviderStep.js +210 -0
  26. package/dist/components/Wizard/steps/CredentialsStep.d.ts +6 -0
  27. package/dist/components/Wizard/steps/CredentialsStep.js +22 -0
  28. package/dist/components/Wizard/steps/DatabaseStep.d.ts +6 -0
  29. package/dist/components/Wizard/steps/DatabaseStep.js +80 -0
  30. package/dist/components/Wizard/steps/DeploymentModeStep.d.ts +5 -0
  31. package/dist/components/Wizard/steps/DeploymentModeStep.js +26 -0
  32. package/dist/components/Wizard/steps/DomainStep.d.ts +6 -0
  33. package/dist/components/Wizard/steps/DomainStep.js +126 -0
  34. package/dist/components/Wizard/steps/FeatureConfigStep.d.ts +6 -0
  35. package/dist/components/Wizard/steps/FeatureConfigStep.js +765 -0
  36. package/dist/components/Wizard/steps/FeaturesStep.d.ts +6 -0
  37. package/dist/components/Wizard/steps/FeaturesStep.js +119 -0
  38. package/dist/components/Wizard/steps/ReviewStep.d.ts +6 -0
  39. package/dist/components/Wizard/steps/ReviewStep.js +56 -0
  40. package/dist/components/Wizard/steps/SMTPStep.d.ts +6 -0
  41. package/dist/components/Wizard/steps/SMTPStep.js +191 -0
  42. package/dist/components/Wizard/steps/SupabaseCredentialsStep.d.ts +6 -0
  43. package/dist/components/Wizard/steps/SupabaseCredentialsStep.js +76 -0
  44. package/dist/components/Wizard/steps/TierStep.d.ts +6 -0
  45. package/dist/components/Wizard/steps/TierStep.js +29 -0
  46. package/dist/components/Wizard/steps/VersionStep.d.ts +6 -0
  47. package/dist/components/Wizard/steps/VersionStep.js +113 -0
  48. package/dist/components/Wizard/steps/index.d.ts +12 -0
  49. package/dist/components/Wizard/steps/index.js +12 -0
  50. package/dist/components/common/AppShell.d.ts +31 -0
  51. package/dist/components/common/AppShell.js +31 -0
  52. package/dist/components/common/Box.d.ts +20 -0
  53. package/dist/components/common/Box.js +20 -0
  54. package/dist/components/common/Logo.d.ts +7 -0
  55. package/dist/components/common/Logo.js +22 -0
  56. package/dist/components/common/Spinner.d.ts +12 -0
  57. package/dist/components/common/Spinner.js +28 -0
  58. package/dist/components/common/index.d.ts +6 -0
  59. package/dist/components/common/index.js +5 -0
  60. package/dist/index.d.ts +2 -0
  61. package/dist/index.js +202 -0
  62. package/dist/lib/cloudCli.d.ts +156 -0
  63. package/dist/lib/cloudCli.js +691 -0
  64. package/dist/lib/config.d.ts +91 -0
  65. package/dist/lib/config.js +278 -0
  66. package/dist/lib/dns.d.ts +41 -0
  67. package/dist/lib/dns.js +235 -0
  68. package/dist/lib/dockerHub.d.ts +57 -0
  69. package/dist/lib/dockerHub.js +128 -0
  70. package/dist/lib/helm.d.ts +53 -0
  71. package/dist/lib/helm.js +209 -0
  72. package/dist/lib/helmValues.d.ts +17 -0
  73. package/dist/lib/helmValues.js +693 -0
  74. package/dist/lib/kubernetes.d.ts +161 -0
  75. package/dist/lib/kubernetes.js +755 -0
  76. package/dist/lib/terraform.d.ts +44 -0
  77. package/dist/lib/terraform.js +230 -0
  78. package/dist/lib/theme.d.ts +81 -0
  79. package/dist/lib/theme.js +115 -0
  80. package/dist/lib/validation.d.ts +47 -0
  81. package/dist/lib/validation.js +164 -0
  82. package/dist/lib/versions.d.ts +69 -0
  83. package/dist/lib/versions.js +139 -0
  84. package/dist/types/index.d.ts +718 -0
  85. package/dist/types/index.js +556 -0
  86. package/email-templates/email_change.html +325 -0
  87. package/email-templates/invite.html +383 -0
  88. package/email-templates/password_change.html +414 -0
  89. package/email-templates/verify.html +396 -0
  90. package/package.json +78 -0
  91. package/terraform/aws/main.tf +327 -0
  92. package/terraform/azure/main.tf +326 -0
  93. package/terraform/gcp/main.tf +369 -0
@@ -0,0 +1,396 @@
1
+ <center
2
+ class="wrapper"
3
+ data-link-color="#1188E6"
4
+ data-body-style="font-size:15px; font-family:arial,helvetica,sans-serif; color:#000000; background-color:#FFFFFF;"
5
+ >
6
+ <div class="webkit">
7
+ <table
8
+ cellpadding="0"
9
+ cellspacing="0"
10
+ border="0"
11
+ width="100%"
12
+ class="wrapper"
13
+ bgcolor="#FFFFFF"
14
+ >
15
+ <tbody>
16
+ <tr>
17
+ <td valign="top" bgcolor="#FFFFFF" width="100%">
18
+ <table
19
+ width="100%"
20
+ role="content-container"
21
+ class="outer"
22
+ align="center"
23
+ cellpadding="0"
24
+ cellspacing="0"
25
+ border="0"
26
+ >
27
+ <tbody>
28
+ <tr>
29
+ <td width="100%">
30
+ <table
31
+ width="100%"
32
+ cellpadding="0"
33
+ cellspacing="0"
34
+ border="0"
35
+ >
36
+ <tbody>
37
+ <tr>
38
+ <td>
39
+ <table
40
+ width="100%"
41
+ cellpadding="0"
42
+ cellspacing="0"
43
+ border="0"
44
+ style="width: 100%; max-width: 600px"
45
+ align="center"
46
+ >
47
+ <tbody>
48
+ <tr>
49
+ <td
50
+ role="modules-container"
51
+ style="
52
+ padding: 0px 0px 0px 0px;
53
+ color: #000000;
54
+ text-align: left;
55
+ "
56
+ bgcolor="#FFFFFF"
57
+ width="100%"
58
+ align="left"
59
+ >
60
+ <table
61
+ class="module preheader preheader-hide"
62
+ role="module"
63
+ data-type="preheader"
64
+ border="0"
65
+ cellpadding="0"
66
+ cellspacing="0"
67
+ width="100%"
68
+ style="
69
+ display: none !important;
70
+ mso-hide: all;
71
+ visibility: hidden;
72
+ opacity: 0;
73
+ color: transparent;
74
+ height: 0;
75
+ width: 0;
76
+ "
77
+ >
78
+ <tbody>
79
+ <tr>
80
+ <td role="module-content">
81
+ <p>Email verification</p>
82
+ </td>
83
+ </tr>
84
+ </tbody>
85
+ </table>
86
+ <table
87
+ class="module"
88
+ role="module"
89
+ data-type="spacer"
90
+ border="0"
91
+ cellpadding="0"
92
+ cellspacing="0"
93
+ width="100%"
94
+ style="table-layout: fixed"
95
+ data-muid="cd005b1f-0237-409b-a37c-71957250ef00"
96
+ >
97
+ <tbody>
98
+ <tr>
99
+ <td
100
+ style="padding: 0px 0px 60px 0px"
101
+ role="module-content"
102
+ bgcolor=""
103
+ ></td>
104
+ </tr>
105
+ </tbody>
106
+ </table>
107
+ <table
108
+ class="wrapper"
109
+ role="module"
110
+ data-type="image"
111
+ border="0"
112
+ cellpadding="0"
113
+ cellspacing="0"
114
+ width="100%"
115
+ style="table-layout: fixed"
116
+ data-muid="b9125004-cfd9-4a7d-b702-e22ab2f8dd08"
117
+ >
118
+ <tbody>
119
+ <tr>
120
+ <td
121
+ style="
122
+ font-size: 6px;
123
+ line-height: 10px;
124
+ padding: 0px 200px 0px 200px;
125
+ "
126
+ valign="top"
127
+ align="center"
128
+ >
129
+ <img
130
+ class="max-width"
131
+ border="0"
132
+ style="
133
+ display: block;
134
+ color: #000000;
135
+ text-decoration: none;
136
+ font-family: Helvetica, arial,
137
+ sans-serif;
138
+ font-size: 16px;
139
+ max-width: 100% !important;
140
+ width: 100%;
141
+ height: auto !important;
142
+ "
143
+ width="600"
144
+ alt=""
145
+ data-proportionally-constrained="true"
146
+ data-responsive="true"
147
+ src="https://rulebricks.com/_next/image?url=%2Fstatic%2Fimages%2Fwide-logo.png&w=256&q=75"
148
+ />
149
+ </td>
150
+ </tr>
151
+ </tbody>
152
+ </table>
153
+ <table
154
+ class="module"
155
+ role="module"
156
+ data-type="spacer"
157
+ border="0"
158
+ cellpadding="0"
159
+ cellspacing="0"
160
+ width="100%"
161
+ style="table-layout: fixed"
162
+ data-muid="503096b7-7b93-440a-8c46-9d8cf21a86ff"
163
+ >
164
+ <tbody>
165
+ <tr>
166
+ <td
167
+ style="padding: 0px 0px 18px 0px"
168
+ role="module-content"
169
+ bgcolor=""
170
+ ></td>
171
+ </tr>
172
+ </tbody>
173
+ </table>
174
+ <table
175
+ class="module"
176
+ role="module"
177
+ data-type="text"
178
+ border="0"
179
+ cellpadding="0"
180
+ cellspacing="0"
181
+ width="100%"
182
+ style="table-layout: fixed"
183
+ data-muid="98944b68-e89b-488e-a9a0-3d8a6bd8510e"
184
+ data-mc-module-version="2019-10-22"
185
+ >
186
+ <tbody>
187
+ <tr>
188
+ <td
189
+ style="
190
+ padding: 18px 30px 18px 30px;
191
+ line-height: 22px;
192
+ text-align: inherit;
193
+ "
194
+ height="100%"
195
+ valign="top"
196
+ bgcolor=""
197
+ role="module-content"
198
+ >
199
+ <div>
200
+ <div
201
+ style="
202
+ font-family: inherit;
203
+ text-align: inherit;
204
+ "
205
+ >
206
+ <span
207
+ style="
208
+ font-size: 16px;
209
+ font-family: inherit;
210
+ "
211
+ >Welcome to Rulebricks! You're
212
+ almost fully set
213
+ up.&nbsp;</span
214
+ >
215
+ </div>
216
+ <div
217
+ style="
218
+ font-family: inherit;
219
+ text-align: inherit;
220
+ "
221
+ >
222
+ <br />
223
+ </div>
224
+ <div
225
+ style="
226
+ font-family: inherit;
227
+ text-align: inherit;
228
+ "
229
+ >
230
+ <span
231
+ style="
232
+ font-size: 16px;
233
+ font-family: inherit;
234
+ "
235
+ >Please click either the
236
+ button below or use </span
237
+ ><a href="{{.ConfirmationURL}}"
238
+ ><span
239
+ style="
240
+ font-size: 16px;
241
+ font-family: inherit;
242
+ "
243
+ >this link</span
244
+ ></a
245
+ ><span
246
+ style="
247
+ font-size: 16px;
248
+ font-family: inherit;
249
+ "
250
+ >
251
+ to verify your account. If you
252
+ are having any issues setting
253
+ up your account, you can
254
+ contact support at
255
+ support@rulebricks.com.</span
256
+ >
257
+ </div>
258
+ <div></div>
259
+ </div>
260
+ </td>
261
+ </tr>
262
+ </tbody>
263
+ </table>
264
+ <table
265
+ class="module"
266
+ role="module"
267
+ data-type="spacer"
268
+ border="0"
269
+ cellpadding="0"
270
+ cellspacing="0"
271
+ width="100%"
272
+ style="table-layout: fixed"
273
+ data-muid="ef0a3d96-9728-48bf-9333-f401d279f514"
274
+ >
275
+ <tbody>
276
+ <tr>
277
+ <td
278
+ style="padding: 0px 0px 10px 0px"
279
+ role="module-content"
280
+ bgcolor=""
281
+ ></td>
282
+ </tr>
283
+ </tbody>
284
+ </table>
285
+ <table
286
+ border="0"
287
+ cellpadding="0"
288
+ cellspacing="0"
289
+ class="module"
290
+ data-role="module-button"
291
+ data-type="button"
292
+ role="module"
293
+ style="table-layout: fixed"
294
+ width="100%"
295
+ data-muid="8d1c7b39-04d4-4037-957c-181ebeceeba0"
296
+ >
297
+ <tbody>
298
+ <tr>
299
+ <td
300
+ align="center"
301
+ bgcolor=""
302
+ class="outer-td"
303
+ style="padding: 0px 0px 0px 0px"
304
+ >
305
+ <table
306
+ border="0"
307
+ cellpadding="0"
308
+ cellspacing="0"
309
+ class="wrapper-mobile"
310
+ style="text-align: center"
311
+ >
312
+ <tbody>
313
+ <tr>
314
+ <td
315
+ align="center"
316
+ bgcolor="#262626"
317
+ class="inner-td"
318
+ style="
319
+ border-radius: 6px;
320
+ font-size: 16px;
321
+ text-align: center;
322
+ background-color: inherit;
323
+ "
324
+ >
325
+ <a
326
+ href="{{.ConfirmationURL}}"
327
+ style="
328
+ background-color: #262626;
329
+ border: 1px solid
330
+ #262626;
331
+ border-color: #262626;
332
+ border-radius: 4px;
333
+ border-width: 1px;
334
+ color: #ffffff;
335
+ display: inline-block;
336
+ font-size: 16px;
337
+ font-weight: normal;
338
+ letter-spacing: 0px;
339
+ line-height: normal;
340
+ padding: 12px 18px 12px
341
+ 18px;
342
+ text-align: center;
343
+ text-decoration: none;
344
+ border-style: solid;
345
+ width: 240px;
346
+ font-family: inherit;
347
+ "
348
+ >Verify account</a
349
+ >
350
+ </td>
351
+ </tr>
352
+ </tbody>
353
+ </table>
354
+ </td>
355
+ </tr>
356
+ </tbody>
357
+ </table>
358
+ <table
359
+ class="module"
360
+ role="module"
361
+ data-type="spacer"
362
+ border="0"
363
+ cellpadding="0"
364
+ cellspacing="0"
365
+ width="100%"
366
+ style="table-layout: fixed"
367
+ data-muid="8ca931bf-f02f-4745-b181-373cefb3cef6"
368
+ >
369
+ <tbody>
370
+ <tr>
371
+ <td
372
+ style="padding: 0px 0px 60px 0px"
373
+ role="module-content"
374
+ bgcolor=""
375
+ ></td>
376
+ </tr>
377
+ </tbody>
378
+ </table>
379
+ </td>
380
+ </tr>
381
+ </tbody>
382
+ </table>
383
+ </td>
384
+ </tr>
385
+ </tbody>
386
+ </table>
387
+ </td>
388
+ </tr>
389
+ </tbody>
390
+ </table>
391
+ </td>
392
+ </tr>
393
+ </tbody>
394
+ </table>
395
+ </div>
396
+ </center>
package/package.json ADDED
@@ -0,0 +1,78 @@
1
+ {
2
+ "name": "@rulebricks/cli",
3
+ "version": "1.9.0",
4
+ "description": "CLI for deploying and managing private Rulebricks instances",
5
+ "type": "module",
6
+ "bin": {
7
+ "rulebricks": "./dist/index.js"
8
+ },
9
+ "scripts": {
10
+ "build": "tsc",
11
+ "dev": "tsc --watch",
12
+ "start": "node dist/index.js",
13
+ "lint": "eslint src --ext .ts,.tsx",
14
+ "typecheck": "tsc --noEmit"
15
+ },
16
+ "keywords": [
17
+ "rulebricks",
18
+ "kubernetes",
19
+ "helm",
20
+ "cli",
21
+ "deployment"
22
+ ],
23
+ "author": "Rulebricks",
24
+ "license": "MIT",
25
+ "publishConfig": {
26
+ "access": "public"
27
+ },
28
+ "repository": {
29
+ "type": "git",
30
+ "url": "git+https://github.com/rulebricks/cli.git"
31
+ },
32
+ "homepage": "https://github.com/rulebricks/cli#readme",
33
+ "bugs": {
34
+ "url": "https://github.com/rulebricks/cli/issues"
35
+ },
36
+ "dependencies": {
37
+ "chalk": "^5.3.0",
38
+ "commander": "^12.1.0",
39
+ "execa": "^8.0.1",
40
+ "figures": "^6.1.0",
41
+ "ink": "^5.0.1",
42
+ "ink-select-input": "^6.0.0",
43
+ "ink-spinner": "^5.0.0",
44
+ "ink-text-input": "^6.0.0",
45
+ "node-fetch": "^3.3.2",
46
+ "ora": "^8.0.1",
47
+ "react": "^18.3.1",
48
+ "yaml": "^2.4.5",
49
+ "zod": "^3.23.8"
50
+ },
51
+ "devDependencies": {
52
+ "@types/node": "^20.14.10",
53
+ "@types/react": "^18.3.3",
54
+ "typescript": "^5.5.3"
55
+ },
56
+ "engines": {
57
+ "node": ">=18"
58
+ },
59
+ "pkg": {
60
+ "scripts": "dist/**/*.js",
61
+ "assets": [
62
+ "terraform/**/*"
63
+ ],
64
+ "targets": [
65
+ "node20-linux-x64",
66
+ "node20-linux-arm64",
67
+ "node20-macos-x64",
68
+ "node20-macos-arm64",
69
+ "node20-win-x64"
70
+ ],
71
+ "outputPath": "release"
72
+ },
73
+ "files": [
74
+ "dist",
75
+ "terraform",
76
+ "email-templates"
77
+ ]
78
+ }