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:
| Language | Value |
|---|---|
| C# | csharp |
| Python | python |
| TypeScript | typescript |
Example: a Python SDK you can customize
apimatic sdk generate --language=python --git-initThe 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
| Flag | What it does |
|---|---|
-i, --input | Path to the parent directory that contains src. Defaults to ./. |
-d, --destination | Where to write the SDK. |
--git-init | Track the SDK directory with its own git repository so your customizations survive regeneration. |
-f, --force | Never 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 --helpThe 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.