From 29fce94190881e82113dffec2a966e59dc190179 Mon Sep 17 00:00:00 2001 From: Ayesha <88117894+Ayeshas09@users.noreply.github.com> Date: Wed, 11 Mar 2026 11:49:55 +0500 Subject: [PATCH] feat: add api-version flag in sdk generate (#248) Closes #249 What was added? - Added optional api-version flag to sdk generate to allow selecting the API version for multi-versioned builds. --------- Co-authored-by: Asad Ali <14asadali@gmail.com> Co-authored-by: Ali Asghar <75574550+aliasghar98@users.noreply.github.com> --- README.md | 9 +++--- package-lock.json | 4 +-- src/actions/sdk/generate.ts | 33 +++++++++++++++++----- src/commands/sdk/generate.ts | 7 +++-- src/prompts/sdk/generate.ts | 23 +++++++++++---- src/types/versioned-build-context.ts | 42 +++++++++++++++++----------- 6 files changed, 82 insertions(+), 36 deletions(-) diff --git a/README.md b/README.md index 55ae56b2..f4edadaf 100644 --- a/README.md +++ b/README.md @@ -24,7 +24,7 @@ $ npm install -g @apimatic/cli $ apimatic COMMAND running command... $ apimatic (--version) -@apimatic/cli/1.1.0-beta.7 win32-x64 node-v23.4.0 +@apimatic/cli/1.1.0-beta.8 win32-x64 node-v23.4.0 $ apimatic --help [COMMAND] USAGE $ apimatic COMMAND @@ -411,8 +411,8 @@ Generate an SDK for your API ``` USAGE - $ apimatic sdk generate -l csharp|java|php|python|ruby|typescript|go [-i ] [-d ] [-f] [--zip] [-k - ] + $ apimatic sdk generate -l csharp|java|php|python|ruby|typescript|go [-i ] [-d ] [--api-version + ] [-f] [--zip] [-k ] FLAGS -d, --destination= directory where the SDK will be generated @@ -422,7 +422,8 @@ FLAGS -k, --auth-key= override current authentication state with an authentication key. -l, --language=