Octri

sdk preview

Runs the real generator for one language and lists the files it would write, without starting a build or counting against your builds. It's the fast way to see what a spec or settings change does to the code.

bash
octri sdk preview --lang <language> [--show <path>] [--out <dir>]

Flags

--lang <language>stringrequired

One language ID. You can also give it as the first argument.

--show <path>string

Prints one generated file. A path that's unique to one file is enough, such as client.go.

--out <dir>path

Writes every generated file to a folder.

Examples

Preview the TypeScript SDK

bash
octri sdk preview --lang typescript

Read one file

bash
octri sdk preview --lang typescript --show src/client.ts
  • octri sdk build: Build SDKs for the languages you choose and follow each one live.
  • octri lab run: Validate, build, download and unpack in one command, with a verdict per language.