Create SDK through APIMatic CLI
APIMatic CLI allows automatic SDK generation for your APIs in multiple popular languages. You can use the apimatic sdk:generate
command to create an SDK for your API.
$ apimatic sdk:generate
The following command generates a Python SDK for an API defined in filename.json. It also downloads the SDK to your working directory as a .zip file.
$ apimatic sdk:generate --platform=python --file="filename.json" --zip
The output of this command on successful execution is:
Generating SDK... done
Downloading SDK... done
Success! Your SDK is located at D:\sample_sdk_python.zip
You can tweak this command as per your requirement. To find the list of languages and platforms supported by this command, run this command:
$ apimatic sdk: generate --help
It will show you what languages and platforms you can opt for to generate SDK.
--platform=platform (required) language platform for sdk
Simple: CSHARP|JAVA|PYTHON|RUBY|PHP|TYPESCRIPT
Legacy: CS_NET_STANDARD_LIB|CS_PORTABLE_NET_LIB|CS_UNIVERSAL_WINDOWS_PLATFORM_LIB|
JAVA_ECLIPSE_JRE_LIB|PHP_GENERIC_LIB|PYTHON_GENERIC_LIB|RUBY_GENERIC_LIB|
TS_GENERIC_LIB