The Postman SDK Generator postman-sdk.config.json config file contains the configuration used by the Postman SDK CLI to generate SDKs. Power users who require deeper customization can provide a full postman-sdk.config.json file. See Advanced options for more information.
At a minimum, set the location of your API specification and the SDK languages you want to generate in the config file:
The config file contains options that enable you to customize the SDKs you generate. One of the most powerful features of the Postman SDK Generator is the ability to get fine-grained control over the SDK generation process.
To create the config file, run the postman sdk init command.
By default, the config file is located in the .postman/config.json root of your project. When you run CLI commands such as postman sdk generate, the CLI looks for this config file in the current working directory.
You can change the name and location of the config file by passing the --config option to the CLI commands. This supports local and remote config files.
The specFilePath option in the config file is always relative to the current working directory that the CLI is being run from, not relative to the config file location.
The config file defines the SDK to create, along with the configuration based on your API. It also defines sections for generic customizations, language specific customizations, publishing, and configuring validation.
The following topics provide more information about config file sections: