Skip to content

Create New CLI command: create store view #288

Open
magento/magento2
#29408
@0m3r

Description

@0m3r

Hi, it would be cool, if someone could setup the store view using the command line. Save us a lot of clicking.
For example like here

bin/magento store:create "Deutschland" de 1 20 -g 1
bin/magento store:create -h 
Description:
  Create new store view (see list: bin/magento store:list)

Usage:
  store:create [options] [--] <name> <code> [<is_active> [<sort_order>]]

Arguments:
  name                       Put the store view name you want to create 
  code                        Put the code 
  is_active                  Status (enable/disable) [default: true]
  sort_order                Sort Order [default: 0]

Options:
  -g, --group_id[=GROUP_ID]  Group ID (php bin/magento store:list). [default: "1"]
  -h, --help                 Display this help message
  -q, --quiet                Do not output any message
  -V, --version              Display this application version
      --ansi                 Force ANSI output
      --no-ansi              Disable ANSI output
  -n, --no-interaction       Do not ask any interactive question
  -v|vv|vvv, --verbose       Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions