metaxy-cli 0.4.1

CLI tool for Metaxy: parses Rust functions and generates TypeScript types and client
Documentation

metaxy-cli

Crates.io License: MIT OR Apache-2.0

CLI that scans Rust source files annotated with #[rpc_query] / #[rpc_mutation] and generates TypeScript type definitions and a fully typed RPC client.

Part of the metaxy project.

Installation

cargo install metaxy-cli

Quick Start

metaxy generate --dir api --output src/lib/rpc-types.ts --client-output src/lib/rpc-client.ts

Documentation

Full documentation: metaxy-demo.vercel.app/docs

  • CLI Commands — generate, scan, watch
  • Config File — metaxy.config.toml reference
  • Codegen — type mappings, serde, generics, field naming
  • Client — config, headers, timeout, hooks, retry, dedup
  • Frameworks — Svelte 5, React, Vue 3, SolidJS

License

MIT OR Apache-2.0