Skip to content

create:channel

Rob Sanchez edited this page Mar 9, 2015 · 7 revisions

Create a channel. Pass in a channel short name using underscores only and optionally pass in a channel title. If you exclude the channel title, one will be auto-generated from your channel short name.

$ eecli create:channel <name> <title>

Arguments

name

What is the short name of the channel? (ex. blog_articles)

title

Optional. What is the title of the channel? (ex. Blog Articles)

Options

--field_group="1"

Which field group (ID or name) do you want to assign this channel to?

--status_group="1"

Which status group (ID or name) do you want to assign this channel to?

--cat_group="1"

Which category group(s) (ID or name) do you want to assign this channel to? You may use this option more than once to provide multiple values.

--channel_url="/blog"

What is the url for this channel?

--channel_description="Your description here."

What is the description for this channel?

--default_entry_title="Default Title"

What is the default entry title for this channel?

--url_title_prefix="blog_"

What is the URL Title prefix for this channel?

--deft_status="open"

What is the default status for this channel? Default: open.

--deft_category="1"

What is the default category (ID or name) for this channel?

--new_field_group

Do you wish to also create a new field group with the same name as the channel?

Examples

Create a channel with the short name test_channel

$ eecli create:channel test_channel

Create a channel with the title Test Channel

$ eecli create:channel test_channel "Test Channel"

Create a channel with field group 5

$ eecli create:channel --field_group=5 test_channel

Create a channel with field group "Blog"

$ eecli create:channel --field_group="Blog" test_channel

Create a channel with status group "Statuses"

$ eecli create:channel --status_group="Statuses" test_channel

Create a channel with category group 5 and 6

$ eecli create:channel --cat_group=5 --cat_group=6 test_channel

Create a channel with category group "Apparel" and "Accessories"

$ eecli create:channel --cat_group="Apparel" --cat_group="Accessories" test_channel

Create a channel with new field group with same title as channel

$ eecli create:channel --new_field_group test_channel
Clone this wiki locally