Skip to main content
Show the changes made to the project. With no arguments, compares the local project against the last-synced remote version. Examples:
The optional hash positional is a shorthand for --after: poly diff sandbox compares the previous version against the sandbox deployment (pre-release and live are also accepted, as is a specific version hash). Passing only --before compares that version against the current local project; passing only --after compares it against its immediately preceding version; passing both compares the two named versions or branches directly.
hash vs. --before/--afterThe hash positional and --before/--after are mutually exclusive β€” passing both errors out.
--json output shape:
When there are no changes to show, this becomes {"success": true, "message": "No changes detected"}. See also poly status for a summary of what changed, poly review to generate a GitHub Gist of the changes and poly revert to discard changes.
Last modified on November 27, 2026