Skip to content

CLI

repro

speakeasy repro

Reproduce a failed generation locally

Download and reproduce a failed SDK generation locally for debugging purposes.

This command will:

  1. Fetch the CLI events for the provided execution ID
  2. Download the merged/overlayed OpenAPI spec that was actually used for generation (default)
  3. Create a local reproduction environment with all necessary files
  4. Automatically run ‘speakeasy run’ to reproduce the generation

By default, this command downloads the final merged spec that was used for generation. Use —use-raw-workflow if you need to debug overlay or workflow source issues.

Example usage:

Terminal window
speakeasy repro myorg_myworkspace_c303282d-f2e6-46ca-a04a-35d3d873712d
speakeasy repro myorg_myworkspace_c303282d-f2e6-46ca-a04a-35d3d873712d --directory /tmp/debug
speakeasy repro myorg_myworkspace_c303282d-f2e6-46ca-a04a-35d3d873712d --use-raw-workflow # Debug workflow/overlay issues
speakeasy repro [repro-id] [flags]
-d, --directory string Directory to create reproduction files in (default: /tmp/{orgSlug}.{workspaceSlug})
-h, --help help for repro
--use-raw-workflow Use the original workflow to debug overlay/source issues (default: use merged spec)
--logLevel string the log level (available options: [info, warn, error]) (default "info")
  • speakeasy - The Speakeasy CLI tool provides access to the Speakeasy.com platform