WordPress CLI
for cmdhub.
WordPress resources through the cmdhub CLI.
cmdhub get wordpress
data_object Agent Contract
Agents should start with auth/status and discovery commands, inspect schemas before composition, and treat commands marked as mutating as state-changing operations.
Output
Use human output for normal reads, `--json` for scripting or complete structured fields, and `--jsonl` for upstream pipe inputs.
Auth
local_config
Refs
Prefer list/search, then short refs or piped JSONL. Use `resolve` to inspect cached refs.
Schemas
Use `wordpress schema` and `catalog.json` to inspect fields, flags, examples, and side effects.
terminal Command Reference
Generated from source. Global flags apply to all commands.
Global Flags
--json
bool
Emit one JSON wrapper/debug payload--jsonl
bool
Emit pipeable pc.cli.v1 JSONL item/meta records--output, -o
string
Compatibility output mode: json|jsonl. Prefer --json for wrapper/debug or --jsonl for pipes--view
string = summary
View mode: summary|full--profile
string = default
Config/auth profile--config
string
Config path override--quiet, -q
bool
Suppress non-essential diagnostics--debug
bool
Enable debug diagnostics--limit
int = 50
Maximum items to emit--page-size
int = 50
Requested upstream page size--cursor
string
Continuation cursor--no-paginate
bool
Fetch only one page--version, -v
bool
Print version informationwordpress application-password
Inspect or revoke the current CLI Application Passwordwordpress application-password get
Inspect current Application Password metadata--site
string
WordPress site URL for this commandwordpress application-password revoke
Revoke the current CLI Application Password remotely--current
bool
Revoke only the current CLI Application Password--dry-run
bool
Preview without changing WordPress state--site
string
WordPress site URL for this command--yes
bool
Confirm remote revokewordpress auth
Manage WordPress authenticationwordpress auth login
Authenticate with a WordPress Application Password--application-name
string = cmdhub wordpress
Application Password name to create in wp-admin--password-stdin
bool
read the WordPress Application Password from stdin--site
string
WordPress site URL, for example https://example.com--username
string
WordPress username for the Application Password--wordpress-com
bool
use WordPress.com OAuth for a WordPress.com or Jetpack-connected sitewordpress auth logout
Remove stored WordPress credentials--revoke-remote
bool
revoke the current WordPress Application Password remotely before local cleanup--yes
bool
Confirm remote Application Password revokewordpress auth refresh
Validate stored WordPress credentialswordpress auth status
Show WordPress auth statuswordpress auth whoami
Show the current WordPress userwordpress autosave
Work with WordPress autosave recordswordpress autosave apply
Apply a WordPress autosave--content
string
Content--content-file
string
Read content from file or - for stdin--dry-run
bool
Preview without changing WordPress state--page
string
Parent page ref or ID--post
string
Parent post ref or ID--site
string
WordPress site URL for this command--title
string
Title--yes
bool
Confirm applywordpress autosave create
Create a WordPress autosave--content
string
Content--content-file
string
Read content from file or - for stdin--dry-run
bool
Preview without changing WordPress state--page
string
Parent page ref or ID--post
string
Parent post ref or ID--site
string
WordPress site URL for this command--title
string
Title--yes
bool
Confirm applywordpress autosave get
Get a WordPress autosave--page
string
Parent page ref or ID--post
string
Parent post ref or ID--site
string
WordPress site URL for this commandwordpress autosave list
List WordPress autosave records--page
string
Parent page ref or ID--post
string
Parent post ref or ID--site
string
WordPress site URL for this commandwordpress block
Inspect WordPress block recordswordpress block create
Create a WordPress block--category
stringArray = []
Category ref or ID; repeatable--content
string
Content body--content-file
string
Read content from file or - for stdin--content-format
string = html
Content format: html, markdown, or plain--date
string
Publish date--dry-run
bool
Preview without changing WordPress state--excerpt
string
Excerpt--excerpt-file
string
Read excerpt from file or - for stdin--featured-media
string
Featured media ref or ID--parent
string
Parent ref or ID--site
string
WordPress site URL for this command--slug
string
Slug--status
string = draft
WordPress status--tag
stringArray = []
Tag ref or ID; repeatable--timezone
string
Date timezone--title
string
Title--title-file
string
Read title from file or - for stdin--yes
bool
Confirm create-time publish or schedulewordpress block delete
Permanently delete a WordPress block--dry-run
bool
Preview without changing WordPress state--force
bool
Permanently delete instead of trashing--site
string
WordPress site URL for this command--yes
bool
Confirm permanent deletionwordpress block get
Get a WordPress block--context
string = edit
WordPress context: view, embed, or edit--site
string
WordPress site URL for this commandwordpress block list
List WordPress block records--after
string
Only records after this ISO timestamp--author
string
Author user ref or ID--before
string
Only records before this ISO timestamp--category
string
Category ref, slug, or ID--context
string = edit
WordPress context: view, embed, or edit--media-type
string
Media type: image, video, text, application, or audio--mime-type
string
Media MIME type--modified-after
string
Only records modified after this ISO timestamp--modified-before
string
Only records modified before this ISO timestamp--order
string
Sort order: asc or desc--orderby
string
WordPress orderby field--parent
string
Parent ref or ID--post
string
Post ref or ID--search
string
WordPress search parameter--site
string
WordPress site URL for this command--slug
string
WordPress slug--status
string
WordPress status filter--tag
string
Tag ref, slug, or ID--type
string
Custom post type REST base--who
string
User list filter, for example authorswordpress block restore
Restore a trashed WordPress block--dry-run
bool
Preview without changing WordPress state--site
string
WordPress site URL for this command--status
string = draft
Restored status: draft, pending, private, or publish--yes
bool
Confirm the restore operationwordpress block search
Search WordPress block records--after
string
Only records after this ISO timestamp--author
string
Author user ref or ID--before
string
Only records before this ISO timestamp--category
string
Category ref, slug, or ID--context
string = edit
WordPress context: view, embed, or edit--media-type
string
Media type: image, video, text, application, or audio--mime-type
string
Media MIME type--modified-after
string
Only records modified after this ISO timestamp--modified-before
string
Only records modified before this ISO timestamp--order
string
Sort order: asc or desc--orderby
string
WordPress orderby field--parent
string
Parent ref or ID--post
string
Post ref or ID--query
string
Search text--search
string
WordPress search parameter--site
string
WordPress site URL for this command--slug
string
WordPress slug--status
string
WordPress status filter--tag
string
Tag ref, slug, or ID--type
string
Custom post type REST base--who
string
User list filter, for example authorswordpress block trash
Move a WordPress block to trash--dry-run
bool
Preview without changing WordPress state--site
string
WordPress site URL for this command--yes
bool
Confirm the trash operationwordpress block update
Update a WordPress block--category
stringArray = []
Category ref or ID; repeatable--content
string
Content body--content-file
string
Read content from file or - for stdin--content-format
string = html
Content format: html, markdown, or plain--date
string
Publish date--dry-run
bool
Preview without changing WordPress state--excerpt
string
Excerpt--excerpt-file
string
Read excerpt from file or - for stdin--featured-media
string
Featured media ref or ID--parent
string
Parent ref or ID--site
string
WordPress site URL for this command--slug
string
Slug--status
string
WordPress status--tag
stringArray = []
Tag ref or ID; repeatable--timezone
string
Date timezone--title
string
Title--title-file
string
Read title from file or - for stdin--yes
bool
Confirm publishing, scheduling, or trash status changeswordpress block-type
Inspect WordPress block-type recordswordpress block-type get
Get a WordPress block-type--context
string = edit
WordPress context: view, embed, or edit--site
string
WordPress site URL for this commandwordpress block-type list
List WordPress block-type records--after
string
Only records after this ISO timestamp--author
string
Author user ref or ID--before
string
Only records before this ISO timestamp--category
string
Category ref, slug, or ID--context
string = edit
WordPress context: view, embed, or edit--media-type
string
Media type: image, video, text, application, or audio--mime-type
string
Media MIME type--modified-after
string
Only records modified after this ISO timestamp--modified-before
string
Only records modified before this ISO timestamp--order
string
Sort order: asc or desc--orderby
string
WordPress orderby field--parent
string
Parent ref or ID--post
string
Post ref or ID--search
string
WordPress search parameter--site
string
WordPress site URL for this command--slug
string
WordPress slug--status
string
WordPress status filter--tag
string
Tag ref, slug, or ID--type
string
Custom post type REST base--who
string
User list filter, for example authorswordpress block-type search
Search WordPress block-type records--after
string
Only records after this ISO timestamp--author
string
Author user ref or ID--before
string
Only records before this ISO timestamp--category
string
Category ref, slug, or ID--context
string = edit
WordPress context: view, embed, or edit--media-type
string
Media type: image, video, text, application, or audio--mime-type
string
Media MIME type--modified-after
string
Only records modified after this ISO timestamp--modified-before
string
Only records modified before this ISO timestamp--order
string
Sort order: asc or desc--orderby
string
WordPress orderby field--parent
string
Parent ref or ID--post
string
Post ref or ID--query
string
Search text--search
string
WordPress search parameter--site
string
WordPress site URL for this command--slug
string
WordPress slug--status
string
WordPress status filter--tag
string
Tag ref, slug, or ID--type
string
Custom post type REST base--who
string
User list filter, for example authorswordpress capabilities
Describe capabilities--section
string
Show one capability section: scopes, schemas, or commandswordpress category
Inspect WordPress category recordswordpress category create
Create a WordPress category--description
string
Description--dry-run
bool
Preview without changing WordPress state--name
string
Name--parent
string
Parent ref or ID--site
string
WordPress site URL for this command--slug
string
Slug--yes
bool
Confirm the mutationwordpress category delete
Delete a WordPress category--dry-run
bool
Preview without changing WordPress state--force
bool
Force permanent deletion--site
string
WordPress site URL for this command--yes
bool
Confirm deletionwordpress category get
Get a WordPress category--context
string = edit
WordPress context: view, embed, or edit--site
string
WordPress site URL for this commandwordpress category list
List WordPress category records--after
string
Only records after this ISO timestamp--author
string
Author user ref or ID--before
string
Only records before this ISO timestamp--category
string
Category ref, slug, or ID--context
string = edit
WordPress context: view, embed, or edit--media-type
string
Media type: image, video, text, application, or audio--mime-type
string
Media MIME type--modified-after
string
Only records modified after this ISO timestamp--modified-before
string
Only records modified before this ISO timestamp--order
string
Sort order: asc or desc--orderby
string
WordPress orderby field--parent
string
Parent ref or ID--post
string
Post ref or ID--search
string
WordPress search parameter--site
string
WordPress site URL for this command--slug
string
WordPress slug--status
string
WordPress status filter--tag
string
Tag ref, slug, or ID--type
string
Custom post type REST base--who
string
User list filter, for example authorswordpress category search
Search WordPress category records--after
string
Only records after this ISO timestamp--author
string
Author user ref or ID--before
string
Only records before this ISO timestamp--category
string
Category ref, slug, or ID--context
string = edit
WordPress context: view, embed, or edit--media-type
string
Media type: image, video, text, application, or audio--mime-type
string
Media MIME type--modified-after
string
Only records modified after this ISO timestamp--modified-before
string
Only records modified before this ISO timestamp--order
string
Sort order: asc or desc--orderby
string
WordPress orderby field--parent
string
Parent ref or ID--post
string
Post ref or ID--query
string
Search text--search
string
WordPress search parameter--site
string
WordPress site URL for this command--slug
string
WordPress slug--status
string
WordPress status filter--tag
string
Tag ref, slug, or ID--type
string
Custom post type REST base--who
string
User list filter, for example authorswordpress category update
Update a WordPress category--description
string
Description--dry-run
bool
Preview without changing WordPress state--name
string
Name--site
string
WordPress site URL for this command--slug
string
Slugwordpress comment
Inspect WordPress comment recordswordpress comment approve
Approve a WordPress comment--dry-run
bool
Preview without changing WordPress state--site
string
WordPress site URL for this command--yes
bool
Confirm comment moderationwordpress comment create
Create a WordPress comment--author-email
string
Comment author email--author-name
string
Comment author name--author-url
string
Comment author URL--body
string
Comment body--body-file
string
Read comment body from file or - for stdin--dry-run
bool
Preview without changing WordPress state--post
string
Post ref or ID--site
string
WordPress site URL for this command--yes
bool
Confirm comment creationwordpress comment delete
Delete a WordPress comment--dry-run
bool
Preview without changing WordPress state--force
bool
Permanently delete instead of trashing--site
string
WordPress site URL for this command--yes
bool
Confirm deletionwordpress comment get
Get a WordPress comment--context
string = edit
WordPress context: view, embed, or edit--site
string
WordPress site URL for this commandwordpress comment hold
Hold a WordPress comment--dry-run
bool
Preview without changing WordPress state--site
string
WordPress site URL for this command--yes
bool
Confirm comment moderationwordpress comment reply
Reply a WordPress comment--author-email
string
Comment author email--author-name
string
Comment author name--author-url
string
Comment author URL--body
string
Comment body--body-file
string
Read comment body from file or - for stdin--dry-run
bool
Preview without changing WordPress state--post
string
Post ref or ID--site
string
WordPress site URL for this command--yes
bool
Confirm comment creationwordpress comment restore
Restore a WordPress comment--dry-run
bool
Preview without changing WordPress state--site
string
WordPress site URL for this command--yes
bool
Confirm comment moderationwordpress comment search
Search WordPress comment records--after
string
Only records after this ISO timestamp--author
string
Author user ref or ID--before
string
Only records before this ISO timestamp--category
string
Category ref, slug, or ID--context
string = edit
WordPress context: view, embed, or edit--media-type
string
Media type: image, video, text, application, or audio--mime-type
string
Media MIME type--modified-after
string
Only records modified after this ISO timestamp--modified-before
string
Only records modified before this ISO timestamp--order
string
Sort order: asc or desc--orderby
string
WordPress orderby field--parent
string
Parent ref or ID--post
string
Post ref or ID--query
string
Search text--search
string
WordPress search parameter--site
string
WordPress site URL for this command--slug
string
WordPress slug--status
string
WordPress status filter--tag
string
Tag ref, slug, or ID--type
string
Custom post type REST base--who
string
User list filter, for example authorswordpress comment spam
Spam a WordPress comment--dry-run
bool
Preview without changing WordPress state--site
string
WordPress site URL for this command--yes
bool
Confirm comment moderationwordpress comment trash
Trash a WordPress comment--dry-run
bool
Preview without changing WordPress state--site
string
WordPress site URL for this command--yes
bool
Confirm comment moderationwordpress comment unspam
Unspam a WordPress comment--dry-run
bool
Preview without changing WordPress state--site
string
WordPress site URL for this command--yes
bool
Confirm comment moderationwordpress comment update
Update a WordPress comment body--body
string
Comment body--body-file
string
Read comment body from file or - for stdin--dry-run
bool
Preview without changing WordPress state--site
string
WordPress site URL for this commandwordpress config
Inspect local configurationwordpress config explain
Explain resolved configurationwordpress content
Inspect WordPress content recordswordpress content create
Create a WordPress content--category
stringArray = []
Category ref or ID; repeatable--content
string
Content body--content-file
string
Read content from file or - for stdin--content-format
string = html
Content format: html, markdown, or plain--date
string
Publish date--dry-run
bool
Preview without changing WordPress state--excerpt
string
Excerpt--excerpt-file
string
Read excerpt from file or - for stdin--featured-media
string
Featured media ref or ID--parent
string
Parent ref or ID--site
string
WordPress site URL for this command--slug
string
Slug--status
string = draft
WordPress status--tag
stringArray = []
Tag ref or ID; repeatable--timezone
string
Date timezone--title
string
Title--title-file
string
Read title from file or - for stdin--type
string
Custom post type REST base, for example book--yes
bool
Confirm create-time publish or schedulewordpress content delete
Permanently delete a WordPress content--dry-run
bool
Preview without changing WordPress state--force
bool
Permanently delete instead of trashing--site
string
WordPress site URL for this command--type
string
Custom post type REST base, for example book--yes
bool
Confirm permanent deletionwordpress content get
Get a WordPress content--context
string = edit
WordPress context: view, embed, or edit--site
string
WordPress site URL for this command--type
string
Custom post type REST base, for example bookwordpress content list
List WordPress content records--after
string
Only records after this ISO timestamp--author
string
Author user ref or ID--before
string
Only records before this ISO timestamp--category
string
Category ref, slug, or ID--context
string = edit
WordPress context: view, embed, or edit--media-type
string
Media type: image, video, text, application, or audio--mime-type
string
Media MIME type--modified-after
string
Only records modified after this ISO timestamp--modified-before
string
Only records modified before this ISO timestamp--order
string
Sort order: asc or desc--orderby
string
WordPress orderby field--parent
string
Parent ref or ID--post
string
Post ref or ID--search
string
WordPress search parameter--site
string
WordPress site URL for this command--slug
string
WordPress slug--status
string
WordPress status filter--tag
string
Tag ref, slug, or ID--type
string
Custom post type REST base--who
string
User list filter, for example authorswordpress content restore
Restore a trashed WordPress content--dry-run
bool
Preview without changing WordPress state--site
string
WordPress site URL for this command--status
string = draft
Restored status: draft, pending, private, or publish--type
string
Custom post type REST base, for example book--yes
bool
Confirm the restore operationwordpress content search
Search WordPress content records--after
string
Only records after this ISO timestamp--author
string
Author user ref or ID--before
string
Only records before this ISO timestamp--category
string
Category ref, slug, or ID--context
string = edit
WordPress context: view, embed, or edit--media-type
string
Media type: image, video, text, application, or audio--mime-type
string
Media MIME type--modified-after
string
Only records modified after this ISO timestamp--modified-before
string
Only records modified before this ISO timestamp--order
string
Sort order: asc or desc--orderby
string
WordPress orderby field--parent
string
Parent ref or ID--post
string
Post ref or ID--query
string
Search text--search
string
WordPress search parameter--site
string
WordPress site URL for this command--slug
string
WordPress slug--status
string
WordPress status filter--tag
string
Tag ref, slug, or ID--type
string
Custom post type REST base--who
string
User list filter, for example authorswordpress content trash
Move a WordPress content to trash--dry-run
bool
Preview without changing WordPress state--site
string
WordPress site URL for this command--type
string
Custom post type REST base, for example book--yes
bool
Confirm the trash operationwordpress content update
Update a WordPress content--category
stringArray = []
Category ref or ID; repeatable--content
string
Content body--content-file
string
Read content from file or - for stdin--content-format
string = html
Content format: html, markdown, or plain--date
string
Publish date--dry-run
bool
Preview without changing WordPress state--excerpt
string
Excerpt--excerpt-file
string
Read excerpt from file or - for stdin--featured-media
string
Featured media ref or ID--parent
string
Parent ref or ID--site
string
WordPress site URL for this command--slug
string
Slug--status
string
WordPress status--tag
stringArray = []
Tag ref or ID; repeatable--timezone
string
Date timezone--title
string
Title--title-file
string
Read title from file or - for stdin--type
string
Custom post type REST base, for example book--yes
bool
Confirm publishing, scheduling, or trash status changeswordpress doctor
Run WordPress diagnostics for auth, connectivity, permissions, and REST scopewordpress mcp
Run the MCP serverRun a stdio Model Context Protocol server for this adapter.
The server exposes read-only resource commands by default. Mutating commands are listed only when explicitly allowed with –allow and remain gated by the command contract safety class.
--allow
stringArray = []
Allow mutating command keys such as gmail.message.archive or gmail.message.label.*--allow-dangerous
bool
Allow --allow wildcards to include destructive or sends_external commands--concurrency
int
Maximum concurrent MCP subprocesses--max-output
int64 = 0
Maximum stdout/stderr bytes captured per MCP command--print-config
bool
Print MCP tool configuration and exit--timeout
duration = 0s
Per-command MCP subprocess timeout, for example 45s or 2mwordpress media
Inspect WordPress media recordswordpress media attach
Attach WordPress media--dry-run
bool
Preview without changing WordPress state--post
string
Post ref or ID--site
string
WordPress site URL for this command--yes
bool
Confirm media attachwordpress media delete
Permanently delete a WordPress media--dry-run
bool
Preview without changing WordPress state--force
bool
Permanently delete instead of trashing--site
string
WordPress site URL for this command--yes
bool
Confirm permanent deletionwordpress media detach
Detach WordPress media--dry-run
bool
Preview without changing WordPress state--site
string
WordPress site URL for this command--yes
bool
Confirm media detachwordpress media download
Download WordPress media to a local file--output-file
string
Local file path to write--site
string
WordPress site URL for this commandwordpress media get
Get a WordPress media--context
string = edit
WordPress context: view, embed, or edit--site
string
WordPress site URL for this commandwordpress media list
List WordPress media records--after
string
Only records after this ISO timestamp--author
string
Author user ref or ID--before
string
Only records before this ISO timestamp--category
string
Category ref, slug, or ID--context
string = edit
WordPress context: view, embed, or edit--media-type
string
Media type: image, video, text, application, or audio--mime-type
string
Media MIME type--modified-after
string
Only records modified after this ISO timestamp--modified-before
string
Only records modified before this ISO timestamp--order
string
Sort order: asc or desc--orderby
string
WordPress orderby field--parent
string
Parent ref or ID--post
string
Post ref or ID--search
string
WordPress search parameter--site
string
WordPress site URL for this command--slug
string
WordPress slug--status
string
WordPress status filter--tag
string
Tag ref, slug, or ID--type
string
Custom post type REST base--who
string
User list filter, for example authorswordpress media search
Search WordPress media records--after
string
Only records after this ISO timestamp--author
string
Author user ref or ID--before
string
Only records before this ISO timestamp--category
string
Category ref, slug, or ID--context
string = edit
WordPress context: view, embed, or edit--media-type
string
Media type: image, video, text, application, or audio--mime-type
string
Media MIME type--modified-after
string
Only records modified after this ISO timestamp--modified-before
string
Only records modified before this ISO timestamp--order
string
Sort order: asc or desc--orderby
string
WordPress orderby field--parent
string
Parent ref or ID--post
string
Post ref or ID--query
string
Search text--search
string
WordPress search parameter--site
string
WordPress site URL for this command--slug
string
WordPress slug--status
string
WordPress status filter--tag
string
Tag ref, slug, or ID--type
string
Custom post type REST base--who
string
User list filter, for example authorswordpress media update
Update WordPress media metadata--alt-text
string
Media alt text--caption
string
Media caption--description
string
Media description--dry-run
bool
Preview without changing WordPress state--post
string
Attach to post ref or ID--site
string
WordPress site URL for this command--title
string
Media titlewordpress media upload
Upload media to WordPress--alt-text
string
Media alt text--caption
string
Media caption--description
string
Media description--dry-run
bool
Preview without uploading--file
string
Local media file path--post
string
Attach to post ref or ID after upload--site
string
WordPress site URL for this command--title
string
Media titlewordpress page
Inspect WordPress page recordswordpress page clone
Clone a WordPress page as a draft--dry-run
bool
Preview without changing WordPress state--site
string
WordPress site URL for this command--status
string = draft
Clone status--title
string
Clone titlewordpress page create
Create a WordPress page--category
stringArray = []
Category ref or ID; repeatable--content
string
Content body--content-file
string
Read content from file or - for stdin--content-format
string = html
Content format: html, markdown, or plain--date
string
Publish date--dry-run
bool
Preview without changing WordPress state--excerpt
string
Excerpt--excerpt-file
string
Read excerpt from file or - for stdin--featured-media
string
Featured media ref or ID--menu-order
int
Page menu order--parent
string
Parent ref or ID--site
string
WordPress site URL for this command--slug
string
Slug--status
string = draft
WordPress status--tag
stringArray = []
Tag ref or ID; repeatable--timezone
string
Date timezone--title
string
Title--title-file
string
Read title from file or - for stdin--yes
bool
Confirm create-time publish or schedulewordpress page delete
Permanently delete a WordPress page--dry-run
bool
Preview without changing WordPress state--force
bool
Permanently delete instead of trashing--site
string
WordPress site URL for this command--yes
bool
Confirm permanent deletionwordpress page get
Get a WordPress page--context
string = edit
WordPress context: view, embed, or edit--site
string
WordPress site URL for this commandwordpress page list
List WordPress page records--after
string
Only records after this ISO timestamp--author
string
Author user ref or ID--before
string
Only records before this ISO timestamp--category
string
Category ref, slug, or ID--context
string = edit
WordPress context: view, embed, or edit--media-type
string
Media type: image, video, text, application, or audio--mime-type
string
Media MIME type--modified-after
string
Only records modified after this ISO timestamp--modified-before
string
Only records modified before this ISO timestamp--order
string
Sort order: asc or desc--orderby
string
WordPress orderby field--parent
string
Parent ref or ID--post
string
Post ref or ID--search
string
WordPress search parameter--site
string
WordPress site URL for this command--slug
string
WordPress slug--status
string
WordPress status filter--tag
string
Tag ref, slug, or ID--type
string
Custom post type REST base--who
string
User list filter, for example authorswordpress page publish
Publish a WordPress page--date
string
Scheduled publish date--dry-run
bool
Preview without changing WordPress state--site
string
WordPress site URL for this command--timezone
string
Date timezone--yes
bool
Confirm the status mutationwordpress page restore
Restore a trashed WordPress page--dry-run
bool
Preview without changing WordPress state--site
string
WordPress site URL for this command--status
string = draft
Restored status: draft, pending, private, or publish--yes
bool
Confirm the restore operationwordpress page schedule
Schedule a WordPress page--date
string
Scheduled publish date--dry-run
bool
Preview without changing WordPress state--site
string
WordPress site URL for this command--timezone
string
Date timezone--yes
bool
Confirm the status mutationwordpress page search
Search WordPress page records--after
string
Only records after this ISO timestamp--author
string
Author user ref or ID--before
string
Only records before this ISO timestamp--category
string
Category ref, slug, or ID--context
string = edit
WordPress context: view, embed, or edit--media-type
string
Media type: image, video, text, application, or audio--mime-type
string
Media MIME type--modified-after
string
Only records modified after this ISO timestamp--modified-before
string
Only records modified before this ISO timestamp--order
string
Sort order: asc or desc--orderby
string
WordPress orderby field--parent
string
Parent ref or ID--post
string
Post ref or ID--query
string
Search text--search
string
WordPress search parameter--site
string
WordPress site URL for this command--slug
string
WordPress slug--status
string
WordPress status filter--tag
string
Tag ref, slug, or ID--type
string
Custom post type REST base--who
string
User list filter, for example authorswordpress page trash
Move a WordPress page to trash--dry-run
bool
Preview without changing WordPress state--site
string
WordPress site URL for this command--yes
bool
Confirm the trash operationwordpress page update
Update a WordPress page--category
stringArray = []
Category ref or ID; repeatable--content
string
Content body--content-file
string
Read content from file or - for stdin--content-format
string = html
Content format: html, markdown, or plain--date
string
Publish date--dry-run
bool
Preview without changing WordPress state--excerpt
string
Excerpt--excerpt-file
string
Read excerpt from file or - for stdin--featured-media
string
Featured media ref or ID--menu-order
int
Page menu order--parent
string
Parent ref or ID--site
string
WordPress site URL for this command--slug
string
Slug--status
string
WordPress status--tag
stringArray = []
Tag ref or ID; repeatable--timezone
string
Date timezone--title
string
Title--title-file
string
Read title from file or - for stdin--yes
bool
Confirm publishing, scheduling, or trash status changeswordpress plugin
Inspect WordPress plugin recordswordpress plugin get
Get a WordPress plugin--context
string = edit
WordPress context: view, embed, or edit--site
string
WordPress site URL for this commandwordpress plugin list
List WordPress plugin records--after
string
Only records after this ISO timestamp--author
string
Author user ref or ID--before
string
Only records before this ISO timestamp--category
string
Category ref, slug, or ID--context
string = edit
WordPress context: view, embed, or edit--media-type
string
Media type: image, video, text, application, or audio--mime-type
string
Media MIME type--modified-after
string
Only records modified after this ISO timestamp--modified-before
string
Only records modified before this ISO timestamp--order
string
Sort order: asc or desc--orderby
string
WordPress orderby field--parent
string
Parent ref or ID--post
string
Post ref or ID--search
string
WordPress search parameter--site
string
WordPress site URL for this command--slug
string
WordPress slug--status
string
WordPress status filter--tag
string
Tag ref, slug, or ID--type
string
Custom post type REST base--who
string
User list filter, for example authorswordpress post
Inspect WordPress post recordswordpress post clone
Clone a WordPress post as a draft--dry-run
bool
Preview without changing WordPress state--site
string
WordPress site URL for this command--status
string = draft
Clone status--title
string
Clone titlewordpress post create
Create a WordPress post--category
stringArray = []
Category ref or ID; repeatable--content
string
Content body--content-file
string
Read content from file or - for stdin--content-format
string = html
Content format: html, markdown, or plain--date
string
Publish date--dry-run
bool
Preview without changing WordPress state--excerpt
string
Excerpt--excerpt-file
string
Read excerpt from file or - for stdin--featured-media
string
Featured media ref or ID--parent
string
Parent ref or ID--site
string
WordPress site URL for this command--slug
string
Slug--status
string = draft
WordPress status--tag
stringArray = []
Tag ref or ID; repeatable--timezone
string
Date timezone--title
string
Title--title-file
string
Read title from file or - for stdin--yes
bool
Confirm create-time publish or schedulewordpress post delete
Permanently delete a WordPress post--dry-run
bool
Preview without changing WordPress state--force
bool
Permanently delete instead of trashing--site
string
WordPress site URL for this command--yes
bool
Confirm permanent deletionwordpress post get
Get a WordPress post--context
string = edit
WordPress context: view, embed, or edit--site
string
WordPress site URL for this commandwordpress post list
List WordPress post records--after
string
Only records after this ISO timestamp--author
string
Author user ref or ID--before
string
Only records before this ISO timestamp--category
string
Category ref, slug, or ID--context
string = edit
WordPress context: view, embed, or edit--media-type
string
Media type: image, video, text, application, or audio--mime-type
string
Media MIME type--modified-after
string
Only records modified after this ISO timestamp--modified-before
string
Only records modified before this ISO timestamp--order
string
Sort order: asc or desc--orderby
string
WordPress orderby field--parent
string
Parent ref or ID--post
string
Post ref or ID--search
string
WordPress search parameter--site
string
WordPress site URL for this command--slug
string
WordPress slug--status
string
WordPress status filter--tag
string
Tag ref, slug, or ID--type
string
Custom post type REST base--who
string
User list filter, for example authorswordpress post publish
Publish a WordPress post--date
string
Scheduled publish date--dry-run
bool
Preview without changing WordPress state--site
string
WordPress site URL for this command--timezone
string
Date timezone--yes
bool
Confirm the status mutationwordpress post restore
Restore a trashed WordPress post--dry-run
bool
Preview without changing WordPress state--site
string
WordPress site URL for this command--status
string = draft
Restored status: draft, pending, private, or publish--yes
bool
Confirm the restore operationwordpress post schedule
Schedule a WordPress post--date
string
Scheduled publish date--dry-run
bool
Preview without changing WordPress state--site
string
WordPress site URL for this command--timezone
string
Date timezone--yes
bool
Confirm the status mutationwordpress post search
Search WordPress post records--after
string
Only records after this ISO timestamp--author
string
Author user ref or ID--before
string
Only records before this ISO timestamp--category
string
Category ref, slug, or ID--context
string = edit
WordPress context: view, embed, or edit--media-type
string
Media type: image, video, text, application, or audio--mime-type
string
Media MIME type--modified-after
string
Only records modified after this ISO timestamp--modified-before
string
Only records modified before this ISO timestamp--order
string
Sort order: asc or desc--orderby
string
WordPress orderby field--parent
string
Parent ref or ID--post
string
Post ref or ID--query
string
Search text--search
string
WordPress search parameter--site
string
WordPress site URL for this command--slug
string
WordPress slug--status
string
WordPress status filter--tag
string
Tag ref, slug, or ID--type
string
Custom post type REST base--who
string
User list filter, for example authorswordpress post trash
Move a WordPress post to trash--dry-run
bool
Preview without changing WordPress state--site
string
WordPress site URL for this command--yes
bool
Confirm the trash operationwordpress post update
Update a WordPress post--category
stringArray = []
Category ref or ID; repeatable--content
string
Content body--content-file
string
Read content from file or - for stdin--content-format
string = html
Content format: html, markdown, or plain--date
string
Publish date--dry-run
bool
Preview without changing WordPress state--excerpt
string
Excerpt--excerpt-file
string
Read excerpt from file or - for stdin--featured-media
string
Featured media ref or ID--parent
string
Parent ref or ID--site
string
WordPress site URL for this command--slug
string
Slug--status
string
WordPress status--tag
stringArray = []
Tag ref or ID; repeatable--timezone
string
Date timezone--title
string
Title--title-file
string
Read title from file or - for stdin--yes
bool
Confirm publishing, scheduling, or trash status changeswordpress profile
Manage provider profileswordpress profile create
Create an unauthenticated provider profilewordpress profile delete
Delete a local provider profilewordpress profile list
List provider profileswordpress profile rename
Rename a local provider profilewordpress profile use
Set the default provider profilewordpress resolve
Resolve a local ref, short id, or URL aliaswordpress revision
Work with WordPress revision recordswordpress revision delete
Delete a WordPress revision--dry-run
bool
Preview without changing WordPress state--force
bool
Force delete--page
string
Parent page ref or ID--post
string
Parent post ref or ID--site
string
WordPress site URL for this command--yes
bool
Confirm deletionwordpress revision get
Get a WordPress revision--page
string
Parent page ref or ID--post
string
Parent post ref or ID--site
string
WordPress site URL for this commandwordpress revision list
List WordPress revision records--page
string
Parent page ref or ID--post
string
Parent post ref or ID--site
string
WordPress site URL for this commandwordpress revision restore
Restore selected fields from a WordPress revision--dry-run
bool
Preview without changing WordPress state--fields
string
Comma-separated fields: title,content,excerpt--page
string
Parent page ref or ID--post
string
Parent post ref or ID--site
string
WordPress site URL for this command--yes
bool
Confirm revision restorewordpress route
Inspect WordPress REST routeswordpress route get
Get a WordPress REST route--site
string
WordPress site URL for this commandwordpress route list
List WordPress REST routes--site
string
WordPress site URL for this commandwordpress schema
Emit schema hintsShow command-level input and output schemas.
Schema references use resource.action shape, such as post.list or profile.create.
Use schema for the machine contract. Use capabilities for the operations inventory and –help for human onboarding.
Output modes: –json emits one wrapper/debug payload. –jsonl emits pipeable pc.cli.v1 item/meta records.
--in
bool
Show input schema--input
bool
Show input schema--out
bool
Show output schemawordpress search
Search WordPress contentwordpress search query
Query the WordPress search endpoint--query
string
Search text--search
string
Search text--site
string
WordPress site URL for this command--subtype
string
Comma-separated WordPress search subtypes--type
string
WordPress search typewordpress setting
Inspect and update allowlisted WordPress settingswordpress setting get
Get a WordPress setting--site
string
WordPress site URL for this commandwordpress setting list
List WordPress settings--site
string
WordPress site URL for this commandwordpress setting update
Update an allowlisted WordPress setting--dry-run
bool
Preview without changing WordPress state--name
string
Allowlisted setting name--site
string
WordPress site URL for this command--value
string
Setting value--yes
bool
Confirm setting updatewordpress site
Inspect and configure the active WordPress sitewordpress site configure
Configure a local WordPress site profile--url
string
WordPress site URL, for example https://example.comwordpress site get
Inspect the configured WordPress REST site--site
string
WordPress site URL for this commandwordpress site health
Inspect WordPress Site Health checkswordpress site health get
Get a WordPress Site Health check--site
string
WordPress site URL for this commandwordpress site health list
List WordPress Site Health checks--site
string
WordPress site URL for this commandwordpress status
Inspect WordPress status recordswordpress status get
Get a WordPress status--context
string = edit
WordPress context: view, embed, or edit--site
string
WordPress site URL for this commandwordpress status list
List WordPress status records--after
string
Only records after this ISO timestamp--author
string
Author user ref or ID--before
string
Only records before this ISO timestamp--category
string
Category ref, slug, or ID--context
string = edit
WordPress context: view, embed, or edit--media-type
string
Media type: image, video, text, application, or audio--mime-type
string
Media MIME type--modified-after
string
Only records modified after this ISO timestamp--modified-before
string
Only records modified before this ISO timestamp--order
string
Sort order: asc or desc--orderby
string
WordPress orderby field--parent
string
Parent ref or ID--post
string
Post ref or ID--search
string
WordPress search parameter--site
string
WordPress site URL for this command--slug
string
WordPress slug--status
string
WordPress status filter--tag
string
Tag ref, slug, or ID--type
string
Custom post type REST base--who
string
User list filter, for example authorswordpress tag
Inspect WordPress tag recordswordpress tag create
Create a WordPress tag--description
string
Description--dry-run
bool
Preview without changing WordPress state--name
string
Name--parent
string
Parent ref or ID--site
string
WordPress site URL for this command--slug
string
Slug--yes
bool
Confirm the mutationwordpress tag delete
Delete a WordPress tag--dry-run
bool
Preview without changing WordPress state--force
bool
Force permanent deletion--site
string
WordPress site URL for this command--yes
bool
Confirm deletionwordpress tag get
Get a WordPress tag--context
string = edit
WordPress context: view, embed, or edit--site
string
WordPress site URL for this commandwordpress tag list
List WordPress tag records--after
string
Only records after this ISO timestamp--author
string
Author user ref or ID--before
string
Only records before this ISO timestamp--category
string
Category ref, slug, or ID--context
string = edit
WordPress context: view, embed, or edit--media-type
string
Media type: image, video, text, application, or audio--mime-type
string
Media MIME type--modified-after
string
Only records modified after this ISO timestamp--modified-before
string
Only records modified before this ISO timestamp--order
string
Sort order: asc or desc--orderby
string
WordPress orderby field--parent
string
Parent ref or ID--post
string
Post ref or ID--search
string
WordPress search parameter--site
string
WordPress site URL for this command--slug
string
WordPress slug--status
string
WordPress status filter--tag
string
Tag ref, slug, or ID--type
string
Custom post type REST base--who
string
User list filter, for example authorswordpress tag search
Search WordPress tag records--after
string
Only records after this ISO timestamp--author
string
Author user ref or ID--before
string
Only records before this ISO timestamp--category
string
Category ref, slug, or ID--context
string = edit
WordPress context: view, embed, or edit--media-type
string
Media type: image, video, text, application, or audio--mime-type
string
Media MIME type--modified-after
string
Only records modified after this ISO timestamp--modified-before
string
Only records modified before this ISO timestamp--order
string
Sort order: asc or desc--orderby
string
WordPress orderby field--parent
string
Parent ref or ID--post
string
Post ref or ID--query
string
Search text--search
string
WordPress search parameter--site
string
WordPress site URL for this command--slug
string
WordPress slug--status
string
WordPress status filter--tag
string
Tag ref, slug, or ID--type
string
Custom post type REST base--who
string
User list filter, for example authorswordpress tag update
Update a WordPress tag--description
string
Description--dry-run
bool
Preview without changing WordPress state--name
string
Name--site
string
WordPress site URL for this command--slug
string
Slugwordpress taxonomy
Inspect WordPress taxonomy recordswordpress taxonomy get
Get a WordPress taxonomy--context
string = edit
WordPress context: view, embed, or edit--site
string
WordPress site URL for this commandwordpress taxonomy list
List WordPress taxonomy records--after
string
Only records after this ISO timestamp--author
string
Author user ref or ID--before
string
Only records before this ISO timestamp--category
string
Category ref, slug, or ID--context
string = edit
WordPress context: view, embed, or edit--media-type
string
Media type: image, video, text, application, or audio--mime-type
string
Media MIME type--modified-after
string
Only records modified after this ISO timestamp--modified-before
string
Only records modified before this ISO timestamp--order
string
Sort order: asc or desc--orderby
string
WordPress orderby field--parent
string
Parent ref or ID--post
string
Post ref or ID--search
string
WordPress search parameter--site
string
WordPress site URL for this command--slug
string
WordPress slug--status
string
WordPress status filter--tag
string
Tag ref, slug, or ID--type
string
Custom post type REST base--who
string
User list filter, for example authorswordpress template
Inspect WordPress template recordswordpress template get
Get a WordPress template--context
string = edit
WordPress context: view, embed, or edit--site
string
WordPress site URL for this commandwordpress template list
List WordPress template records--after
string
Only records after this ISO timestamp--author
string
Author user ref or ID--before
string
Only records before this ISO timestamp--category
string
Category ref, slug, or ID--context
string = edit
WordPress context: view, embed, or edit--media-type
string
Media type: image, video, text, application, or audio--mime-type
string
Media MIME type--modified-after
string
Only records modified after this ISO timestamp--modified-before
string
Only records modified before this ISO timestamp--order
string
Sort order: asc or desc--orderby
string
WordPress orderby field--parent
string
Parent ref or ID--post
string
Post ref or ID--search
string
WordPress search parameter--site
string
WordPress site URL for this command--slug
string
WordPress slug--status
string
WordPress status filter--tag
string
Tag ref, slug, or ID--type
string
Custom post type REST base--who
string
User list filter, for example authorswordpress template-part
Inspect WordPress template-part recordswordpress template-part get
Get a WordPress template-part--context
string = edit
WordPress context: view, embed, or edit--site
string
WordPress site URL for this commandwordpress template-part list
List WordPress template-part records--after
string
Only records after this ISO timestamp--author
string
Author user ref or ID--before
string
Only records before this ISO timestamp--category
string
Category ref, slug, or ID--context
string = edit
WordPress context: view, embed, or edit--media-type
string
Media type: image, video, text, application, or audio--mime-type
string
Media MIME type--modified-after
string
Only records modified after this ISO timestamp--modified-before
string
Only records modified before this ISO timestamp--order
string
Sort order: asc or desc--orderby
string
WordPress orderby field--parent
string
Parent ref or ID--post
string
Post ref or ID--search
string
WordPress search parameter--site
string
WordPress site URL for this command--slug
string
WordPress slug--status
string
WordPress status filter--tag
string
Tag ref, slug, or ID--type
string
Custom post type REST base--who
string
User list filter, for example authorswordpress theme
Inspect WordPress theme recordswordpress theme get
Get a WordPress theme--context
string = edit
WordPress context: view, embed, or edit--site
string
WordPress site URL for this commandwordpress theme list
List WordPress theme records--after
string
Only records after this ISO timestamp--author
string
Author user ref or ID--before
string
Only records before this ISO timestamp--category
string
Category ref, slug, or ID--context
string = edit
WordPress context: view, embed, or edit--media-type
string
Media type: image, video, text, application, or audio--mime-type
string
Media MIME type--modified-after
string
Only records modified after this ISO timestamp--modified-before
string
Only records modified before this ISO timestamp--order
string
Sort order: asc or desc--orderby
string
WordPress orderby field--parent
string
Parent ref or ID--post
string
Post ref or ID--search
string
WordPress search parameter--site
string
WordPress site URL for this command--slug
string
WordPress slug--status
string
WordPress status filter--tag
string
Tag ref, slug, or ID--type
string
Custom post type REST base--who
string
User list filter, for example authorswordpress type
Inspect WordPress type recordswordpress type get
Get a WordPress type--context
string = edit
WordPress context: view, embed, or edit--site
string
WordPress site URL for this commandwordpress type list
List WordPress type records--after
string
Only records after this ISO timestamp--author
string
Author user ref or ID--before
string
Only records before this ISO timestamp--category
string
Category ref, slug, or ID--context
string = edit
WordPress context: view, embed, or edit--media-type
string
Media type: image, video, text, application, or audio--mime-type
string
Media MIME type--modified-after
string
Only records modified after this ISO timestamp--modified-before
string
Only records modified before this ISO timestamp--order
string
Sort order: asc or desc--orderby
string
WordPress orderby field--parent
string
Parent ref or ID--post
string
Post ref or ID--search
string
WordPress search parameter--site
string
WordPress site URL for this command--slug
string
WordPress slug--status
string
WordPress status filter--tag
string
Tag ref, slug, or ID--type
string
Custom post type REST base--who
string
User list filter, for example authorswordpress user
Inspect WordPress user recordswordpress user get
Get a WordPress user--context
string = edit
WordPress context: view, embed, or edit--site
string
WordPress site URL for this commandwordpress user list
List WordPress user records--after
string
Only records after this ISO timestamp--author
string
Author user ref or ID--before
string
Only records before this ISO timestamp--category
string
Category ref, slug, or ID--context
string = edit
WordPress context: view, embed, or edit--media-type
string
Media type: image, video, text, application, or audio--mime-type
string
Media MIME type--modified-after
string
Only records modified after this ISO timestamp--modified-before
string
Only records modified before this ISO timestamp--order
string
Sort order: asc or desc--orderby
string
WordPress orderby field--parent
string
Parent ref or ID--post
string
Post ref or ID--search
string
WordPress search parameter--site
string
WordPress site URL for this command--slug
string
WordPress slug--status
string
WordPress status filter--tag
string
Tag ref, slug, or ID--type
string
Custom post type REST base--who
string
User list filter, for example authorswordpress user search
Search WordPress user records--after
string
Only records after this ISO timestamp--author
string
Author user ref or ID--before
string
Only records before this ISO timestamp--category
string
Category ref, slug, or ID--context
string = edit
WordPress context: view, embed, or edit--media-type
string
Media type: image, video, text, application, or audio--mime-type
string
Media MIME type--modified-after
string
Only records modified after this ISO timestamp--modified-before
string
Only records modified before this ISO timestamp--order
string
Sort order: asc or desc--orderby
string
WordPress orderby field--parent
string
Parent ref or ID--post
string
Post ref or ID--query
string
Search text--search
string
WordPress search parameter--site
string
WordPress site URL for this command--slug
string
WordPress slug--status
string
WordPress status filter--tag
string
Tag ref, slug, or ID--type
string
Custom post type REST base--who
string
User list filter, for example authorswordpress version
Show version informationplay_circle Live Examples
Output captured from a real workspace. Regenerate with
scripts/gen-docs.sh --update.
auth
Credential: WordPress Application Password (`wordpress_application_password`). Create or revoke it in wp-admin: https://dev-cmdhub.pantheonsite.io/wp-admin/profile.php#application-passwords Authenticated as kestrelphilip@gmail.com Profile: kestrelphilip@gmail.com Next steps: - Run: wordpress auth whoami
Canonical identity command for WordPress. Call the REST API as the current profile and show the authenticated user; use this instead of user me, account me, or wordpress me.
Usage:
wordpress auth whoami [flags]
Examples:
wordpress auth status
wordpress auth whoami
wordpress auth whoami --help
wordpress auth whoami --json
Flags:
-h, --help help for whoami
Global Flags:
--config string Config path override
--cursor string Continuation cursor
--debug Enable debug diagnostics
--json Emit one JSON wrapper/debug payload
--jsonl Emit pipeable pc.cli.v1 JSONL item/meta records
--limit int Maximum items to emit (default 50)
--no-paginate Fetch only one page
-o, --output string Compatibility output mode: json|jsonl. Prefer --json for wrapper/debug or --jsonl for pipes
--page-size int Requested upstream page size (default 50)
--profile string Config/auth profile (default "default")
-q, --quiet Suppress non-essential diagnostics
-v, --version Print version information
--view string View mode: summary|full (default "summary")Credential: WordPress Application Password (`wordpress_application_password`). Create or revoke it in wp-admin: https://dev-cmdhub.pantheonsite.io/wp-admin/profile.php#application-passwords wordpress doctor: WARN Checks: credential_backend ok, credential_security warn, profiles ok, auth ok, permissions ok, connectivity ok, scope ok CHECK STATUS DETAIL credential_backend OK using file credential_security WARN credential backend stores local plaintext secrets profiles OK active profile "kestrelphilip@gmail.com" auth OK stored Application Password is valid permissions OK current WordPress user is readable through /wp/v2/users/me connectivity OK WordPress REST index is reachable scope OK core wp/v2 namespace is available Next steps: - Status: wordpress auth status - Capabilities: wordpress capabilities
lifecycle
Capabilities is the operations inventory: resources, actions, safety, output modes, and command paths. Use `wordpress capabilities --json` for the full command contract; use `wordpress schema` for input/output schemas. Output: `--json` is one wrapper/debug payload; `--jsonl` is the pipeable `pc.cli.v1` item/meta stream. wordpress capabilities Resources: application-password, auth, autosave, block, block-type, capabilities, category, comment, config, content, doctor, mcp, media, menu, menu-item, navigation, page, plugin, post, profile, resolve, revision, route, schema, search, setting, site, site-health, status, tag, taxonomy, template, template-part, theme, type, user, version Machine output: --json, --jsonl Next steps: - Schema: wordpress schema - Contract: wordpress capabilities --json - Help: wordpress --help - Status: wordpress auth status
schemas
Schema is the machine contract: command-level input/output schemas by `resource.action`. Use `wordpress schema post.list --in --json` or `wordpress schema post.list --out --json`; use `wordpress capabilities` for operations. wordpress schemas COMMAND DIR application-password.get input application-password.get output application-password.revoke input application-password.revoke output auth.login input auth.login output auth.logout output auth.refresh output auth.status output auth.whoami output autosave.apply input autosave.apply output autosave.create input autosave.create output autosave.get input autosave.get output autosave.list input autosave.list output block.create input block.create output block.delete input block.delete output block.get input block.get output block.list input block.list output block.restore input block.restore output block.search input block.search output block.trash input block.trash output block.update input block.update output block-type.get input block-type.get output block-type.list input block-type.list output block-type.search input block-type.search output capabilities.describe output category.create input category.create output category.delete input category.delete output category.get input category.get output category.list input category.list output category.search input category.search output category.update input category.update output comment.approve input comment.approve output comment.create input comment.create output comment.delete input comment.delete output comment.get input comment.get output comment.hold input comment.hold output comment.list input comment.list output comment.reply input comment.reply output comment.restore input comment.restore output comment.search input comment.search output comment.spam input comment.spam output comment.trash input comment.trash output comment.unspam input comment.unspam output comment.update input comment.update output config.explain output content.create input content.create output content.delete input content.delete output content.get input content.get output content.list input content.list output content.restore input content.restore output content.search input content.search output content.trash input content.trash output content.update input content.update output doctor.run output media.attach input media.attach output media.delete input media.delete output media.detach input media.detach output media.download input media.download output media.get input media.get output media.list input media.list output media.search input media.search output media.update input media.update output media.upload input media.upload output menu.create input menu.create output menu.delete input menu.delete output menu.get input menu.get output menu.list input menu.list output menu.search input menu.search output menu.update input menu.update output menu-item.create input menu-item.create output menu-item.delete input menu-item.delete output menu-item.get input menu-item.get output menu-item.list input menu-item.list output menu-item.search input menu-item.search output menu-item.update input menu-item.update output navigation.create input navigation.create output navigation.delete input navigation.delete output navigation.get input navigation.get output navigation.list input navigation.list output navigation.restore input navigation.restore output navigation.search input navigation.search output navigation.trash input navigation.trash output navigation.update input navigation.update output page.clone input page.clone output page.create input page.create output page.delete input page.delete output page.get input page.get output page.list input page.list output page.publish input page.publish output page.restore input page.restore output page.schedule input page.schedule output page.search input page.search output page.trash input page.trash output page.update input page.update output plugin.get input plugin.get output plugin.list input plugin.list output post.clone input post.clone output post.create input post.create output post.delete input post.delete output post.get input post.get output post.list input post.list output post.publish input post.publish output post.restore input post.restore output post.schedule input post.schedule output post.search input post.search output post.trash input post.trash output post.update input post.update output profile.create input profile.create output profile.delete input profile.delete output profile.list output profile.rename input profile.rename output profile.use input profile.use output resolve.get output revision.delete input revision.delete output revision.get input revision.get output revision.list input revision.list output revision.restore input revision.restore output route.get input route.get output route.list input route.list output schema.describe output search.query input search.query output setting.get input setting.get output setting.list input setting.list output setting.update input setting.update output site.configure input site.configure output site.get input site.get output site-health.get input site-health.get output site-health.list input site-health.list output status.get input status.get output status.list input status.list output tag.create input tag.create output tag.delete input tag.delete output tag.get input tag.get output tag.list input tag.list output tag.search input tag.search output tag.update input tag.update output taxonomy.get input taxonomy.get output taxonomy.list input taxonomy.list output template.get input template.get output template.list input template.list output template-part.get input template-part.get output template-part.list input template-part.list output theme.get input theme.get output theme.list input theme.list output type.get input type.get output type.list input type.list output user.get input user.get output user.list input user.list output user.search input user.search output version.get output Next steps: - Status: wordpress auth status - Login: wordpress auth login - Site: wordpress site get - Schema: wordpress schema
Create post Next steps: - List: wordpress post list - Status: wordpress auth status - Login: wordpress auth login - Site: wordpress site get
Upload media Next steps: - List: wordpress media list - Status: wordpress auth status - Login: wordpress auth login - Site: wordpress site get
pages
Create a WordPress page
Usage:
wordpress page create [flags]
Examples:
wordpress page create --help
wordpress page create --title "cmdhub-wordpress draft" --content-file ./post.md --content-format markdown --status draft
wordpress page create --title "cmdhub-wordpress draft" --content-file ./post.md --status draft
Flags:
--category stringArray Category ref or ID; repeatable
--content string Content body
--content-file string Read content from file or - for stdin
--content-format string Content format: html, markdown, or plain (default "html")
--date string Publish date
--dry-run Preview without changing WordPress state
--excerpt string Excerpt
--excerpt-file string Read excerpt from file or - for stdin
--featured-media string Featured media ref or ID
-h, --help help for create
--menu-order int Page menu order
--parent string Parent ref or ID
--site string WordPress site URL for this command
--slug string Slug
--status string WordPress status (default "draft")
--tag stringArray Tag ref or ID; repeatable
--timezone string Date timezone
--title string Title
--title-file string Read title from file or - for stdin
--yes Confirm create-time publish or schedule
Global Flags:
--config string Config path override
--cursor string Continuation cursor
--debug Enable debug diagnostics
--json Emit one JSON wrapper/debug payload
--jsonl Emit pipeable pc.cli.v1 JSONL item/meta records
--limit int Maximum items to emit (default 50)
--no-paginate Fetch only one page
-o, --output string Compatibility output mode: json|jsonl. Prefer --json for wrapper/debug or --jsonl for pipes
--page-size int Requested upstream page size (default 50)
--profile string Config/auth profile (default "default")
-q, --quiet Suppress non-essential diagnostics
-v, --version Print version information
--view string View mode: summary|full (default "summary")Refs: `pg1` is a session-scoped local ref created by `wordpress page list`; it is not a WordPress ID. Use `wordpress resolve pg1` to inspect exact IDs and URLs. Pages (2 total) REF TITLE STATUS WHEN URL pg1 Privacy Policy draft 2026-05-23T14:21:28 [u6] pg2 Sample Page publish 2026-05-23T14:21:28 [u7] URLs: - [u6] https://dev-cmdhub.pantheonsite.io - [u7] https://dev-cmdhub.pantheonsite.io Next steps: - Open: wordpress page get pg1 - Search: wordpress page search --query <text> - Status: wordpress auth status - Login: wordpress auth login
alt_route Composition Patterns
Bridge your ecosystem with zero middleware.
# Inspect auth state and available command schemas
wordpress auth status --json
wordpress schema
wordpress comment listList WordPress comment records--afterstring Only records after this ISO timestamp--authorstring Author user ref or ID--beforestring Only records before this ISO timestamp--categorystring Category ref, slug, or ID--contextstring = edit WordPress context: view, embed, or edit--media-typestring Media type: image, video, text, application, or audio--mime-typestring Media MIME type--modified-afterstring Only records modified after this ISO timestamp--modified-beforestring Only records modified before this ISO timestamp--orderstring Sort order: asc or desc--orderbystring WordPress orderby field--parentstring Parent ref or ID--poststring Post ref or ID--searchstring WordPress search parameter--sitestring WordPress site URL for this command--slugstring WordPress slug--statusstring WordPress status filter--tagstring Tag ref, slug, or ID--typestring Custom post type REST base--whostring User list filter, for example authors