# respira write — edit WordPress content from the CLI

> Reference for respira write commands: create-page, edit-page, edit-element, create-post, update-design-system, upload-media, delete-page.

Source: https://www.respira.press/cli/docs/commands/write

---

```
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 }`
- `--confirm`: required for destructive operations (`delete-page`)
