diff
speakeasy diff
Compare spec revisions and show SDK changes
Details
Diff
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)
Compare two spec files directly from disk:
speakeasy diff files --old old-spec.yaml --new new-spec.yamlFrom 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
Compare specs by providing registry namespace and digest values:
speakeasy diff registry --namespace my-api --old sha256:abc... --new sha256:def...Usage
speakeasy diff [flags]Options
-h, --help help for diffOptions inherited from parent commands
--logLevel string the log level (available options: [info, warn, error]) (default "info")Parent Command
- speakeasy - The Speakeasy CLI tool provides access to the Speakeasy.com platform
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
Last updated on