Pages, Schema, Modules & RBAC
Every mutating command below supports --dry-run for safe previews and --json for structured scripting.
Page Commands (9)
Section titled “Page Commands (9)”| Command | Arguments & Options | Purpose |
|---|---|---|
page:list |
--template, --parent, --sort, --limit, --include, --json |
Lists pages with template, parent, sort, and inclusion filters. |
page:find |
<selector>, --limit, --json |
Finds pages matching any ProcessWire selector expression. |
page:create |
--parent, --template, --name, --title, --unpublished, --interactive, --dry-run, --json |
Creates a new page under a parent with a specified template. |
page:update |
--id, --path, --title, --name, --parent, --template, --set, --status, --interactive, --dry-run, --json |
Updates fields, title, parent, template, or status flags on a page. |
page:move |
--id, --path, --parent, --dry-run, --json |
Moves a page to a new parent page. |
page:publish |
--id, --path, --dry-run, --json |
Removes the unpublished status from a page. |
page:unpublish |
--id, --path, --dry-run, --json |
Adds the unpublished status to a page. |
page:trash |
--id, --path, --dry-run, --force, --json |
Moves a page to the ProcessWire Trash. |
page:restore |
--id, --path, --dry-run, --json |
Restores a trashed page back to its original parent. |
Template & Field Commands (13)
Section titled “Template & Field Commands (13)”| Command | Arguments & Options | Purpose |
|---|---|---|
template:list |
--search, --tag, --json |
Lists all templates with optional search or tag filtering. |
template:info |
[name], --name, --json |
Prints detailed template settings, flags, and attached fields. |
template:update |
--name, --set, --dry-run, --json |
Updates template settings (tags, flags, label, etc.). |
template:rename |
--name, --new-name, --dry-run, --json |
Renames a non-system template. |
template:delete |
[name], --name, --dry-run, --force, --json |
Deletes an unused non-system template. |
template:fields:reorder |
--template, --fields, --dry-run, --json |
Moves listed fields in the specified order to the front of a template’s fieldgroup. |
field:list |
--type, --search, --json |
Lists all fields filtered by Fieldtype or search text. |
field:info |
[name], --name, --json |
Shows field type, flags, settings, and templates using the field. |
field:attach |
--field, --template, --after, --position, --dry-run, --json |
Attaches a field to a template with optional positioning. |
field:detach |
--field, --template, --dry-run, --force, --json |
Detaches a field from a template. |
field:update |
--name, --set, --dry-run, --json |
Updates field properties such as label or tags. |
field:rename |
--name, --new-name, --dry-run, --json |
Renames a non-system field. |
field:delete |
[name], --name, --dry-run, --force, --json |
Deletes an unattached non-system field. |
Module Commands (6)
Section titled “Module Commands (6)”| Command | Arguments & Options | Purpose |
|---|---|---|
module:list |
--search, --core, --site, --json |
Lists installed core and site modules with versions. |
module:refresh |
--name, --json |
Refreshes ProcessWire’s module cache (single module or all modules). |
module:install |
--name, --dry-run, --json |
Installs a site or core module by class name. |
module:upgrade |
--name, --json |
Refreshes and triggers ProcessWire’s ___upgrade() check for a module. |
module:uninstall |
--name, --dry-run, --force, --json |
Uninstalls a module by class name cleanly. |
make:module |
<name>, --type, --title, --summary, --author, --mod-version, --autoload, --json |
Scaffolds a new ProcessWire module skeleton under site/modules/. |
Users, Roles & Permissions Commands (11)
Section titled “Users, Roles & Permissions Commands (11)”| Command | Arguments & Options | Purpose |
|---|---|---|
user:list |
--search, --role, --limit, --json |
Lists ProcessWire user accounts filtered by search or role. |
user:create |
[username], [email], --name, --email, --role, --password, --interactive, --force, --json |
Creates a new ProcessWire user account with optional roles. |
user:update |
--id, --name, --email, --password, --add-role, --remove-role, --dry-run, --force, --json |
Updates user email, password, or assigned roles. |
user:delete |
--id, --name, --dry-run, --force, --json |
Deletes a non-system user account (protects guest and superuser). |
role:list |
--json |
Lists all ProcessWire roles and their granted permissions. |
role:create |
[name], --name, --title, --permissions, --interactive, --json |
Creates a new role with optional initial permissions. |
role:grant |
--role, --permission, --dry-run, --json |
Grants a permission to a role. |
role:revoke |
--role, --permission, --dry-run, --json |
Revokes a permission from a role. |
permission:list |
--json |
Lists all core and custom permissions. |
permission:create |
[name], [title], --name, --title, --json |
Creates a new custom permission. |
permission:delete |
--name, --dry-run, --force, --json |
Deletes a custom permission safely. |