CLI (Command Line)respira write

respira write

Edit WordPress content from the CLI. Create, edit, update, upload, delete. Every write creates a snapshot first and supports --dry-run.

Write to a connected site. Every write creates a snapshot first. Destructive operations require --confirm.

respira write create-page <site> --title="..." [--template=file.json]
respira write edit-page <site> <page> --set=path=value
respira write edit-element <site> <page> <selector> --set=key=value
respira write create-post <site> --from-markdown=<file>
respira write update-design-system <site> --from=<file>
respira write upload-media <site> <file>
respira write delete-page <site> <page> --confirm

Shared flags

  • --dry-run: preview the change without committing
  • --diff: reads the target first and emits { before, after } so agents can show what changed
  • --confirm: required for destructive operations (delete-page)

Example: change typography on an Elementor heading

respira write edit-element mysite.com about heading-123 \
  --set=typography_typography=custom \
  --set=typography_font_size='{"unit":"px","size":48}' \
  --set=typography_font_weight=700 \
  --diff

Example: create a page from a template

respira write create-page mysite.com --title="Pricing" --template=./pricing.json --dry-run