Skip to content
Status

SDKs

Generate SDK in a subdirectory

Similar to setting up a monorepo, you can also configure Speakeasy to generate your SDK into a subdirectory. This setup maybe useful in maintaining seperation between handwritten and generated code or for consuming the SDK in a monolithic codebase.

In the root of your existing directory run speakeasy quickstart:

A screenshot of the speakeasy quickstart command in the CLI.

Select your generation language.

A screenshot of the CLI prompting the user to select their generation language.

Name your package.

A screenshot of the package name in the Speakeasy CLI.

If you’re setting your SDK up in a folder with existing subfolders, you will be prompted to select an output directory.

A screenshot of the user being prompted to provide an output directory in the CLI.

Complete generating your SDK.

A screenshot of a succesful CLI generation.

Going forward to generate your SDK navigate to your SDK folder and run speakeasy run.