Skip to content

CLI

diff

speakeasy openapi diff

Visualize the changes between two OpenAPI documents

Visualize the raw OpenAPI schema changes between two documents - paths added/removed, operations changed, properties modified, etc.

This is different from speakeasy diff which shows SDK-level changes (how generated SDK methods and types would differ). Use this command when you want to see the raw specification differences.

speakeasy openapi diff [flags]
-f, --format string output format (available options: [summary console html]) (default "summary")
-h, --help help for diff
--new string local filepath or URL for the updated OpenAPI schema
--old string local filepath or URL for the base OpenAPI schema to compare against
-o, --output string output file (default "-")
--logLevel string the log level (available options: [info, warn, error]) (default "info")