Skip to content
Platform Status

CLI

diff

speakeasy diff

Compare spec revisions and show SDK changes

Compare OpenAPI spec revisions and show SDK-level changes - how the generated SDK methods, models, and types would differ between two spec versions.

This is different from speakeasy openapi diff which shows raw OpenAPI schema changes (paths, operations, properties). Use this command when you want to understand the impact on your generated SDK code.

This command supports three modes:

Compare two spec files directly from disk:

Terminal window
speakeasy diff files --old old-spec.yaml --new new-spec.yaml

Look up specs from a GitHub pull request created by Speakeasy:

Terminal window
speakeasy diff from-pr https://github.com/org/repo/pull/123

Compare specs by providing registry namespace and digest values:

Terminal window
speakeasy diff registry --namespace my-api --old sha256:abc... --new sha256:def...
speakeasy diff [flags]
-h, --help help for diff
--logLevel string the log level (available options: [info, warn, error]) (default "info")
  • speakeasy - The Speakeasy CLI tool provides access to the Speakeasy.com platform