Template
List
List all ProcessWire templates.
$ wireshell template:list
Available options:
--advanced : Show system templates as well; by default, system/internal templates are not shown
Examples
List all available ProcessWire templates.
$ wireshell templates:list
============ ======== ======= ============= ========
Template Fields Pages Modified Access
============ ======== ======= ============= ========
basic-page 6 1 3 weeks ago
home 6 1 3 weeks ago
============ ======== ======= ============= ========
List all available ProcessWire templates including system/internal templates.
$ wireshell templates:list --advanced
============ ======== ======= ============= ========
Template Fields Pages Modified Access
============ ======== ======= ============= ========
admin 2 26 3 weeks ago ✖
basic-page 6 1 3 weeks ago
home 6 1 3 weeks ago
permission 1 15 Never ✖
role 1 4 Never ✖
user 3 7 Never ✖
============ ======== ======= ============= ========
Create
Create a ProcessWire template.
$ wireshell template:create {name}
Available options:
--fields : Attach existing fields to template, comma separated
--nofile : Prevent template file creation
Examples
Create a template with given name.
$ wireshell template:create new-template
Create a template with given name but prevent template file creation.
$ wireshell template:create new-template --nofile
Create a template with given name and assign some fields.
$ wireshell template:create new-template --fields=images,headline,body
Delete
Delete one or more ProcessWire templates.
$ wireshell template:delete {template},{template}
Available options:
--nofile : Prevent template file deletion
Examples
Delete template and belonging file.
$ wireshell template:delete basic-page
Delete template but keep belonging file.
$ wireshell template:delete basic-page --nofile
Fields
Assign given fields to a given template.
$ wireshell template:fields {template}
Available options:
--fields : Attach existing fields to template, comma separated
Examples
Assign existing fields to template.
$ wireshell template:fields basic-page --fields=images,headline,body
Tag
Tag one or more existing templates.
$ wireshell template:tag {template} --tag={tag}
Available options:
--tag : tag name
Examples
Tag template basic-page
and home
with tag general
.
$ wireshell template:tag basic-page,home --tag=general
Info
Displays detailed information about a specific template.
$ wireshell template:info {template}
Examples
Get detailed information about template basic-page
.
$ wireshell template:info basic-page