You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 19, 2024. It is now read-only.
Copy file name to clipboardExpand all lines: src/cloud/project/magento-env-yaml.md
+42Lines changed: 42 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -67,3 +67,45 @@ When a failure occurs because of an unexpected value in the `.magento.env.yaml`
67
67
```
68
68
69
69
Make any corrections, commit, and push the changes. If you do not receive an error message, then the changes to your configuration file pass the validation.
70
+
71
+
## Create configuration file from CLI
72
+
73
+
You can use the following `ece-tools` CLI commands to generate a `.magento.env.yaml` configuration file for a Cloud environment.
74
+
75
+
```bash
76
+
php ./vendor/bin/ece-tools cloud:config:create # Creates a new configuration file
77
+
php ./vendor/bin/ece-tools cloud:config:update # Updates values in the configuration file
78
+
```
79
+
80
+
Both commands require a single argument, a JSON-formatted array that specifies a value for at least one build, deploy, or post-deploy variable. For example, the following command sets values for the `SCD_THREADS` and `CLEAN_STATIC_FILES` variables.
This command creates a new .magento.env.yaml file with the following settings:
87
+
88
+
```yaml
89
+
stage:
90
+
build:
91
+
SCD_THREADS: 5
92
+
deploy:
93
+
CLEAN_STATIC_FILES: false
94
+
```
95
+
96
+
You can use the cloud:config:update command to update the new file. For example, the following command changes the `SCD_THREADS` value and adds the `SCD_COMPRESSION_TIMEOUT` configuration:
Copy file name to clipboardExpand all lines: src/cloud/reference/ece-tools-reference.md
+27-21Lines changed: 27 additions & 21 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -19,39 +19,45 @@ php ./vendor/bin/ece-tools list
19
19
20
20
```terminal
21
21
Available commands:
22
-
build Builds application
23
-
db-dump Creates backup of database
24
-
deploy Deploys application
25
-
help Displays help for a command
26
-
list Lists commands
27
-
patch Applies custom patches
22
+
build Builds application.
23
+
db-dump Creates database backups.
24
+
deploy Deploys application.
25
+
help Displays help for a command.
26
+
list Lists commands.
27
+
patch Applies custom patches.
28
28
post-deploy Performs after deploy operations.
29
-
run Execute scenario(s)
29
+
run Execute scenario(s).
30
30
backup
31
-
backup:list Shows the list of backup files
31
+
backup:list Shows the list of backup files.
32
32
backup:restore Restore important configuration files. Run backup:list to show the list of backup files
33
-
build
34
-
build:generate Generates all necessary files for build stage
35
-
build:transfer Transfer generated files into init directory
33
+
build.
34
+
build:generate Generates all necessary files for build stage.
35
+
build:transfer Transfers generated files into init directory.
36
+
cloud
37
+
cloud:config:create Creates a `.magento.env.yaml` file with the specified build, deploy, and post-deploy variable configuration. Overwrites any existing `.magento,.env.yaml` file.
38
+
cloud:config:update Updates the existing `.magento.env.yaml` file with the specified configuration. Creates `.magento.env.yaml` file if it does not exist.
36
39
config
37
40
config:dump [dump] Dump configuration for static content deployment.
38
41
cron
39
-
cron:disable Disable all Magento cron processes and kills currently running
40
-
cron:enable Enable Magento cron processes
41
-
cron:kill Kill all Magento cron processes
42
+
cron:disable Disable all Magento cron processes and kills currently running.
43
+
cron:enable Enable Magento cron processes.
44
+
cron:kill Kill all Magento cron processes.
42
45
cron:unlock Unlock cron jobs that stuck in "running" state.
43
46
dev
44
47
dev:git:update-composer Updates composer for deployment from git.
0 commit comments