Skip to content

service & bridge

The service group manages polyglot services and generates cross-language service bridges — a protocol contract plus typed clients that let services written in different languages talk to each other safely.

Terminal window
re-shell service --help
SubcommandPurpose
bridgeGenerate cross-language service bridges (contract + typed clients) from the workspace v2 config.
polyglotBuild and deploy polyglot full-stack applications.
run (alias svc)Manage development services.
Usage: re-shell service bridge generate [options]
Generate a service bridge: a protocol contract (.proto/OpenAPI/GraphQL SDL)
plus a typed TS client and a documented Python scaffold
Terminal window
re-shell service bridge generate

What it produces:

  • A protocol contract — gRPC .proto, OpenAPI, or GraphQL SDL.
  • A typed TypeScript client that is type-checked against your installed tsc.
  • A documented Python client scaffold.

The generator reads your declarative re-shell.workspaces.yaml (v2) to know which services exist and how they relate, so the bridge matches your real topology. Async transports (Kafka/Redis Streams), circuit breakers, and distributed tracing are scaffolded as types and stubs — see the Roadmap for status.

Terminal window
# Run / manage local development services
re-shell service run --help
# Build and deploy a polyglot application
re-shell service polyglot --help