-
Notifications
You must be signed in to change notification settings - Fork 13
create:snippet
Rob Sanchez edited this page Nov 1, 2014
·
3 revisions
Create a new snippet. When you have Sync Snippets installed and configured, this command will write a snippet file as well.
$ eecli create:snippet <name> <contents>
Name of snippet.
Optional. Content of snippet.
Create a global snippet.
Use stdin as snippet contents.
Create a blank snippet
$ eecli create:snippet your_snippet_name
Create a snippet with content
$ eecli create:snippet your_snippet_name "your snippet content"
Pipe in content
$ eecli create:snippet --stdin your_snippet_name
Create a snippet accessible to all sites
$ eecli create:snippet --global your_snippet_name
- create:category
- create:category_group
- create:channel
- create:field:<fieldtype>
- create:field_group
- create:global_variable
- create:member
- create:member_group
- create:snippet
- create:status
- create:status_group
- create:template
- create:template_group
- create:upload_pref