@mittwald/cli 1.0.0-alpha.40 → 1.0.0-alpha.42
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/README.md +345 -6
- package/dist/commands/app/install/matomo.js +5 -5
- package/dist/commands/app/install/moodle.d.ts +12 -0
- package/dist/commands/app/install/moodle.js +21 -0
- package/dist/commands/app/install/neos.d.ts +12 -0
- package/dist/commands/app/install/neos.js +21 -0
- package/dist/commands/app/install/prestashop.d.ts +12 -0
- package/dist/commands/app/install/prestashop.js +23 -0
- package/dist/commands/app/list.js +2 -3
- package/dist/commands/app/upload.d.ts +18 -0
- package/dist/commands/app/upload.js +74 -0
- package/dist/commands/database/mysql/dump.d.ts +1 -2
- package/dist/commands/database/mysql/dump.js +18 -56
- package/dist/commands/database/mysql/import.d.ts +19 -0
- package/dist/commands/database/mysql/import.js +69 -0
- package/dist/lib/app/custom_installation.d.ts +7 -0
- package/dist/lib/app/custom_installation.js +16 -0
- package/dist/lib/app/flags.js +4 -0
- package/dist/lib/context_flags.d.ts +4 -0
- package/dist/lib/context_flags.js +14 -1
- package/dist/lib/database/mysql/connect.d.ts +22 -14
- package/dist/lib/database/mysql/connect.js +15 -0
- package/dist/lib/database/mysql/flags.d.ts +4 -0
- package/dist/lib/database/mysql/flags.js +10 -0
- package/dist/lib/database/mysql/temp_user.d.ts +13 -0
- package/dist/lib/database/mysql/temp_user.js +52 -0
- package/dist/lib/error/UnexpectedShortIDPassedError.d.ts +5 -0
- package/dist/lib/error/UnexpectedShortIDPassedError.js +10 -0
- package/dist/lib/language.d.ts +10 -0
- package/dist/lib/language.js +12 -0
- package/dist/lib/project/flags.js +9 -2
- package/dist/lib/ssh/exec.d.ts +5 -1
- package/dist/lib/ssh/exec.js +2 -2
- package/dist/rendering/react/RenderBaseCommand.js +12 -5
- package/dist/rendering/react/components/AppInstallation/AppInstallationDetails.js +2 -4
- package/dist/rendering/react/components/Error/APIError.d.ts +13 -0
- package/dist/rendering/react/components/Error/APIError.js +29 -0
- package/dist/rendering/react/components/Error/ErrorBox.d.ts +4 -0
- package/dist/rendering/react/components/Error/ErrorBox.js +14 -0
- package/dist/rendering/react/components/Error/ErrorStack.d.ts +4 -0
- package/dist/rendering/react/components/Error/ErrorStack.js +7 -0
- package/dist/rendering/react/components/Error/ErrorText.d.ts +3 -0
- package/dist/rendering/react/components/Error/ErrorText.js +6 -0
- package/dist/rendering/react/components/Error/GenericError.d.ts +12 -0
- package/dist/rendering/react/components/Error/GenericError.js +13 -0
- package/dist/rendering/react/components/Error/InvalidArgsError.d.ts +5 -0
- package/dist/rendering/react/components/Error/InvalidArgsError.js +8 -0
- package/dist/rendering/react/components/Error/InvalidFlagsError.d.ts +5 -0
- package/dist/rendering/react/components/Error/InvalidFlagsError.js +8 -0
- package/dist/rendering/react/components/Error/UnexpectedShortIDPassedErrorBox.d.ts +4 -0
- package/dist/rendering/react/components/Error/UnexpectedShortIDPassedErrorBox.js +7 -0
- package/dist/rendering/react/components/ErrorBoundary.d.ts +20 -0
- package/dist/rendering/react/components/ErrorBoundary.js +32 -0
- package/dist/rendering/react/components/ErrorBox.d.ts +0 -1
- package/dist/rendering/react/components/ErrorBox.js +12 -48
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -127,7 +127,10 @@ USAGE
|
|
|
127
127
|
* [`mw app install grav`](#mw-app-install-grav)
|
|
128
128
|
* [`mw app install joomla`](#mw-app-install-joomla)
|
|
129
129
|
* [`mw app install matomo`](#mw-app-install-matomo)
|
|
130
|
+
* [`mw app install moodle`](#mw-app-install-moodle)
|
|
131
|
+
* [`mw app install neos`](#mw-app-install-neos)
|
|
130
132
|
* [`mw app install nextcloud`](#mw-app-install-nextcloud)
|
|
133
|
+
* [`mw app install prestashop`](#mw-app-install-prestashop)
|
|
131
134
|
* [`mw app install shopware5`](#mw-app-install-shopware5)
|
|
132
135
|
* [`mw app install shopware6`](#mw-app-install-shopware6)
|
|
133
136
|
* [`mw app install typo3`](#mw-app-install-typo3)
|
|
@@ -135,6 +138,7 @@ USAGE
|
|
|
135
138
|
* [`mw app list`](#mw-app-list)
|
|
136
139
|
* [`mw app ssh [INSTALLATION-ID]`](#mw-app-ssh-installation-id)
|
|
137
140
|
* [`mw app uninstall [INSTALLATION-ID]`](#mw-app-uninstall-installation-id)
|
|
141
|
+
* [`mw app upload [INSTALLATION-ID]`](#mw-app-upload-installation-id)
|
|
138
142
|
* [`mw app versions [APP]`](#mw-app-versions-app)
|
|
139
143
|
* [`mw autocomplete [SHELL]`](#mw-autocomplete-shell)
|
|
140
144
|
* [`mw backup create`](#mw-backup-create)
|
|
@@ -167,6 +171,7 @@ USAGE
|
|
|
167
171
|
* [`mw database mysql delete DATABASE-ID`](#mw-database-mysql-delete-database-id)
|
|
168
172
|
* [`mw database mysql dump DATABASE-ID`](#mw-database-mysql-dump-database-id)
|
|
169
173
|
* [`mw database mysql get DATABASE-ID`](#mw-database-mysql-get-database-id)
|
|
174
|
+
* [`mw database mysql import DATABASE-ID`](#mw-database-mysql-import-database-id)
|
|
170
175
|
* [`mw database mysql list`](#mw-database-mysql-list)
|
|
171
176
|
* [`mw database mysql phpmyadmin DATABASE-ID`](#mw-database-mysql-phpmyadmin-database-id)
|
|
172
177
|
* [`mw database mysql port-forward DATABASE-ID`](#mw-database-mysql-port-forward-database-id)
|
|
@@ -1008,6 +1013,151 @@ FLAG DESCRIPTIONS
|
|
|
1008
1013
|
If unspecified, the Matomo will be installed in the latest available version.
|
|
1009
1014
|
```
|
|
1010
1015
|
|
|
1016
|
+
## `mw app install moodle`
|
|
1017
|
+
|
|
1018
|
+
Creates new Moodle installation.
|
|
1019
|
+
|
|
1020
|
+
```
|
|
1021
|
+
USAGE
|
|
1022
|
+
$ mw app install moodle --version <value> [-p <value>] [-q] [--host <value>] [--admin-user <value>] [--admin-email
|
|
1023
|
+
<value>] [--admin-pass <value>] [--site-title <value>] [-w]
|
|
1024
|
+
|
|
1025
|
+
FLAGS
|
|
1026
|
+
-p, --project-id=<value> ID or short ID of a project; this flag is optional if a default project is set in the
|
|
1027
|
+
context
|
|
1028
|
+
-q, --quiet suppress process output and only display a machine-readable summary.
|
|
1029
|
+
-w, --wait wait for your Moodle to be ready.
|
|
1030
|
+
--admin-email=<value> email address of your administrator user.
|
|
1031
|
+
--admin-pass=<value> password of your administrator user.
|
|
1032
|
+
--admin-user=<value> Username for your administrator user.
|
|
1033
|
+
--host=<value> host to initially configure your Moodle installation with; needs to be created separately.
|
|
1034
|
+
--site-title=<value> site title for your Moodle installation.
|
|
1035
|
+
--version=<value> (required) [default: latest] version of Moodle to be installed.
|
|
1036
|
+
|
|
1037
|
+
DESCRIPTION
|
|
1038
|
+
Creates new Moodle installation.
|
|
1039
|
+
|
|
1040
|
+
FLAG DESCRIPTIONS
|
|
1041
|
+
-p, --project-id=<value> ID or short ID of a project; this flag is optional if a default project is set in the context
|
|
1042
|
+
|
|
1043
|
+
May contain a short ID or a full ID of a project; you can also use the "mw context set --project-id=<VALUE>" command
|
|
1044
|
+
to persistently set a default project for all commands that accept this flag.
|
|
1045
|
+
|
|
1046
|
+
-q, --quiet suppress process output and only display a machine-readable summary.
|
|
1047
|
+
|
|
1048
|
+
This flag controls if you want to see the process output or only a summary. When using mw non-interactively (e.g. in
|
|
1049
|
+
scripts), you can use this flag to easily get the IDs of created resources for further processing.
|
|
1050
|
+
|
|
1051
|
+
--admin-email=<value> email address of your administrator user.
|
|
1052
|
+
|
|
1053
|
+
email address that will be used for the first administrator user that is created during the Moodle installation.
|
|
1054
|
+
If unspecified, email address of your mStudio account will be used. This email address can be changed after the
|
|
1055
|
+
installation is finished.
|
|
1056
|
+
|
|
1057
|
+
--admin-pass=<value> password of your administrator user.
|
|
1058
|
+
|
|
1059
|
+
The password that will be used for the first administrator user that is created during the Moodle installation.
|
|
1060
|
+
If unspecified, a random secure password will be generated and printed to stdout. This password can be changed after
|
|
1061
|
+
the installation is finished
|
|
1062
|
+
|
|
1063
|
+
--admin-user=<value> Username for your administrator user.
|
|
1064
|
+
|
|
1065
|
+
Username of the first administrator user which will be created during the Moodle installation.
|
|
1066
|
+
If unspecified, an adequate username will be generated.
|
|
1067
|
+
After the installation is finished, the username can be changed and additional administrator users can be created.
|
|
1068
|
+
|
|
1069
|
+
--host=<value> host to initially configure your Moodle installation with; needs to be created separately.
|
|
1070
|
+
|
|
1071
|
+
Specify a host which will be used during the installation and as an initial host for the Moodle configuration.
|
|
1072
|
+
If unspecified, the default host for the given project will be used.
|
|
1073
|
+
This does not change the target of the used host and can be changed later by configuring the host and your Moodle
|
|
1074
|
+
installation.
|
|
1075
|
+
|
|
1076
|
+
--site-title=<value> site title for your Moodle installation.
|
|
1077
|
+
|
|
1078
|
+
The site title for this Moodle installation. It is also the title shown in the app overview in the mStudio and the
|
|
1079
|
+
CLI.
|
|
1080
|
+
If unspecified, the application name and the given project ID will be used. The title can be changed after the
|
|
1081
|
+
installation is finished
|
|
1082
|
+
|
|
1083
|
+
--version=<value> version of Moodle to be installed.
|
|
1084
|
+
|
|
1085
|
+
Specify the version in which your Moodle will be installed.
|
|
1086
|
+
If unspecified, the Moodle will be installed in the latest available version.
|
|
1087
|
+
```
|
|
1088
|
+
|
|
1089
|
+
## `mw app install neos`
|
|
1090
|
+
|
|
1091
|
+
Creates new NEOS installation.
|
|
1092
|
+
|
|
1093
|
+
```
|
|
1094
|
+
USAGE
|
|
1095
|
+
$ mw app install neos --version <value> [-p <value>] [-q] [--admin-user <value>] [--admin-pass <value>]
|
|
1096
|
+
[--admin-firstname <value>] [--admin-lastname <value>] [--site-title <value>] [-w]
|
|
1097
|
+
|
|
1098
|
+
FLAGS
|
|
1099
|
+
-p, --project-id=<value> ID or short ID of a project; this flag is optional if a default project is set in the
|
|
1100
|
+
context
|
|
1101
|
+
-q, --quiet suppress process output and only display a machine-readable summary.
|
|
1102
|
+
-w, --wait wait for your NEOS to be ready.
|
|
1103
|
+
--admin-firstname=<value> first name of your administrator user.
|
|
1104
|
+
--admin-lastname=<value> Lastname of your administrator user.
|
|
1105
|
+
--admin-pass=<value> password of your administrator user.
|
|
1106
|
+
--admin-user=<value> Username for your administrator user.
|
|
1107
|
+
--site-title=<value> site title for your NEOS installation.
|
|
1108
|
+
--version=<value> (required) [default: latest] version of NEOS to be installed.
|
|
1109
|
+
|
|
1110
|
+
DESCRIPTION
|
|
1111
|
+
Creates new NEOS installation.
|
|
1112
|
+
|
|
1113
|
+
FLAG DESCRIPTIONS
|
|
1114
|
+
-p, --project-id=<value> ID or short ID of a project; this flag is optional if a default project is set in the context
|
|
1115
|
+
|
|
1116
|
+
May contain a short ID or a full ID of a project; you can also use the "mw context set --project-id=<VALUE>" command
|
|
1117
|
+
to persistently set a default project for all commands that accept this flag.
|
|
1118
|
+
|
|
1119
|
+
-q, --quiet suppress process output and only display a machine-readable summary.
|
|
1120
|
+
|
|
1121
|
+
This flag controls if you want to see the process output or only a summary. When using mw non-interactively (e.g. in
|
|
1122
|
+
scripts), you can use this flag to easily get the IDs of created resources for further processing.
|
|
1123
|
+
|
|
1124
|
+
--admin-firstname=<value> first name of your administrator user.
|
|
1125
|
+
|
|
1126
|
+
The first name that will be used for the first administrator user that is created during the NEOS installation.
|
|
1127
|
+
If unspecified, the first name of your mStudio user will be used. This value can be changed after the installation
|
|
1128
|
+
is finished.
|
|
1129
|
+
|
|
1130
|
+
--admin-lastname=<value> Lastname of your administrator user.
|
|
1131
|
+
|
|
1132
|
+
The last name that will be used for the first administrator user that is created during the NEOS installation.
|
|
1133
|
+
If unspecified, the last name of your mStudio user will be used. This value can be changed after the installation is
|
|
1134
|
+
finished.
|
|
1135
|
+
|
|
1136
|
+
--admin-pass=<value> password of your administrator user.
|
|
1137
|
+
|
|
1138
|
+
The password that will be used for the first administrator user that is created during the NEOS installation.
|
|
1139
|
+
If unspecified, a random secure password will be generated and printed to stdout. This password can be changed after
|
|
1140
|
+
the installation is finished
|
|
1141
|
+
|
|
1142
|
+
--admin-user=<value> Username for your administrator user.
|
|
1143
|
+
|
|
1144
|
+
Username of the first administrator user which will be created during the NEOS installation.
|
|
1145
|
+
If unspecified, an adequate username will be generated.
|
|
1146
|
+
After the installation is finished, the username can be changed and additional administrator users can be created.
|
|
1147
|
+
|
|
1148
|
+
--site-title=<value> site title for your NEOS installation.
|
|
1149
|
+
|
|
1150
|
+
The site title for this NEOS installation. It is also the title shown in the app overview in the mStudio and the
|
|
1151
|
+
CLI.
|
|
1152
|
+
If unspecified, the application name and the given project ID will be used. The title can be changed after the
|
|
1153
|
+
installation is finished
|
|
1154
|
+
|
|
1155
|
+
--version=<value> version of NEOS to be installed.
|
|
1156
|
+
|
|
1157
|
+
Specify the version in which your NEOS will be installed.
|
|
1158
|
+
If unspecified, the NEOS will be installed in the latest available version.
|
|
1159
|
+
```
|
|
1160
|
+
|
|
1011
1161
|
## `mw app install nextcloud`
|
|
1012
1162
|
|
|
1013
1163
|
Creates new Nextcloud installation.
|
|
@@ -1082,6 +1232,95 @@ FLAG DESCRIPTIONS
|
|
|
1082
1232
|
If unspecified, the Nextcloud will be installed in the latest available version.
|
|
1083
1233
|
```
|
|
1084
1234
|
|
|
1235
|
+
## `mw app install prestashop`
|
|
1236
|
+
|
|
1237
|
+
Creates new PrestaShop installation.
|
|
1238
|
+
|
|
1239
|
+
```
|
|
1240
|
+
USAGE
|
|
1241
|
+
$ mw app install prestashop --version <value> [-p <value>] [-q] [--host <value>] [--admin-email <value>] [--admin-pass
|
|
1242
|
+
<value>] [--admin-firstname <value>] [--admin-lastname <value>] [--site-title <value>] [--shop-lang <value>] [-w]
|
|
1243
|
+
|
|
1244
|
+
FLAGS
|
|
1245
|
+
-p, --project-id=<value> ID or short ID of a project; this flag is optional if a default project is set in the
|
|
1246
|
+
context
|
|
1247
|
+
-q, --quiet suppress process output and only display a machine-readable summary.
|
|
1248
|
+
-w, --wait wait for your PrestaShop to be ready.
|
|
1249
|
+
--admin-email=<value> email address of your administrator user.
|
|
1250
|
+
--admin-firstname=<value> first name of your administrator user.
|
|
1251
|
+
--admin-lastname=<value> Lastname of your administrator user.
|
|
1252
|
+
--admin-pass=<value> password of your administrator user.
|
|
1253
|
+
--host=<value> host to initially configure your PrestaShop installation with; needs to be created
|
|
1254
|
+
separately.
|
|
1255
|
+
--shop-lang=<value> language your PrestaShop will be working with.
|
|
1256
|
+
--site-title=<value> site title for your PrestaShop installation.
|
|
1257
|
+
--version=<value> (required) [default: latest] version of PrestaShop to be installed.
|
|
1258
|
+
|
|
1259
|
+
DESCRIPTION
|
|
1260
|
+
Creates new PrestaShop installation.
|
|
1261
|
+
|
|
1262
|
+
FLAG DESCRIPTIONS
|
|
1263
|
+
-p, --project-id=<value> ID or short ID of a project; this flag is optional if a default project is set in the context
|
|
1264
|
+
|
|
1265
|
+
May contain a short ID or a full ID of a project; you can also use the "mw context set --project-id=<VALUE>" command
|
|
1266
|
+
to persistently set a default project for all commands that accept this flag.
|
|
1267
|
+
|
|
1268
|
+
-q, --quiet suppress process output and only display a machine-readable summary.
|
|
1269
|
+
|
|
1270
|
+
This flag controls if you want to see the process output or only a summary. When using mw non-interactively (e.g. in
|
|
1271
|
+
scripts), you can use this flag to easily get the IDs of created resources for further processing.
|
|
1272
|
+
|
|
1273
|
+
--admin-email=<value> email address of your administrator user.
|
|
1274
|
+
|
|
1275
|
+
email address that will be used for the first administrator user that is created during the PrestaShop installation.
|
|
1276
|
+
If unspecified, email address of your mStudio account will be used. This email address can be changed after the
|
|
1277
|
+
installation is finished.
|
|
1278
|
+
|
|
1279
|
+
--admin-firstname=<value> first name of your administrator user.
|
|
1280
|
+
|
|
1281
|
+
The first name that will be used for the first administrator user that is created during the PrestaShop
|
|
1282
|
+
installation.
|
|
1283
|
+
If unspecified, the first name of your mStudio user will be used. This value can be changed after the installation
|
|
1284
|
+
is finished.
|
|
1285
|
+
|
|
1286
|
+
--admin-lastname=<value> Lastname of your administrator user.
|
|
1287
|
+
|
|
1288
|
+
The last name that will be used for the first administrator user that is created during the PrestaShop installation.
|
|
1289
|
+
If unspecified, the last name of your mStudio user will be used. This value can be changed after the installation is
|
|
1290
|
+
finished.
|
|
1291
|
+
|
|
1292
|
+
--admin-pass=<value> password of your administrator user.
|
|
1293
|
+
|
|
1294
|
+
The password that will be used for the first administrator user that is created during the PrestaShop installation.
|
|
1295
|
+
If unspecified, a random secure password will be generated and printed to stdout. This password can be changed after
|
|
1296
|
+
the installation is finished
|
|
1297
|
+
|
|
1298
|
+
--host=<value> host to initially configure your PrestaShop installation with; needs to be created separately.
|
|
1299
|
+
|
|
1300
|
+
Specify a host which will be used during the installation and as an initial host for the PrestaShop configuration.
|
|
1301
|
+
If unspecified, the default host for the given project will be used.
|
|
1302
|
+
This does not change the target of the used host and can be changed later by configuring the host and your
|
|
1303
|
+
PrestaShop installation.
|
|
1304
|
+
|
|
1305
|
+
--shop-lang=<value> language your PrestaShop will be working with.
|
|
1306
|
+
|
|
1307
|
+
The default language your PrestaShop installation will be using. The front- and back end will be displayed using the
|
|
1308
|
+
given language.
|
|
1309
|
+
If unspecified, this will default to German (de_DE). The language can be changed after the installation is finished.
|
|
1310
|
+
|
|
1311
|
+
--site-title=<value> site title for your PrestaShop installation.
|
|
1312
|
+
|
|
1313
|
+
The site title for this PrestaShop installation. It is also the title shown in the app overview in the mStudio and
|
|
1314
|
+
the CLI.
|
|
1315
|
+
If unspecified, the application name and the given project ID will be used. The title can be changed after the
|
|
1316
|
+
installation is finished
|
|
1317
|
+
|
|
1318
|
+
--version=<value> version of PrestaShop to be installed.
|
|
1319
|
+
|
|
1320
|
+
Specify the version in which your PrestaShop will be installed.
|
|
1321
|
+
If unspecified, the PrestaShop will be installed in the latest available version.
|
|
1322
|
+
```
|
|
1323
|
+
|
|
1085
1324
|
## `mw app install shopware5`
|
|
1086
1325
|
|
|
1087
1326
|
Creates new Shopware 5 installation.
|
|
@@ -1544,6 +1783,47 @@ FLAG DESCRIPTIONS
|
|
|
1544
1783
|
scripts), you can use this flag to easily get the IDs of created resources for further processing.
|
|
1545
1784
|
```
|
|
1546
1785
|
|
|
1786
|
+
## `mw app upload [INSTALLATION-ID]`
|
|
1787
|
+
|
|
1788
|
+
Upload the filesystem of an app to a project
|
|
1789
|
+
|
|
1790
|
+
```
|
|
1791
|
+
USAGE
|
|
1792
|
+
$ mw app upload [INSTALLATION-ID] --source <value> [-q] [--ssh-user <value>] [--dry-run] [--delete]
|
|
1793
|
+
|
|
1794
|
+
ARGUMENTS
|
|
1795
|
+
INSTALLATION-ID ID or short ID of an app installation; this argument is optional if a default app installation is set
|
|
1796
|
+
in the context
|
|
1797
|
+
|
|
1798
|
+
FLAGS
|
|
1799
|
+
-q, --quiet suppress process output and only display a machine-readable summary.
|
|
1800
|
+
--delete delete remote files that are not present locally
|
|
1801
|
+
--dry-run do not actually upload the app installation
|
|
1802
|
+
--source=<value> (required) source directory from which to upload the app installation
|
|
1803
|
+
--ssh-user=<value> override the SSH user to connect with; if omitted, your own user will be used
|
|
1804
|
+
|
|
1805
|
+
DESCRIPTION
|
|
1806
|
+
Upload the filesystem of an app to a project
|
|
1807
|
+
|
|
1808
|
+
Upload the filesystem of an app from your local machine to a project.
|
|
1809
|
+
|
|
1810
|
+
CAUTION: This is a potentially destructive operation. It will overwrite files on the server with the files from your
|
|
1811
|
+
local machine. This is NOT a turnkey deployment solution. It is intended for development purposes only.
|
|
1812
|
+
|
|
1813
|
+
FLAG DESCRIPTIONS
|
|
1814
|
+
-q, --quiet suppress process output and only display a machine-readable summary.
|
|
1815
|
+
|
|
1816
|
+
This flag controls if you want to see the process output or only a summary. When using mw non-interactively (e.g. in
|
|
1817
|
+
scripts), you can use this flag to easily get the IDs of created resources for further processing.
|
|
1818
|
+
|
|
1819
|
+
--ssh-user=<value> override the SSH user to connect with; if omitted, your own user will be used
|
|
1820
|
+
|
|
1821
|
+
This flag can be used to override the SSH user that is used for a connection; be default, your own personal user
|
|
1822
|
+
will be used for this.
|
|
1823
|
+
|
|
1824
|
+
You can also set this value by setting the MITTWALD_SSH_USER environment variable.
|
|
1825
|
+
```
|
|
1826
|
+
|
|
1547
1827
|
## `mw app versions [APP]`
|
|
1548
1828
|
|
|
1549
1829
|
List supported Apps and Versions
|
|
@@ -1588,7 +1868,7 @@ EXAMPLES
|
|
|
1588
1868
|
$ mw autocomplete --refresh-cache
|
|
1589
1869
|
```
|
|
1590
1870
|
|
|
1591
|
-
_See code: [@oclif/plugin-autocomplete](https://github.com/oclif/plugin-autocomplete/blob/v3.0.
|
|
1871
|
+
_See code: [@oclif/plugin-autocomplete](https://github.com/oclif/plugin-autocomplete/blob/v3.0.15/src/commands/autocomplete/index.ts)_
|
|
1592
1872
|
|
|
1593
1873
|
## `mw backup create`
|
|
1594
1874
|
|
|
@@ -2303,7 +2583,7 @@ Create a dump of a MySQL database
|
|
|
2303
2583
|
|
|
2304
2584
|
```
|
|
2305
2585
|
USAGE
|
|
2306
|
-
$ mw database mysql dump DATABASE-ID -o <value> [-q] [-p <value>] [--
|
|
2586
|
+
$ mw database mysql dump DATABASE-ID -o <value> [-q] [-p <value>] [--temporary-user] [--ssh-user <value>] [--gzip]
|
|
2307
2587
|
|
|
2308
2588
|
ARGUMENTS
|
|
2309
2589
|
DATABASE-ID The ID or name of the database
|
|
@@ -2350,8 +2630,8 @@ FLAG DESCRIPTIONS
|
|
|
2350
2630
|
|
|
2351
2631
|
--[no-]temporary-user create a temporary user for the dump
|
|
2352
2632
|
|
|
2353
|
-
Create a temporary user for
|
|
2354
|
-
you want to
|
|
2633
|
+
Create a temporary user for this operation. This user will be deleted after the operation has completed. This is
|
|
2634
|
+
useful if you want to work with a database that is not accessible from the outside.
|
|
2355
2635
|
|
|
2356
2636
|
If this flag is disabled, you will need to specify the password of the default user; either via the --mysql-password
|
|
2357
2637
|
flag or via the MYSQL_PWD environment variable.
|
|
@@ -2376,6 +2656,65 @@ DESCRIPTION
|
|
|
2376
2656
|
Get a MySQLDatabase.
|
|
2377
2657
|
```
|
|
2378
2658
|
|
|
2659
|
+
## `mw database mysql import DATABASE-ID`
|
|
2660
|
+
|
|
2661
|
+
Imports a dump of a MySQL database
|
|
2662
|
+
|
|
2663
|
+
```
|
|
2664
|
+
USAGE
|
|
2665
|
+
$ mw database mysql import DATABASE-ID -i <value> [-q] [-p <value>] [--temporary-user] [--ssh-user <value>] [--gzip]
|
|
2666
|
+
|
|
2667
|
+
ARGUMENTS
|
|
2668
|
+
DATABASE-ID The ID or name of the database
|
|
2669
|
+
|
|
2670
|
+
FLAGS
|
|
2671
|
+
-i, --input=<value> (required) the input file from which to read the dump ("-" for stdin)
|
|
2672
|
+
-p, --mysql-password=<value> the password to use for the MySQL user (env: MYSQL_PWD)
|
|
2673
|
+
-q, --quiet suppress process output and only display a machine-readable summary.
|
|
2674
|
+
--gzip uncompress the dump with gzip
|
|
2675
|
+
--ssh-user=<value> override the SSH user to connect with; if omitted, your own user will be used
|
|
2676
|
+
--[no-]temporary-user create a temporary user for the dump
|
|
2677
|
+
|
|
2678
|
+
FLAG DESCRIPTIONS
|
|
2679
|
+
-i, --input=<value> the input file from which to read the dump ("-" for stdin)
|
|
2680
|
+
|
|
2681
|
+
The input file from which to read the dump to. You can specify "-" or "/dev/stdin" to read the dump directly from
|
|
2682
|
+
STDIN.
|
|
2683
|
+
|
|
2684
|
+
-p, --mysql-password=<value> the password to use for the MySQL user (env: MYSQL_PWD)
|
|
2685
|
+
|
|
2686
|
+
The password to use for the MySQL user. If not provided, the environment variable MYSQL_PWD will be used. If that is
|
|
2687
|
+
not set either, the command will interactively ask for the password.
|
|
2688
|
+
|
|
2689
|
+
NOTE: This is a security risk, as the password will be visible in the process list of your system, and will be
|
|
2690
|
+
visible in your Shell history. It is recommended to use the environment variable instead.
|
|
2691
|
+
|
|
2692
|
+
-q, --quiet suppress process output and only display a machine-readable summary.
|
|
2693
|
+
|
|
2694
|
+
This flag controls if you want to see the process output or only a summary. When using mw non-interactively (e.g. in
|
|
2695
|
+
scripts), you can use this flag to easily get the IDs of created resources for further processing.
|
|
2696
|
+
|
|
2697
|
+
--gzip uncompress the dump with gzip
|
|
2698
|
+
|
|
2699
|
+
Uncompress the dump with gzip while importing. This is useful for large databases, as it can significantly reduce
|
|
2700
|
+
the size of the dump.
|
|
2701
|
+
|
|
2702
|
+
--ssh-user=<value> override the SSH user to connect with; if omitted, your own user will be used
|
|
2703
|
+
|
|
2704
|
+
This flag can be used to override the SSH user that is used for a connection; be default, your own personal user
|
|
2705
|
+
will be used for this.
|
|
2706
|
+
|
|
2707
|
+
You can also set this value by setting the MITTWALD_SSH_USER environment variable.
|
|
2708
|
+
|
|
2709
|
+
--[no-]temporary-user create a temporary user for the dump
|
|
2710
|
+
|
|
2711
|
+
Create a temporary user for this operation. This user will be deleted after the operation has completed. This is
|
|
2712
|
+
useful if you want to work with a database that is not accessible from the outside.
|
|
2713
|
+
|
|
2714
|
+
If this flag is disabled, you will need to specify the password of the default user; either via the --mysql-password
|
|
2715
|
+
flag or via the MYSQL_PWD environment variable.
|
|
2716
|
+
```
|
|
2717
|
+
|
|
2379
2718
|
## `mw database mysql list`
|
|
2380
2719
|
|
|
2381
2720
|
List MySQLDatabases belonging to a Project.
|
|
@@ -3154,7 +3493,7 @@ DESCRIPTION
|
|
|
3154
3493
|
Display help for mw.
|
|
3155
3494
|
```
|
|
3156
3495
|
|
|
3157
|
-
_See code: [@oclif/plugin-help](https://github.com/oclif/plugin-help/blob/v6.0.
|
|
3496
|
+
_See code: [@oclif/plugin-help](https://github.com/oclif/plugin-help/blob/v6.0.21/src/commands/help.ts)_
|
|
3158
3497
|
|
|
3159
3498
|
## `mw login reset`
|
|
3160
3499
|
|
|
@@ -4548,7 +4887,7 @@ EXAMPLES
|
|
|
4548
4887
|
$ mw update --available
|
|
4549
4888
|
```
|
|
4550
4889
|
|
|
4551
|
-
_See code: [@oclif/plugin-update](https://github.com/oclif/plugin-update/blob/v4.2.
|
|
4890
|
+
_See code: [@oclif/plugin-update](https://github.com/oclif/plugin-update/blob/v4.2.6/src/commands/update.ts)_
|
|
4552
4891
|
|
|
4553
4892
|
## `mw user api-token create`
|
|
4554
4893
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ExecRenderBaseCommand } from "../../../rendering/react/ExecRenderBaseCommand.js";
|
|
2
2
|
import { AppInstaller, } from "../../../lib/app/Installer.js";
|
|
3
|
-
const
|
|
3
|
+
const matomoInstaller = new AppInstaller("91fa05e7-34f7-42e8-a8d3-a9c42abd5f8c", "Matomo", [
|
|
4
4
|
"version",
|
|
5
5
|
"host",
|
|
6
6
|
"admin-user",
|
|
@@ -10,12 +10,12 @@ const installer = new AppInstaller("91fa05e7-34f7-42e8-a8d3-a9c42abd5f8c", "Mato
|
|
|
10
10
|
"wait",
|
|
11
11
|
]);
|
|
12
12
|
export default class InstallMatomo extends ExecRenderBaseCommand {
|
|
13
|
-
static description =
|
|
14
|
-
static flags =
|
|
13
|
+
static description = matomoInstaller.description;
|
|
14
|
+
static flags = matomoInstaller.flags;
|
|
15
15
|
async exec() {
|
|
16
|
-
return
|
|
16
|
+
return matomoInstaller.exec(this.apiClient, this.args, this.flags, this.config);
|
|
17
17
|
}
|
|
18
18
|
render(result) {
|
|
19
|
-
return
|
|
19
|
+
return matomoInstaller.render(result, this.flags);
|
|
20
20
|
}
|
|
21
21
|
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ExecRenderBaseCommand } from "../../../rendering/react/ExecRenderBaseCommand.js";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { AppInstallationResult, AppInstaller } from "../../../lib/app/Installer.js";
|
|
4
|
+
export declare const moodleInstaller: AppInstaller<"version" | "host" | "admin-user" | "admin-email" | "admin-pass" | "site-title" | "wait">;
|
|
5
|
+
export default class InstallMoodle extends ExecRenderBaseCommand<typeof InstallMoodle, AppInstallationResult> {
|
|
6
|
+
static description: string;
|
|
7
|
+
static flags: import("@oclif/core/lib/interfaces/parser.js").FlagInput<import("../../../lib/app/flags.js").RelevantFlags<readonly ("version" | "host" | "admin-user" | "admin-email" | "admin-pass" | "site-title" | "wait")[]>>;
|
|
8
|
+
protected exec(): Promise<{
|
|
9
|
+
appInstallationId: string;
|
|
10
|
+
}>;
|
|
11
|
+
protected render(result: AppInstallationResult): React.ReactNode;
|
|
12
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { ExecRenderBaseCommand } from "../../../rendering/react/ExecRenderBaseCommand.js";
|
|
2
|
+
import { AppInstaller, } from "../../../lib/app/Installer.js";
|
|
3
|
+
export const moodleInstaller = new AppInstaller("5ba3b4ea-9f79-460a-bbef-d901beca4cf1", "Moodle", [
|
|
4
|
+
"version",
|
|
5
|
+
"host",
|
|
6
|
+
"admin-user",
|
|
7
|
+
"admin-email",
|
|
8
|
+
"admin-pass",
|
|
9
|
+
"site-title",
|
|
10
|
+
"wait",
|
|
11
|
+
]);
|
|
12
|
+
export default class InstallMoodle extends ExecRenderBaseCommand {
|
|
13
|
+
static description = moodleInstaller.description;
|
|
14
|
+
static flags = moodleInstaller.flags;
|
|
15
|
+
async exec() {
|
|
16
|
+
return moodleInstaller.exec(this.apiClient, this.args, this.flags, this.config);
|
|
17
|
+
}
|
|
18
|
+
render(result) {
|
|
19
|
+
return moodleInstaller.render(result, this.flags);
|
|
20
|
+
}
|
|
21
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ExecRenderBaseCommand } from "../../../rendering/react/ExecRenderBaseCommand.js";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { AppInstallationResult, AppInstaller } from "../../../lib/app/Installer.js";
|
|
4
|
+
export declare const neosInstaller: AppInstaller<"version" | "admin-user" | "admin-pass" | "admin-firstname" | "admin-lastname" | "site-title" | "wait">;
|
|
5
|
+
export default class InstallNeos extends ExecRenderBaseCommand<typeof InstallNeos, AppInstallationResult> {
|
|
6
|
+
static description: string;
|
|
7
|
+
static flags: import("@oclif/core/lib/interfaces/parser.js").FlagInput<import("../../../lib/app/flags.js").RelevantFlags<readonly ("version" | "admin-user" | "admin-pass" | "admin-firstname" | "admin-lastname" | "site-title" | "wait")[]>>;
|
|
8
|
+
protected exec(): Promise<{
|
|
9
|
+
appInstallationId: string;
|
|
10
|
+
}>;
|
|
11
|
+
protected render(result: AppInstallationResult): React.ReactNode;
|
|
12
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { ExecRenderBaseCommand } from "../../../rendering/react/ExecRenderBaseCommand.js";
|
|
2
|
+
import { AppInstaller, } from "../../../lib/app/Installer.js";
|
|
3
|
+
export const neosInstaller = new AppInstaller("1f55f9fa-1902-409c-b305-7e428c5ed64d", "NEOS", [
|
|
4
|
+
"version",
|
|
5
|
+
"admin-user",
|
|
6
|
+
"admin-pass",
|
|
7
|
+
"admin-firstname",
|
|
8
|
+
"admin-lastname",
|
|
9
|
+
"site-title",
|
|
10
|
+
"wait",
|
|
11
|
+
]);
|
|
12
|
+
export default class InstallNeos extends ExecRenderBaseCommand {
|
|
13
|
+
static description = neosInstaller.description;
|
|
14
|
+
static flags = neosInstaller.flags;
|
|
15
|
+
async exec() {
|
|
16
|
+
return neosInstaller.exec(this.apiClient, this.args, this.flags, this.config);
|
|
17
|
+
}
|
|
18
|
+
render(result) {
|
|
19
|
+
return neosInstaller.render(result, this.flags);
|
|
20
|
+
}
|
|
21
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ExecRenderBaseCommand } from "../../../rendering/react/ExecRenderBaseCommand.js";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { AppInstallationResult, AppInstaller } from "../../../lib/app/Installer.js";
|
|
4
|
+
export declare const prestashopInstaller: AppInstaller<"version" | "host" | "admin-email" | "admin-pass" | "admin-firstname" | "admin-lastname" | "site-title" | "shop-lang" | "wait">;
|
|
5
|
+
export default class InstallPrestashop extends ExecRenderBaseCommand<typeof InstallPrestashop, AppInstallationResult> {
|
|
6
|
+
static description: string;
|
|
7
|
+
static flags: import("@oclif/core/lib/interfaces/parser.js").FlagInput<import("../../../lib/app/flags.js").RelevantFlags<readonly ("version" | "host" | "admin-email" | "admin-pass" | "admin-firstname" | "admin-lastname" | "site-title" | "shop-lang" | "wait")[]>>;
|
|
8
|
+
protected exec(): Promise<{
|
|
9
|
+
appInstallationId: string;
|
|
10
|
+
}>;
|
|
11
|
+
protected render(result: AppInstallationResult): React.ReactNode;
|
|
12
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { ExecRenderBaseCommand } from "../../../rendering/react/ExecRenderBaseCommand.js";
|
|
2
|
+
import { AppInstaller, } from "../../../lib/app/Installer.js";
|
|
3
|
+
export const prestashopInstaller = new AppInstaller("3a231de7-6fd2-4aab-9948-45906952752f", "PrestaShop", [
|
|
4
|
+
"version",
|
|
5
|
+
"host",
|
|
6
|
+
"admin-email",
|
|
7
|
+
"admin-pass",
|
|
8
|
+
"admin-firstname",
|
|
9
|
+
"admin-lastname",
|
|
10
|
+
"site-title",
|
|
11
|
+
"shop-lang",
|
|
12
|
+
"wait",
|
|
13
|
+
]);
|
|
14
|
+
export default class InstallPrestashop extends ExecRenderBaseCommand {
|
|
15
|
+
static description = prestashopInstaller.description;
|
|
16
|
+
static flags = prestashopInstaller.flags;
|
|
17
|
+
async exec() {
|
|
18
|
+
return prestashopInstaller.exec(this.apiClient, this.args, this.flags, this.config);
|
|
19
|
+
}
|
|
20
|
+
render(result) {
|
|
21
|
+
return prestashopInstaller.render(result, this.flags);
|
|
22
|
+
}
|
|
23
|
+
}
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { assertStatus } from "@mittwald/api-client-commons";
|
|
2
2
|
import { projectFlags, withProjectId } from "../../lib/project/flags.js";
|
|
3
3
|
import { ListBaseCommand } from "../../ListBaseCommand.js";
|
|
4
|
-
import { phpInstaller } from "./create/php.js";
|
|
5
|
-
import { nodeInstaller } from "./create/node.js";
|
|
6
4
|
import { getAppFromUuid, getAppVersionFromUuid } from "../../lib/app/uuid.js";
|
|
5
|
+
import { isCustomAppInstallation } from "../../lib/app/custom_installation.js";
|
|
7
6
|
export default class List extends ListBaseCommand {
|
|
8
7
|
static description = "List installed apps in a project.";
|
|
9
8
|
static flags = {
|
|
@@ -44,7 +43,7 @@ export default class List extends ListBaseCommand {
|
|
|
44
43
|
appVersion: {
|
|
45
44
|
header: "Version",
|
|
46
45
|
get: (i) => {
|
|
47
|
-
if (
|
|
46
|
+
if (isCustomAppInstallation(i.appId)) {
|
|
48
47
|
return "n/a";
|
|
49
48
|
}
|
|
50
49
|
if (i.appVersionCurrent?.id === i.appVersionDesired.id) {
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { ExecRenderBaseCommand } from "../../rendering/react/ExecRenderBaseCommand.js";
|
|
2
|
+
import { ReactNode } from "react";
|
|
3
|
+
export declare class Upload extends ExecRenderBaseCommand<typeof Upload, void> {
|
|
4
|
+
static summary: string;
|
|
5
|
+
static description: string;
|
|
6
|
+
static args: {
|
|
7
|
+
"installation-id": import("@oclif/core/lib/interfaces/parser.js").Arg<string>;
|
|
8
|
+
};
|
|
9
|
+
static flags: {
|
|
10
|
+
"dry-run": import("@oclif/core/lib/interfaces/parser.js").BooleanFlag<boolean>;
|
|
11
|
+
delete: import("@oclif/core/lib/interfaces/parser.js").BooleanFlag<boolean>;
|
|
12
|
+
source: import("@oclif/core/lib/interfaces/parser.js").OptionFlag<string, import("@oclif/core/lib/interfaces/parser.js").CustomOptions>;
|
|
13
|
+
"ssh-user": import("@oclif/core/lib/interfaces/parser.js").OptionFlag<string, import("@oclif/core/lib/interfaces/parser.js").CustomOptions>;
|
|
14
|
+
quiet: import("@oclif/core/lib/interfaces/parser.js").BooleanFlag<boolean>;
|
|
15
|
+
};
|
|
16
|
+
protected exec(): Promise<void>;
|
|
17
|
+
protected render(): ReactNode;
|
|
18
|
+
}
|