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.yamlalready 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 generateOptions
| Flag | Shorthand | Description |
|---|---|---|
--client <name> | -c | Update only a specific client from the registry. |
--force | -f | Force regeneration even if files already exist. |
vrpc help
Shows all available commands and options.