Skip to content

CLI Reference

The vRPC CLI is your main tool for managing configuration and generating clients.

vrpc init

Initializes a vRPC configuration in your project.

  • Interactive Wizard: Prompts for API spec, client name, and output directory.
  • Incremental Setup: If a vrpc.yaml already exists, it will prompt to add a new API spec to the registry.
  • Framework Detection: Detects your build tool and provides setup snippets for the bundler plugin.

vrpc generate

Generates typed clients based on your vrpc.yaml.

bash
# Generate all clients defined in vrpc.yaml
npx vrpc generate

Options

FlagShorthandDescription
--client <name>-cUpdate only a specific client from the registry.
--force-fForce regeneration even if files already exist.

vrpc help

Shows all available commands and options.

Released under the MIT License.