@mittwald/cli 1.0.0-alpha.20 → 1.0.0-alpha.22

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 (199) hide show
  1. package/README.md +126 -176
  2. package/dist/esm/BaseCommand.js +1 -0
  3. package/dist/esm/Translator.js +2 -1
  4. package/dist/esm/commands/app/copy.d.ts +1 -0
  5. package/dist/esm/commands/app/copy.js +2 -1
  6. package/dist/esm/commands/app/{install → create}/node.d.ts +3 -2
  7. package/dist/esm/commands/app/create/node.js +13 -0
  8. package/dist/esm/commands/app/{install → create}/php.d.ts +3 -2
  9. package/dist/esm/commands/app/create/php.js +13 -0
  10. package/dist/esm/commands/app/dependency/list.js +1 -1
  11. package/dist/esm/commands/app/dependency/update.js +2 -2
  12. package/dist/esm/commands/app/dependency/versions.js +2 -2
  13. package/dist/esm/commands/app/list.d.ts +1 -1
  14. package/dist/esm/commands/app/list.js +7 -2
  15. package/dist/esm/commands/app/ssh.d.ts +11 -0
  16. package/dist/esm/commands/app/ssh.js +46 -0
  17. package/dist/esm/commands/app/uninstall.js +1 -1
  18. package/dist/esm/commands/app/versions.js +1 -1
  19. package/dist/esm/commands/conversation/close.js +1 -1
  20. package/dist/esm/commands/conversation/create.js +1 -1
  21. package/dist/esm/commands/conversation/reply.js +1 -1
  22. package/dist/esm/commands/conversation/show.js +2 -2
  23. package/dist/esm/commands/conversation/show2.js +1 -3
  24. package/dist/esm/commands/database/mysql/charsets.js +1 -3
  25. package/dist/esm/commands/database/mysql/create.d.ts +1 -0
  26. package/dist/esm/commands/database/mysql/create.js +4 -4
  27. package/dist/esm/commands/database/mysql/delete.js +1 -1
  28. package/dist/esm/commands/database/mysql/get.js +1 -1
  29. package/dist/esm/commands/database/mysql/list.d.ts +1 -1
  30. package/dist/esm/commands/database/mysql/list.js +2 -2
  31. package/dist/esm/commands/database/mysql/phpmyadmin.js +2 -2
  32. package/dist/esm/commands/database/mysql/user/get.js +1 -1
  33. package/dist/esm/commands/database/mysql/user/list.js +1 -3
  34. package/dist/esm/commands/database/redis/create.d.ts +1 -0
  35. package/dist/esm/commands/database/redis/create.js +3 -3
  36. package/dist/esm/commands/database/redis/get.js +1 -1
  37. package/dist/esm/commands/database/redis/list.d.ts +1 -1
  38. package/dist/esm/commands/database/redis/list.js +2 -2
  39. package/dist/esm/commands/database/redis/versions.d.ts +2 -2
  40. package/dist/esm/commands/database/redis/versions.js +2 -2
  41. package/dist/esm/commands/domain/list.d.ts +1 -1
  42. package/dist/esm/commands/domain/list.js +2 -4
  43. package/dist/esm/commands/domain/ownership/list.d.ts +10 -3
  44. package/dist/esm/commands/domain/ownership/list.js +17 -3
  45. package/dist/esm/commands/domain/virtualhost/create.d.ts +1 -0
  46. package/dist/esm/commands/domain/virtualhost/create.js +3 -3
  47. package/dist/esm/commands/domain/virtualhost/delete.js +1 -1
  48. package/dist/esm/commands/domain/virtualhost/get.js +4 -4
  49. package/dist/esm/commands/domain/virtualhost/list.d.ts +1 -0
  50. package/dist/esm/commands/domain/virtualhost/list.js +2 -2
  51. package/dist/esm/commands/mail/address/create.d.ts +1 -0
  52. package/dist/esm/commands/mail/address/create.js +2 -2
  53. package/dist/esm/commands/mail/address/delete.js +1 -1
  54. package/dist/esm/commands/mail/address/list.d.ts +1 -1
  55. package/dist/esm/commands/mail/address/list.js +2 -4
  56. package/dist/esm/commands/org/delete.d.ts +1 -1
  57. package/dist/esm/commands/org/delete.js +2 -2
  58. package/dist/esm/commands/org/get.d.ts +1 -1
  59. package/dist/esm/commands/org/get.js +3 -3
  60. package/dist/esm/commands/org/invite/list-own.js +1 -1
  61. package/dist/esm/commands/org/invite/list.d.ts +1 -1
  62. package/dist/esm/commands/org/invite/list.js +2 -2
  63. package/dist/esm/commands/org/invite/revoke.js +2 -2
  64. package/dist/esm/commands/org/invite.d.ts +1 -0
  65. package/dist/esm/commands/org/invite.js +2 -2
  66. package/dist/esm/commands/org/list.js +1 -3
  67. package/dist/esm/commands/org/membership/list-own.js +2 -4
  68. package/dist/esm/commands/org/membership/list.d.ts +2 -1
  69. package/dist/esm/commands/org/membership/list.js +3 -3
  70. package/dist/esm/commands/org/membership/revoke.js +3 -3
  71. package/dist/esm/commands/project/backup/create.d.ts +1 -0
  72. package/dist/esm/commands/project/backup/create.js +3 -3
  73. package/dist/esm/commands/project/backup/delete.js +1 -1
  74. package/dist/esm/commands/project/backup/download.js +3 -3
  75. package/dist/esm/commands/project/backup/list.d.ts +1 -1
  76. package/dist/esm/commands/project/backup/list.js +2 -2
  77. package/dist/esm/commands/project/backupschedule/list.d.ts +1 -1
  78. package/dist/esm/commands/project/backupschedule/list.js +2 -2
  79. package/dist/esm/commands/project/create.d.ts +1 -0
  80. package/dist/esm/commands/project/create.js +4 -4
  81. package/dist/esm/commands/project/cronjob/execution/get.js +1 -1
  82. package/dist/esm/commands/project/cronjob/execution/list.js +1 -3
  83. package/dist/esm/commands/project/cronjob/execution/logs.js +4 -3
  84. package/dist/esm/commands/project/cronjob/list.d.ts +1 -1
  85. package/dist/esm/commands/project/cronjob/list.js +2 -4
  86. package/dist/esm/commands/project/delete.d.ts +1 -1
  87. package/dist/esm/commands/project/delete.js +2 -2
  88. package/dist/esm/commands/project/filesystem/usage.d.ts +1 -1
  89. package/dist/esm/commands/project/filesystem/usage.js +3 -3
  90. package/dist/esm/commands/project/get.d.ts +1 -1
  91. package/dist/esm/commands/project/get.js +6 -6
  92. package/dist/esm/commands/project/list.d.ts +10 -2
  93. package/dist/esm/commands/project/list.js +10 -2
  94. package/dist/esm/commands/project/membership/list.js +1 -1
  95. package/dist/esm/commands/project/ssh.d.ts +1 -1
  96. package/dist/esm/commands/project/ssh.js +2 -2
  97. package/dist/esm/commands/project/update.d.ts +1 -1
  98. package/dist/esm/commands/project/update.js +1 -1
  99. package/dist/esm/commands/user/api-token/revoke.js +1 -1
  100. package/dist/esm/commands/user/ssh-key/delete.js +1 -1
  101. package/dist/esm/generated/conversation/getCategory.js +1 -1
  102. package/dist/esm/generated/conversation/getConversation.js +1 -1
  103. package/dist/esm/generated/conversation/listCategories.js +1 -3
  104. package/dist/esm/generated/conversation/listConversations.js +1 -3
  105. package/dist/esm/generated/conversation/listMessagesByConversation.js +1 -3
  106. package/dist/esm/generated/cronjob/getCronjob.js +1 -1
  107. package/dist/esm/generated/cronjob/getExecution.js +1 -1
  108. package/dist/esm/generated/domain/dnsZoneGetSpecific.js +1 -1
  109. package/dist/esm/generated/domain/dnsZonesForProject.js +1 -1
  110. package/dist/esm/generated/domain/getDomain.js +1 -1
  111. package/dist/esm/generated/domain/getHandleFields.js +1 -1
  112. package/dist/esm/generated/domain/getSpecificDomainOwnership.js +1 -1
  113. package/dist/esm/generated/file/getFile.js +1 -1
  114. package/dist/esm/generated/file/getFileMeta.js +1 -1
  115. package/dist/esm/generated/file/getFileTokenRules.js +1 -1
  116. package/dist/esm/generated/file/getFileTypeRules.js +1 -1
  117. package/dist/esm/generated/mail/deliveryboxGetSpecific.js +1 -1
  118. package/dist/esm/generated/mail/deliveryboxList.js +1 -3
  119. package/dist/esm/generated/mail/mailaddressGetSpecific.js +1 -1
  120. package/dist/esm/generated/mail/mailaddressList.js +1 -3
  121. package/dist/esm/generated/mail/projectsettingGetSpecific.js +1 -1
  122. package/dist/esm/generated/notification/newsletterGetInfo.js +1 -1
  123. package/dist/esm/generated/notification/scountUnreadNotifications.js +1 -1
  124. package/dist/esm/generated/notification/slistNotifications.js +1 -3
  125. package/dist/esm/generated/project/getProject.js +1 -1
  126. package/dist/esm/generated/project/getProjectInvite.js +1 -1
  127. package/dist/esm/generated/project/getProjectMembership.js +1 -1
  128. package/dist/esm/generated/project/getSelfMembershipForProject.js +1 -1
  129. package/dist/esm/generated/project/getServer.js +1 -1
  130. package/dist/esm/generated/project/listInvitesForProject.js +1 -3
  131. package/dist/esm/generated/project/listMembershipsForProject.js +1 -3
  132. package/dist/esm/generated/project/listProjectInvites.js +1 -3
  133. package/dist/esm/generated/project/listProjectMemberships.js +1 -3
  134. package/dist/esm/generated/project/listProjects.js +1 -3
  135. package/dist/esm/generated/project/listServers.js +1 -3
  136. package/dist/esm/generated/sshsftpUser/sftpUserGetSftpUser.js +1 -1
  137. package/dist/esm/generated/sshsftpUser/sftpUserListSftpUsers.js +1 -3
  138. package/dist/esm/generated/sshsftpUser/sshUserGetSshUser.js +1 -1
  139. package/dist/esm/generated/sshsftpUser/sshUserListSshUsers.js +1 -3
  140. package/dist/esm/generated/user/getApiToken.js +1 -1
  141. package/dist/esm/generated/user/getPersonalizedSettings.js +1 -1
  142. package/dist/esm/generated/user/getSession.js +1 -1
  143. package/dist/esm/generated/user/getSshKey.js +1 -1
  144. package/dist/esm/generated/user/getUser.js +1 -1
  145. package/dist/esm/generated/user/listApiTokens.js +1 -3
  146. package/dist/esm/generated/user/listFeedback.js +1 -3
  147. package/dist/esm/generated/user/listSessions.js +1 -3
  148. package/dist/esm/generated/user/listSshKeys.js +1 -3
  149. package/dist/esm/lib/app/Installer.d.ts +1 -1
  150. package/dist/esm/lib/app/Installer.js +3 -3
  151. package/dist/esm/lib/app/hooks.js +7 -8
  152. package/dist/esm/lib/app/install.js +1 -1
  153. package/dist/esm/lib/app/uuid.js +2 -1
  154. package/dist/esm/lib/app/versions.js +2 -6
  155. package/dist/esm/lib/app/wait.js +1 -1
  156. package/dist/esm/lib/context_flags.d.ts +20 -9
  157. package/dist/esm/lib/context_flags.js +25 -2
  158. package/dist/esm/lib/database/common.js +1 -1
  159. package/dist/esm/lib/database/mysql/connect.js +2 -2
  160. package/dist/esm/lib/database/mysql/flags.js +2 -2
  161. package/dist/esm/lib/database/redis/connect.js +1 -1
  162. package/dist/esm/lib/database/redis/flags.js +2 -2
  163. package/dist/esm/lib/handleError.js +3 -20
  164. package/dist/esm/lib/org/flags.d.ts +11 -3
  165. package/dist/esm/lib/project/flags.d.ts +11 -3
  166. package/dist/esm/lib/project/hooks.js +1 -1
  167. package/dist/esm/lib/project/ingress.js +1 -1
  168. package/dist/esm/lib/project/shortId.js +1 -1
  169. package/dist/esm/lib/projectbackup/hooks.js +2 -2
  170. package/dist/esm/lib/server/flags.d.ts +11 -3
  171. package/dist/esm/rendering/lib/getTerminalWidth.d.ts +1 -1
  172. package/dist/esm/rendering/lib/getTerminalWidth.js +1 -1
  173. package/dist/esm/rendering/react/ExecRenderBaseCommand.js +11 -1
  174. package/dist/esm/rendering/react/RenderBaseCommand.js +5 -1
  175. package/dist/esm/rendering/react/components/AppInstallation/AppInstallationDetails.js +5 -2
  176. package/dist/esm/rendering/react/components/Conversation/ConversationMeta.js +1 -3
  177. package/dist/esm/rendering/react/components/ErrorBox.js +27 -1
  178. package/dist/esm/rendering/react/components/Table/model/Column.d.ts +1 -1
  179. package/dist/esm/rendering/react/components/Table/model/Column.js +5 -2
  180. package/dist/esm/rendering/react/components/Table/model/ColumnOptions.js +1 -1
  181. package/dist/esm/rendering/react/hooks/useIncreaseInkStdoutColumns.d.ts +1 -0
  182. package/dist/esm/rendering/react/hooks/useIncreaseInkStdoutColumns.js +9 -0
  183. package/dist/esm/rendering/react/hooks/useMyUserProfile.js +1 -3
  184. package/dist/esm/rendering/react/measure/MeasureContextProvider.js +6 -2
  185. package/package.json +41 -9
  186. package/dist/esm/commands/app/install/node.js +0 -13
  187. package/dist/esm/commands/app/install/php.js +0 -13
  188. package/dist/esm/commands/domain/tld/get.d.ts +0 -3
  189. package/dist/esm/commands/domain/tld/get.js +0 -6
  190. package/dist/esm/commands/domain/tld/list.d.ts +0 -9
  191. package/dist/esm/commands/domain/tld/list.js +0 -6
  192. package/dist/esm/commands/project/list-react.d.ts +0 -11
  193. package/dist/esm/commands/project/list-react.js +0 -42
  194. package/dist/esm/generated/domain/getToplevelDomain.d.ts +0 -16
  195. package/dist/esm/generated/domain/getToplevelDomain.js +0 -25
  196. package/dist/esm/generated/domain/listDomainOwnerships.d.ts +0 -13
  197. package/dist/esm/generated/domain/listDomainOwnerships.js +0 -21
  198. package/dist/esm/generated/domain/listToplevelDomains.d.ts +0 -13
  199. package/dist/esm/generated/domain/listToplevelDomains.js +0 -17
package/README.md CHANGED
@@ -80,6 +80,8 @@ USAGE
80
80
 
81
81
  <!-- commands -->
82
82
  * [`mw app copy INSTALLATION-ID`](#mw-app-copy-installation-id)
83
+ * [`mw app create node`](#mw-app-create-node)
84
+ * [`mw app create php`](#mw-app-create-php)
83
85
  * [`mw app dependency list`](#mw-app-dependency-list)
84
86
  * [`mw app dependency update INSTALLATION-ID`](#mw-app-dependency-update-installation-id)
85
87
  * [`mw app dependency versions SYSTEMSOFTWARE`](#mw-app-dependency-versions-systemsoftware)
@@ -87,13 +89,12 @@ USAGE
87
89
  * [`mw app install contao`](#mw-app-install-contao)
88
90
  * [`mw app install joomla`](#mw-app-install-joomla)
89
91
  * [`mw app install matomo`](#mw-app-install-matomo)
90
- * [`mw app install node`](#mw-app-install-node)
91
- * [`mw app install php`](#mw-app-install-php)
92
92
  * [`mw app install shopware5`](#mw-app-install-shopware5)
93
93
  * [`mw app install shopware6`](#mw-app-install-shopware6)
94
94
  * [`mw app install typo3`](#mw-app-install-typo3)
95
95
  * [`mw app install wordpress`](#mw-app-install-wordpress)
96
96
  * [`mw app list`](#mw-app-list)
97
+ * [`mw app ssh INSTALLATION-ID`](#mw-app-ssh-installation-id)
97
98
  * [`mw app uninstall INSTALLATION-ID`](#mw-app-uninstall-installation-id)
98
99
  * [`mw app versions [APP]`](#mw-app-versions-app)
99
100
  * [`mw context get`](#mw-context-get)
@@ -129,8 +130,6 @@ USAGE
129
130
  * [`mw domain list`](#mw-domain-list)
130
131
  * [`mw domain ownership get DOMAINOWNERSHIPID`](#mw-domain-ownership-get-domainownershipid)
131
132
  * [`mw domain ownership list`](#mw-domain-ownership-list)
132
- * [`mw domain tld get TLD`](#mw-domain-tld-get-tld)
133
- * [`mw domain tld list`](#mw-domain-tld-list)
134
133
  * [`mw domain virtualhost create`](#mw-domain-virtualhost-create)
135
134
  * [`mw domain virtualhost delete VIRTUAL-HOST-ID`](#mw-domain-virtualhost-delete-virtual-host-id)
136
135
  * [`mw domain virtualhost get INGRESS-ID`](#mw-domain-virtualhost-get-ingress-id)
@@ -174,7 +173,6 @@ USAGE
174
173
  * [`mw project invite list`](#mw-project-invite-list)
175
174
  * [`mw project invite list-own`](#mw-project-invite-list-own)
176
175
  * [`mw project list`](#mw-project-list)
177
- * [`mw project list-react`](#mw-project-list-react)
178
176
  * [`mw project membership get MEMBERSHIPID`](#mw-project-membership-get-membershipid)
179
177
  * [`mw project membership get-own`](#mw-project-membership-get-own)
180
178
  * [`mw project membership list`](#mw-project-membership-list)
@@ -200,6 +198,8 @@ USAGE
200
198
 
201
199
  ## `mw app copy INSTALLATION-ID`
202
200
 
201
+ Copy an app within a project
202
+
203
203
  ```
204
204
  USAGE
205
205
  $ mw app copy INSTALLATION-ID --description <value> [-q]
@@ -211,6 +211,9 @@ FLAGS
211
211
  -q, --quiet suppress process output and only display a machine-readable summary.
212
212
  --description=<value> (required) set a description for the new app installation
213
213
 
214
+ DESCRIPTION
215
+ Copy an app within a project
216
+
214
217
  FLAG DESCRIPTIONS
215
218
  -q, --quiet suppress process output and only display a machine-readable summary.
216
219
 
@@ -218,9 +221,85 @@ FLAG DESCRIPTIONS
218
221
  scripts), you can use this flag to easily get the IDs of created resources for further processing.
219
222
  ```
220
223
 
224
+ ## `mw app create node`
225
+
226
+ Creates new custom Node.js installation.
227
+
228
+ ```
229
+ USAGE
230
+ $ mw app create node [-p <value>] [-q] [--site-title <value>] [-w] [--json]
231
+
232
+ FLAGS
233
+ -p, --project-id=<value> ID or short ID of a project; this flag is optional if a default project is set in the
234
+ context
235
+ -q, --quiet suppress process output and only display a machine-readable summary.
236
+ -w, --wait Wait for your custom Node.js to be ready.
237
+ --json
238
+ --site-title=<value> Site Title for your custom Node.js installation.
239
+
240
+ DESCRIPTION
241
+ Creates new custom Node.js installation.
242
+
243
+ FLAG DESCRIPTIONS
244
+ -p, --project-id=<value> ID or short ID of a project; this flag is optional if a default project is set in the context
245
+
246
+ May contain a short ID or a full ID of a project; you can also use the "mw context set --project-id=<VALUE>" command
247
+ to persistently set a default project for all commands that accept this flag.
248
+
249
+ -q, --quiet suppress process output and only display a machine-readable summary.
250
+
251
+ This flag controls if you want to see the process output or only a summary. When using mw non-interactively (e.g. in
252
+ scripts), you can use this flag to easily get the IDs of created resources for further processing.
253
+
254
+ --site-title=<value> Site Title for your custom Node.js installation.
255
+
256
+ Site Title which will be displayed in the Tab and at the top of the Frontend of your custom Node.js installation.
257
+ It is also the Title shown in the App-Overview in the mStudio.
258
+ If none is given the Software Name and the given Project will be used. The Title can be changed after the
259
+ installation is finished
260
+ ```
261
+
262
+ ## `mw app create php`
263
+
264
+ Creates new custom PHP installation.
265
+
266
+ ```
267
+ USAGE
268
+ $ mw app create php [-p <value>] [-q] [--site-title <value>] [-w] [--json]
269
+
270
+ FLAGS
271
+ -p, --project-id=<value> ID or short ID of a project; this flag is optional if a default project is set in the
272
+ context
273
+ -q, --quiet suppress process output and only display a machine-readable summary.
274
+ -w, --wait Wait for your custom PHP to be ready.
275
+ --json
276
+ --site-title=<value> Site Title for your custom PHP installation.
277
+
278
+ DESCRIPTION
279
+ Creates new custom PHP installation.
280
+
281
+ FLAG DESCRIPTIONS
282
+ -p, --project-id=<value> ID or short ID of a project; this flag is optional if a default project is set in the context
283
+
284
+ May contain a short ID or a full ID of a project; you can also use the "mw context set --project-id=<VALUE>" command
285
+ to persistently set a default project for all commands that accept this flag.
286
+
287
+ -q, --quiet suppress process output and only display a machine-readable summary.
288
+
289
+ This flag controls if you want to see the process output or only a summary. When using mw non-interactively (e.g. in
290
+ scripts), you can use this flag to easily get the IDs of created resources for further processing.
291
+
292
+ --site-title=<value> Site Title for your custom PHP installation.
293
+
294
+ Site Title which will be displayed in the Tab and at the top of the Frontend of your custom PHP installation.
295
+ It is also the Title shown in the App-Overview in the mStudio.
296
+ If none is given the Software Name and the given Project will be used. The Title can be changed after the
297
+ installation is finished
298
+ ```
299
+
221
300
  ## `mw app dependency list`
222
301
 
223
- get all available dependencies
302
+ Get all available dependencies
224
303
 
225
304
  ```
226
305
  USAGE
@@ -239,7 +318,7 @@ FLAGS
239
318
  --sort=<value> property to sort by (prepend '-' for descending)
240
319
 
241
320
  DESCRIPTION
242
- get all available dependencies
321
+ Get all available dependencies
243
322
  ```
244
323
 
245
324
  ## `mw app dependency update INSTALLATION-ID`
@@ -280,7 +359,7 @@ FLAG DESCRIPTIONS
280
359
 
281
360
  ## `mw app dependency versions SYSTEMSOFTWARE`
282
361
 
283
- get all available versions of a particular dependency
362
+ Get all available versions of a particular dependency
284
363
 
285
364
  ```
286
365
  USAGE
@@ -302,7 +381,7 @@ FLAGS
302
381
  --sort=<value> property to sort by (prepend '-' for descending)
303
382
 
304
383
  DESCRIPTION
305
- get all available versions of a particular dependency
384
+ Get all available versions of a particular dependency
306
385
  ```
307
386
 
308
387
  ## `mw app get INSTALLATION-ID`
@@ -326,7 +405,7 @@ DESCRIPTION
326
405
 
327
406
  ## `mw app install contao`
328
407
 
329
- Creates new Contao Installation.
408
+ Creates new Contao installation.
330
409
 
331
410
  ```
332
411
  USAGE
@@ -350,7 +429,7 @@ FLAGS
350
429
  --version=<value> (required) [default: latest] Version of Contao to be installed.
351
430
 
352
431
  DESCRIPTION
353
- Creates new Contao Installation.
432
+ Creates new Contao installation.
354
433
 
355
434
  FLAG DESCRIPTIONS
356
435
  -p, --project-id=<value> ID or short ID of a project; this flag is optional if a default project is set in the context
@@ -416,7 +495,7 @@ FLAG DESCRIPTIONS
416
495
 
417
496
  ## `mw app install joomla`
418
497
 
419
- Creates new Joomla! Installation.
498
+ Creates new Joomla! installation.
420
499
 
421
500
  ```
422
501
  USAGE
@@ -440,7 +519,7 @@ FLAGS
440
519
  --version=<value> (required) [default: latest] Version of Joomla! to be installed.
441
520
 
442
521
  DESCRIPTION
443
- Creates new Joomla! Installation.
522
+ Creates new Joomla! installation.
444
523
 
445
524
  FLAG DESCRIPTIONS
446
525
  -p, --project-id=<value> ID or short ID of a project; this flag is optional if a default project is set in the context
@@ -506,7 +585,7 @@ FLAG DESCRIPTIONS
506
585
 
507
586
  ## `mw app install matomo`
508
587
 
509
- Creates new Matomo Installation.
588
+ Creates new Matomo installation.
510
589
 
511
590
  ```
512
591
  USAGE
@@ -527,7 +606,7 @@ FLAGS
527
606
  --version=<value> (required) [default: latest] Version of Matomo to be installed.
528
607
 
529
608
  DESCRIPTION
530
- Creates new Matomo Installation.
609
+ Creates new Matomo installation.
531
610
 
532
611
  FLAG DESCRIPTIONS
533
612
  -p, --project-id=<value> ID or short ID of a project; this flag is optional if a default project is set in the context
@@ -579,97 +658,9 @@ FLAG DESCRIPTIONS
579
658
  If none is given the Matomo will be installed in the latest available version.
580
659
  ```
581
660
 
582
- ## `mw app install node`
583
-
584
- Creates new Node.js Project Installation.
585
-
586
- ```
587
- USAGE
588
- $ mw app install node --version <value> [-p <value>] [-q] [--site-title <value>] [-w] [--json]
589
-
590
- FLAGS
591
- -p, --project-id=<value> ID or short ID of a project; this flag is optional if a default project is set in the
592
- context
593
- -q, --quiet suppress process output and only display a machine-readable summary.
594
- -w, --wait Wait for your Node.js Project to be ready.
595
- --json
596
- --site-title=<value> Site Title for your Node.js Project installation.
597
- --version=<value> (required) [default: latest] Version of Node.js Project to be installed.
598
-
599
- DESCRIPTION
600
- Creates new Node.js Project Installation.
601
-
602
- FLAG DESCRIPTIONS
603
- -p, --project-id=<value> ID or short ID of a project; this flag is optional if a default project is set in the context
604
-
605
- May contain a short ID or a full ID of a project; you can also use the "mw context set --project-id=<VALUE>" command
606
- to persistently set a default project for all commands that accept this flag.
607
-
608
- -q, --quiet suppress process output and only display a machine-readable summary.
609
-
610
- This flag controls if you want to see the process output or only a summary. When using mw non-interactively (e.g. in
611
- scripts), you can use this flag to easily get the IDs of created resources for further processing.
612
-
613
- --site-title=<value> Site Title for your Node.js Project installation.
614
-
615
- Site Title which will be displayed in the Tab and at the top of the Frontend of your Node.js Project installation.
616
- It is also the Title shown in the App-Overview in the mStudio.
617
- If none is given the Software Name and the given Project will be used. The Title can be changed after the
618
- installation is finished
619
-
620
- --version=<value> Version of Node.js Project to be installed.
621
-
622
- Specify the Version in which your Node.js Project will be installed.
623
- If none is given the Node.js Project will be installed in the latest available version.
624
- ```
625
-
626
- ## `mw app install php`
627
-
628
- Creates new PHP Project Installation.
629
-
630
- ```
631
- USAGE
632
- $ mw app install php --version <value> [-p <value>] [-q] [--site-title <value>] [-w] [--json]
633
-
634
- FLAGS
635
- -p, --project-id=<value> ID or short ID of a project; this flag is optional if a default project is set in the
636
- context
637
- -q, --quiet suppress process output and only display a machine-readable summary.
638
- -w, --wait Wait for your PHP Project to be ready.
639
- --json
640
- --site-title=<value> Site Title for your PHP Project installation.
641
- --version=<value> (required) [default: latest] Version of PHP Project to be installed.
642
-
643
- DESCRIPTION
644
- Creates new PHP Project Installation.
645
-
646
- FLAG DESCRIPTIONS
647
- -p, --project-id=<value> ID or short ID of a project; this flag is optional if a default project is set in the context
648
-
649
- May contain a short ID or a full ID of a project; you can also use the "mw context set --project-id=<VALUE>" command
650
- to persistently set a default project for all commands that accept this flag.
651
-
652
- -q, --quiet suppress process output and only display a machine-readable summary.
653
-
654
- This flag controls if you want to see the process output or only a summary. When using mw non-interactively (e.g. in
655
- scripts), you can use this flag to easily get the IDs of created resources for further processing.
656
-
657
- --site-title=<value> Site Title for your PHP Project installation.
658
-
659
- Site Title which will be displayed in the Tab and at the top of the Frontend of your PHP Project installation.
660
- It is also the Title shown in the App-Overview in the mStudio.
661
- If none is given the Software Name and the given Project will be used. The Title can be changed after the
662
- installation is finished
663
-
664
- --version=<value> Version of PHP Project to be installed.
665
-
666
- Specify the Version in which your PHP Project will be installed.
667
- If none is given the PHP Project will be installed in the latest available version.
668
- ```
669
-
670
661
  ## `mw app install shopware5`
671
662
 
672
- Creates new Shopware 5 Installation.
663
+ Creates new Shopware 5 installation.
673
664
 
674
665
  ```
675
666
  USAGE
@@ -697,7 +688,7 @@ FLAGS
697
688
  --version=<value> (required) [default: latest] Version of Shopware 5 to be installed.
698
689
 
699
690
  DESCRIPTION
700
- Creates new Shopware 5 Installation.
691
+ Creates new Shopware 5 installation.
701
692
 
702
693
  FLAG DESCRIPTIONS
703
694
  -p, --project-id=<value> ID or short ID of a project; this flag is optional if a default project is set in the context
@@ -783,7 +774,7 @@ FLAG DESCRIPTIONS
783
774
 
784
775
  ## `mw app install shopware6`
785
776
 
786
- Creates new Shopware 6 Installation.
777
+ Creates new Shopware 6 installation.
787
778
 
788
779
  ```
789
780
  USAGE
@@ -811,7 +802,7 @@ FLAGS
811
802
  --version=<value> (required) [default: latest] Version of Shopware 6 to be installed.
812
803
 
813
804
  DESCRIPTION
814
- Creates new Shopware 6 Installation.
805
+ Creates new Shopware 6 installation.
815
806
 
816
807
  FLAG DESCRIPTIONS
817
808
  -p, --project-id=<value> ID or short ID of a project; this flag is optional if a default project is set in the context
@@ -897,7 +888,7 @@ FLAG DESCRIPTIONS
897
888
 
898
889
  ## `mw app install typo3`
899
890
 
900
- Creates new TYPO3 Installation.
891
+ Creates new TYPO3 installation.
901
892
 
902
893
  ```
903
894
  USAGE
@@ -920,7 +911,7 @@ FLAGS
920
911
  --version=<value> (required) [default: latest] Version of TYPO3 to be installed.
921
912
 
922
913
  DESCRIPTION
923
- Creates new TYPO3 Installation.
914
+ Creates new TYPO3 installation.
924
915
 
925
916
  FLAG DESCRIPTIONS
926
917
  -p, --project-id=<value> ID or short ID of a project; this flag is optional if a default project is set in the context
@@ -982,7 +973,7 @@ FLAG DESCRIPTIONS
982
973
 
983
974
  ## `mw app install wordpress`
984
975
 
985
- Creates new WordPress Installation.
976
+ Creates new WordPress installation.
986
977
 
987
978
  ```
988
979
  USAGE
@@ -1004,7 +995,7 @@ FLAGS
1004
995
  --version=<value> (required) [default: latest] Version of WordPress to be installed.
1005
996
 
1006
997
  DESCRIPTION
1007
- Creates new WordPress Installation.
998
+ Creates new WordPress installation.
1008
999
 
1009
1000
  FLAG DESCRIPTIONS
1010
1001
  -p, --project-id=<value> ID or short ID of a project; this flag is optional if a default project is set in the context
@@ -1089,6 +1080,24 @@ FLAG DESCRIPTIONS
1089
1080
  to persistently set a default project for all commands that accept this flag.
1090
1081
  ```
1091
1082
 
1083
+ ## `mw app ssh INSTALLATION-ID`
1084
+
1085
+ Connect to an app via SSH
1086
+
1087
+ ```
1088
+ USAGE
1089
+ $ mw app ssh INSTALLATION-ID [--cd]
1090
+
1091
+ ARGUMENTS
1092
+ INSTALLATION-ID ID of the app installation to get
1093
+
1094
+ FLAGS
1095
+ --[no-]cd change to installation path after connecting
1096
+
1097
+ DESCRIPTION
1098
+ Connect to an app via SSH
1099
+ ```
1100
+
1092
1101
  ## `mw app uninstall INSTALLATION-ID`
1093
1102
 
1094
1103
  Uninstall an app
@@ -1914,49 +1923,6 @@ FLAG DESCRIPTIONS
1914
1923
  to persistently set a default project for all commands that accept this flag.
1915
1924
  ```
1916
1925
 
1917
- ## `mw domain tld get TLD`
1918
-
1919
- Get a toplevel domain.
1920
-
1921
- ```
1922
- USAGE
1923
- $ mw domain tld get TLD [-o json|yaml | | ]
1924
-
1925
- ARGUMENTS
1926
- TLD undefined
1927
-
1928
- FLAGS
1929
- -o, --output=<option> output in a more machine friendly format
1930
- <options: json|yaml>
1931
-
1932
- DESCRIPTION
1933
- Get a toplevel domain.
1934
- ```
1935
-
1936
- ## `mw domain tld list`
1937
-
1938
- List all supported toplevel domains.
1939
-
1940
- ```
1941
- USAGE
1942
- $ mw domain tld list [--columns <value> | -x] [--sort <value>] [--filter <value>] [--output csv|json|yaml | |
1943
- [--csv | --no-truncate]] [--no-header | ]
1944
-
1945
- FLAGS
1946
- -x, --extended show extra columns
1947
- --columns=<value> only show provided columns (comma-separated)
1948
- --csv output is csv format [alias: --output=csv]
1949
- --filter=<value> filter property by partial string matching, ex: name=foo
1950
- --no-header hide table header from output
1951
- --no-truncate do not truncate output to fit screen
1952
- --output=<option> output in a more machine friendly format
1953
- <options: csv|json|yaml>
1954
- --sort=<value> property to sort by (prepend '-' for descending)
1955
-
1956
- DESCRIPTION
1957
- List all supported toplevel domains.
1958
- ```
1959
-
1960
1926
  ## `mw domain virtualhost create`
1961
1927
 
1962
1928
  Create a new ingress
@@ -2779,7 +2745,7 @@ FLAG DESCRIPTIONS
2779
2745
 
2780
2746
  ## `mw project create`
2781
2747
 
2782
- Get the details of a project
2748
+ Create a new project
2783
2749
 
2784
2750
  ```
2785
2751
  USAGE
@@ -2794,7 +2760,7 @@ FLAGS
2794
2760
  --wait-timeout=<value> [default: 600] The number of seconds to wait for the resource to be ready.
2795
2761
 
2796
2762
  DESCRIPTION
2797
- Get the details of a project
2763
+ Create a new project
2798
2764
 
2799
2765
  FLAG DESCRIPTIONS
2800
2766
  -q, --quiet suppress process output and only display a machine-readable summary.
@@ -2976,7 +2942,7 @@ DESCRIPTION
2976
2942
 
2977
2943
  ## `mw project get [PROJECT-ID]`
2978
2944
 
2979
- Get a Project.
2945
+ Get details of a project
2980
2946
 
2981
2947
  ```
2982
2948
  USAGE
@@ -2990,7 +2956,7 @@ FLAGS
2990
2956
  <options: json|yaml>
2991
2957
 
2992
2958
  DESCRIPTION
2993
- Get a Project.
2959
+ Get details of a project
2994
2960
  ```
2995
2961
 
2996
2962
  ## `mw project invite get INVITEID`
@@ -3063,7 +3029,7 @@ DESCRIPTION
3063
3029
 
3064
3030
  ## `mw project list`
3065
3031
 
3066
- List Project's for an Organization or Server.
3032
+ List all projects that you have access to
3067
3033
 
3068
3034
  ```
3069
3035
  USAGE
@@ -3082,23 +3048,7 @@ FLAGS
3082
3048
  --sort=<value> property to sort by (prepend '-' for descending)
3083
3049
 
3084
3050
  DESCRIPTION
3085
- List Project's for an Organization or Server.
3086
- ```
3087
-
3088
- ## `mw project list-react`
3089
-
3090
- ```
3091
- USAGE
3092
- $ mw project list-react -o txt|json [--wait] [--columns <value> | ] [--extended] [--noTruncate]
3093
-
3094
- FLAGS
3095
- -o, --output=<option> (required) [default: txt] The output format to use; use 'txt' for a human readable text
3096
- representation, and 'json' for a machine-readable JSON representation.
3097
- <options: txt|json>
3098
- --columns=<value> only show provided columns (comma-seperated)
3099
- --extended show extra columns
3100
- --noTruncate do not truncate output to fit screen
3101
- --wait
3051
+ List all projects that you have access to
3102
3052
  ```
3103
3053
 
3104
3054
  ## `mw project membership get MEMBERSHIPID`
@@ -13,6 +13,7 @@ export class BaseCommand extends Command {
13
13
  throw new Error(`Could not get token from either config file (${this.getTokenFilename()}) or environment`);
14
14
  }
15
15
  this.apiClient = MittwaldAPIV2Client.newWithToken(token);
16
+ this.apiClient.axios.defaults.headers["User-Agent"] = `mittwald-cli/${this.config.version}`;
16
17
  }
17
18
  }
18
19
  getTokenFilename() {
@@ -66,7 +66,8 @@ export async function getAppVersionFromUuid(apiClient, appId, appVersionId) {
66
66
  throw new Error("Given UUID not valid.");
67
67
  }
68
68
  const appVersion = await apiClient.app.getAppversion({
69
- pathParameters: { appId: appId, appVersionId: appVersionId },
69
+ appId: appId,
70
+ appVersionId: appVersionId,
70
71
  });
71
72
  assertStatus(appVersion, 200);
72
73
  return appVersion.data;
@@ -4,6 +4,7 @@ type Result = {
4
4
  appInstallationId: string;
5
5
  };
6
6
  export declare class Copy extends ExecRenderBaseCommand<typeof Copy, Result> {
7
+ static description: string;
7
8
  static args: {
8
9
  "installation-id": import("@oclif/core/lib/interfaces/parser.js").Arg<string, Record<string, unknown>>;
9
10
  };
@@ -6,6 +6,7 @@ import { Flags } from "@oclif/core";
6
6
  import { assertStatus } from "@mittwald/api-client-commons";
7
7
  import { Success } from "../../rendering/react/components/Success.js";
8
8
  export class Copy extends ExecRenderBaseCommand {
9
+ static description = "Copy an app within a project";
9
10
  static args = { ...appInstallationFlags };
10
11
  static flags = {
11
12
  ...processFlags,
@@ -20,7 +21,7 @@ export class Copy extends ExecRenderBaseCommand {
20
21
  const p = makeProcessRenderer(this.flags, "Copying app installation");
21
22
  const result = await p.runStep("requesting app copy", async () => {
22
23
  const r = await this.apiClient.app.requestAppinstallationCopy({
23
- pathParameters: { id },
24
+ id,
24
25
  data: {
25
26
  description,
26
27
  },
@@ -1,9 +1,10 @@
1
1
  import { ExecRenderBaseCommand } from "../../../rendering/react/ExecRenderBaseCommand.js";
2
2
  import React from "react";
3
- import { AppInstallationResult } from "../../../lib/app/Installer.js";
3
+ import { AppInstallationResult, AppInstaller } from "../../../lib/app/Installer.js";
4
+ export declare const nodeInstaller: AppInstaller<"site-title" | "wait">;
4
5
  export default class InstallNode extends ExecRenderBaseCommand<typeof InstallNode, AppInstallationResult> {
5
6
  static description: string;
6
- static flags: import("@oclif/core/lib/interfaces/parser.js").FlagInput<import("../../../lib/app/flags.js").RelevantFlags<readonly ("version" | "site-title" | "wait")[]>>;
7
+ static flags: import("@oclif/core/lib/interfaces/parser.js").FlagInput<import("../../../lib/app/flags.js").RelevantFlags<readonly ("site-title" | "wait")[]>>;
7
8
  protected exec(): Promise<{
8
9
  appInstallationId: string;
9
10
  }>;
@@ -0,0 +1,13 @@
1
+ import { ExecRenderBaseCommand } from "../../../rendering/react/ExecRenderBaseCommand.js";
2
+ import { AppInstaller, } from "../../../lib/app/Installer.js";
3
+ export const nodeInstaller = new AppInstaller("3e7f920b-a711-4d2f-9871-661e1b41a2f0", "custom Node.js", ["site-title", "wait"]);
4
+ export default class InstallNode extends ExecRenderBaseCommand {
5
+ static description = nodeInstaller.description;
6
+ static flags = nodeInstaller.flags;
7
+ async exec() {
8
+ return nodeInstaller.exec(this.apiClient, this.args, this.flags, this.config);
9
+ }
10
+ render(result) {
11
+ return nodeInstaller.render(result, this.flags);
12
+ }
13
+ }
@@ -1,9 +1,10 @@
1
1
  import { ExecRenderBaseCommand } from "../../../rendering/react/ExecRenderBaseCommand.js";
2
2
  import React from "react";
3
- import { AppInstallationResult } from "../../../lib/app/Installer.js";
3
+ import { AppInstallationResult, AppInstaller } from "../../../lib/app/Installer.js";
4
+ export declare const phpInstaller: AppInstaller<"site-title" | "wait">;
4
5
  export default class InstallPhp extends ExecRenderBaseCommand<typeof InstallPhp, AppInstallationResult> {
5
6
  static description: string;
6
- static flags: import("@oclif/core/lib/interfaces/parser.js").FlagInput<import("../../../lib/app/flags.js").RelevantFlags<readonly ("version" | "site-title" | "wait")[]>>;
7
+ static flags: import("@oclif/core/lib/interfaces/parser.js").FlagInput<import("../../../lib/app/flags.js").RelevantFlags<readonly ("site-title" | "wait")[]>>;
7
8
  protected exec(): Promise<{
8
9
  appInstallationId: string;
9
10
  }>;
@@ -0,0 +1,13 @@
1
+ import { ExecRenderBaseCommand } from "../../../rendering/react/ExecRenderBaseCommand.js";
2
+ import { AppInstaller, } from "../../../lib/app/Installer.js";
3
+ export const phpInstaller = new AppInstaller("34220303-cb87-4592-8a95-2eb20a97b2ac", "custom PHP", ["site-title", "wait"]);
4
+ export default class InstallPhp extends ExecRenderBaseCommand {
5
+ static description = phpInstaller.description;
6
+ static flags = phpInstaller.flags;
7
+ async exec() {
8
+ return phpInstaller.exec(this.apiClient, this.args, this.flags, this.config);
9
+ }
10
+ render(result) {
11
+ return phpInstaller.render(result, this.flags);
12
+ }
13
+ }
@@ -1,6 +1,6 @@
1
1
  import { ListBaseCommand } from "../../../ListBaseCommand.js";
2
2
  export class List extends ListBaseCommand {
3
- static description = "get all available dependencies";
3
+ static description = "Get all available dependencies";
4
4
  static args = {};
5
5
  static flags = {
6
6
  ...ListBaseCommand.baseFlags,
@@ -75,7 +75,7 @@ export default class Update extends ExecRenderBaseCommand {
75
75
  }
76
76
  await process.runStep("updating app dependencies", async () => {
77
77
  const r = await this.apiClient.app.patchAppinstallation({
78
- pathParameters: { appInstallationId },
78
+ appInstallationId,
79
79
  data: {
80
80
  systemSoftware: versionsToUpdate,
81
81
  },
@@ -87,7 +87,7 @@ export default class Update extends ExecRenderBaseCommand {
87
87
  async getVersions(p, systemSoftware) {
88
88
  const versions = await p.runStep(`fetching versions for ${systemSoftware.name}`, async () => {
89
89
  const r = await this.apiClient.app.listSystemsoftwareversions({
90
- pathParameters: { systemSoftwareId: systemSoftware.id },
90
+ systemSoftwareId: systemSoftware.id,
91
91
  });
92
92
  assertStatus(r, 200);
93
93
  return r.data;
@@ -3,7 +3,7 @@ import { ListBaseCommand } from "../../../ListBaseCommand.js";
3
3
  import { SemVer } from "semver";
4
4
  import { Args } from "@oclif/core";
5
5
  export class Versions extends ListBaseCommand {
6
- static description = "get all available versions of a particular dependency";
6
+ static description = "Get all available versions of a particular dependency";
7
7
  static args = {
8
8
  systemsoftware: Args.string({
9
9
  description: "name of the systemsoftware for which to list versions",
@@ -22,7 +22,7 @@ export class Versions extends ListBaseCommand {
22
22
  throw new Error(`system software ${systemSoftwareName} not found`);
23
23
  }
24
24
  return await this.apiClient.app.listSystemsoftwareversions({
25
- pathParameters: { systemSoftwareId: systemSoftware.id },
25
+ systemSoftwareId: systemSoftware.id,
26
26
  });
27
27
  }
28
28
  mapData(data) {
@@ -15,7 +15,7 @@ type ExtendedResponseItem = ResponseItem & {
15
15
  export default class List extends ListBaseCommand<typeof List, ResponseItem, Response> {
16
16
  static description: string;
17
17
  static flags: {
18
- [x: string]: import("@oclif/core/lib/interfaces/parser.js").CompletableFlag<any> | import("@oclif/core/lib/interfaces/parser.js").OptionFlag<unknown>;
18
+ "project-id": import("@oclif/core/lib/interfaces/parser.js").OptionFlag<string>;
19
19
  };
20
20
  protected getData(): Promise<Response>;
21
21
  protected mapData(data: SuccessfulResponse<Response, 200>["data"]): Promise<ExtendedResponseItem[]>;