CLI
diff
speakeasy diff
Compare spec revisions and show SDK changes
Details
Section titled “Details”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:
Files Mode (Local)
Section titled “Files Mode (Local)”Compare two spec files directly from disk:
speakeasy diff files --old old-spec.yaml --new new-spec.yamlFrom PR Mode
Section titled “From PR Mode”Look up specs from a GitHub pull request created by Speakeasy:
speakeasy diff from-pr https://github.com/org/repo/pull/123Registry Mode
Section titled “Registry Mode”Compare specs by providing registry namespace and digest values:
speakeasy diff registry --namespace my-api --old sha256:abc... --new sha256:def...speakeasy diff [flags]Options
Section titled “Options” -h, --help help for diffOptions inherited from parent commands
Section titled “Options inherited from parent commands” --logLevel string the log level (available options: [info, warn, error]) (default "info")Parent Command
Section titled “Parent Command”- speakeasy - The Speakeasy CLI tool provides access to the Speakeasy.com platform
Sub Commands
Section titled “Sub Commands”- speakeasy diff files - Compare two local spec files
- speakeasy diff from-pr - Compare specs from a GitHub PR
- speakeasy diff registry - Compare specs by registry namespace and digests