Generate SDKs

Create an SDK with the CLI

Generate an APIMatic SDK from your terminal with one command.

Note: You need the APIMatic CLI installed and a signed-in session. See the Quickstart if you haven't set it up yet.

Generate an SDK

Run the APIMatic CLI's sdk generate command and pick a language with --language:

apimatic sdk generate --language=<language>

--language is required and takes one of:

LanguageValue
C#csharp
Pythonpython
TypeScripttypescript

Example: a Python SDK you can customize

apimatic sdk generate --language=python --git-init

The CLI prints SDK generated successfully. and tells you where the SDK was saved, ./sdk/python by default. --git-init turns that directory into a Git repository, so the changes you make to the SDK are kept when you regenerate it.

Useful flags

FlagWhat it does
-i, --inputPath to the parent directory that contains src. Defaults to ./.
-d, --destinationWhere to write the SDK.
--git-initTrack the SDK directory with its own git repository so your customizations survive regeneration.
-f, --forceNever ask. Conflicts are resolved using the generator's changes, and an SDK that can't be merged is replaced.

To see every option:

apimatic sdk generate --help

The full list is also in the CLI Reference.

Customize the SDK

You can edit the generated files and add your own. If you generate the SDK with --git-init before your first change, each later run merges your changes into the new SDK. See Customize SDKs.

On this page