Skip to main content

Comparisons

A comparison shows the diff between two metadata sources. Use comparisons to understand what has changed between environments, validate a backup, or prepare for a deployment.

Supported source combinations

SourceTargetUse case
HubSpot portalHubSpot portalSync dev → staging → prod
HubSpot portalGit repositoryValidate a backup is current
Git repositoryHubSpot portalReview drift since last backup
Git repositoryGit repositoryCompare snapshots over time

Creating a comparison

  1. Go to Comparisons in the sidebar
  2. Click New Comparison
  3. Select a Source and a Target from your connected portals and repositories
  4. Give the comparison a name (optional but recommended)
  5. Click Create

The comparison is queued and processed asynchronously. Status updates in real time:

StatusMeaning
pendingQueued for processing
in progressActively computing the diff
completedDiff is ready to view
errorProcessing failed

Viewing the diff

Click View on a completed comparison to open the diff viewer. The viewer shows:

  • Summary — counts of added, modified, and removed items by metadata type
  • Structured diff — field-level changes for each item, displayed in a tree view
  • Monaco diff editor — side-by-side raw JSON comparison for any item

Reading the diff

Changes are colour-coded:

  • 🟢 Added — present in target, not in source
  • 🔴 Removed — present in source, not in target
  • 🟡 Modified — present in both, but values differ

Renaming a comparison

Click the pencil icon next to a comparison name (visible on hover in the table) to rename it. Descriptive names like "dev → prod before Q2 migration" make it easier to find comparisons later.

Deleting a comparison

Click the trash icon on a comparison row to delete it. This action cannot be undone.

note

Only workspace admins can delete comparisons. Members can create and view comparisons.

Refreshing a comparison

Comparisons are a point-in-time snapshot. To get an up-to-date diff, create a new comparison. Refreshing an existing comparison is not currently supported.