Skip to content
This repository was archived by the owner on Nov 19, 2024. It is now read-only.

[2.3.3] Updated lock config and lock env short commands #4490

Merged
merged 3 commits into from
May 13, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ bin/magento config:set [--scope="..."] [--scope-code="..."] [-l | --lock] path v
To set system-specific configuration values on Magento 2.2.4 and higher (on the 2.2 branch), use:

```bash
bin/magento config:set [--scope="..."] [--scope-code="..."] [-le | --lock-env] [-lc | --lock-config] path value
bin/magento config:set [--scope="..."] [--scope-code="..."] [-e | --lock-env] [-c | --lock-config] path value
```

To set sensitive configuration values, use:
Expand All @@ -126,8 +126,8 @@ Parameter | Description | Versions available
`--scope` | The scope of the configuration. The possible values are `default`, `website`, or `store`. The default is `default`. | All
`--scope-code` | The scope code of configuration (website code or store view code). | All
`-l` or `--lock` | Either locks the value so it cannot be edited in the Magento Admin or changes a setting that is already locked in the Magento Admin. The command writes the value to the `<Magento base dir>/app/etc/env.php` file. | 2.2.0 - 2.2.3
`-le or --lock-env` | Either locks the value so it cannot be edited in the Magento Admin or changes a setting that is already locked in the Magento Admin. The command writes the value to the `<Magento base dir>/app/etc/env.php` file. | 2.2.4 and higher
`-lc or --lock-config` | Either locks the value so it cannot be edited in the Magento Admin or changes a setting that is already locked in the Magento Admin. The command writes the value to the `<Magento base dir>/app/etc/config.php` file. The `--lock-config` option overwrites `--lock-env` if you specify both options. | 2.2.4 and higher
`-e or --lock-env` | Either locks the value so it cannot be edited in the Magento Admin or changes a setting that is already locked in the Magento Admin. The command writes the value to the `<Magento base dir>/app/etc/env.php` file. | 2.2.4 and higher
`-c or --lock-config` | Either locks the value so it cannot be edited in the Magento Admin or changes a setting that is already locked in the Magento Admin. The command writes the value to the `<Magento base dir>/app/etc/config.php` file. The `--lock-config` option overwrites `--lock-env` if you specify both options. | 2.2.4 and higher
`path` | *Required*. The configuration path | All
`value` | *Required*. The value of the configuration | All

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ To find the values in the database:
To set system-specific configuration values, use:

```bash
bin/magento config:set [--scope="..."] [--scope-code="..."] [-le | --lock-env] [-lc | --lock-config] path value
bin/magento config:set [--scope="..."] [--scope-code="..."] [-e | --lock-env] [-c | --lock-config] path value
```

To set sensitive configuration values, use:
Expand All @@ -126,8 +126,8 @@ Parameter | Description
--- | --- | ---
`--scope` | The scope of the configuration. The possible values are `default`, `website`, or `store`. The default is `default`.
`--scope-code` | The scope code of configuration (website code or store view code)
`-le or --lock-env` | Either locks the value so it cannot be edited in the Magento Admin or changes a setting that is already locked in the Magento Admin. The command writes the value to the `<Magento base dir>/app/etc/env.php` file.
`-lc or --lock-config` | Either locks the value so it cannot be edited in the Magento Admin or changes a setting that is already locked in the Magento Admin. The command writes the value to the `<Magento base dir>/app/etc/config.php` file. The `--lock-config` option overwrites `--lock-env` if you specify both options.
`-e or --lock-env` | Either locks the value so it cannot be edited in the Magento Admin or changes a setting that is already locked in the Magento Admin. The command writes the value to the `<Magento base dir>/app/etc/env.php` file.
`-c or --lock-config` | Either locks the value so it cannot be edited in the Magento Admin or changes a setting that is already locked in the Magento Admin. The command writes the value to the `<Magento base dir>/app/etc/config.php` file. The `--lock-config` option overwrites `--lock-env` if you specify both options.
`path` | *Required*. The configuration path
`value` | *Required*. The value of the configuration

Expand Down