Help us shape the future of Go! Take the 2026 Go Developer Survey

cmd

command
v1.9.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 2, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Command authsome-sdkgen generates typed client SDKs from AuthSome API metadata.

Usage:

go run ./sdkgen/cmd generate --lang=typescript --out=./sdk
go run ./sdkgen/cmd generate --lang=go --out=./sdk
go run ./sdkgen/cmd generate --lang=dart --out=./sdk
go run ./sdkgen/cmd generate --lang=all --out=./sdk

Flags:

--lang              Target language: "typescript", "go", "dart", or "all" (default: "all")
--out               Output directory (default: "./sdk")
--plugins           Comma-separated list of enabled plugins (default: "")
--title             API title for the spec (default: "AuthSome API")
--version           API version (default: "0.5.0")
--server            Server URL (default: "")
--output-mode       Output mode: "standalone" or "embedded" (default: "standalone")
--method-overrides  Comma-separated operationID=name overrides (e.g., "refreshSession=refresh,deleteAccount=deleteMe")
--from-spec         Path to a pre-generated OpenAPI spec JSON file (skip internal generation)

Directories

Path Synopsis
Command specgen dumps the AuthSome OpenAPI spec by booting the engine with all known plugins, registering their routes on a Forge router, and serializing the dynamically-generated spec to JSON.
Command specgen dumps the AuthSome OpenAPI spec by booting the engine with all known plugins, registering their routes on a Forge router, and serializing the dynamically-generated spec to JSON.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL