Skip to main content

config:store:get

Get a store config value.

n98-magerun2.phar config:store:get [--scope="..."] [--scope-id="..."] [--decrypt] [--update-script] [--magerun-script] [--format[="..."]] [path]

Arguments:

ArgumentDescription
pathThe config path. Wildcards (*) are supported. If not set, all items are listed.

Options:

OptionDescription
--scope=SCOPEThe config value's scope (default, websites, stores). Default: default.
--scope-id=SCOPE-IDThe config value's scope ID or scope code.
--decryptDecrypt the config value using crypt key defined in env.php.
--update-scriptOutput as update script lines.
--magerun-scriptOutput for usage with config:store:set.
--format[=FORMAT]Output Format. One of [csv,json,json_array,yaml,xml].

Help:

If path is not set, all available config items will be listed. path may contain wildcards (*)

Example:

n98-magerun2.phar config:store:get web/* --magerun-script