#Tooling Workflow

Telepact's tooling is designed around the schema. The same contract that powers runtime validation also powers fetching, comparison, mocking, code generation, and interactive docs.

#Fetch a schema

Use the CLI to retrieve a schema from a running Telepact server and store it locally.

This is useful when you want to:

  • inspect a live API contract

  • save a schema for local development

  • feed the schema into other Telepact tools

See:

#Compare schema versions

Use telepact compare to check backwards compatibility between an old schema and a new schema.

This is useful when you want to:

  • gate schema changes in CI

  • make compatibility an explicit release check

In practice, that often means comparing the checked-in schema directory on your branch with the version from origin/main or the last release tag:

old_dir="$(mktemp -d)"
new_dir="$(mktemp -d)"

git archive origin/main api | tar -x -C "$old_dir"
git archive HEAD api | tar -x -C "$new_dir"

telepact compare \
  --old-schema-dir "$old_dir/api" \
  --new-schema-dir "$new_dir/api"

Replace api with the schema directory your service checks in.

See:

#Mock an API

Use telepact mock when clients need to develop before a live server is ready or when tests need schema-valid responses on demand.

This is useful when you want to:

  • unblock client development

  • test against schema-valid responses

  • add stubs and verification around expected calls

  • make mock-first integration validation your default workflow

For many integrations, this is the best default confidence path: point your consumer at a Telepact mock first, let the mock validate the requests you actually send, then switch to the live server later.

See:

#Generate code

Use telepact codegen to generate bindings from a schema.

This is useful when you want:

  • stronger typing in supported languages

  • generated request/response models

  • less manual client boilerplate

  • a more ergonomic static API than the runtime client alone

Code generation is optional. Start with plain JSON or a Telepact runtime library, use the mock server for schema-backed validation, and add generated bindings only when the extra static ergonomics are worth the toolchain cost.

See:

#Use the browser console

Use the Telepact Console when you want interactive documentation, request drafting, and live requests against a running Telepact server.