Vuer CLI¶
Vuer provides an extensible command-line interface that discovers commands from installed plugins.
Installation¶
pip install vuer
Basic Usage¶
vuer --help # Show all available commands
vuer serve # Start local dev server
vuer version # Show version info
Plugin System¶
Vuer CLI uses Python entry points to discover commands. Any package can register commands under the vuer.cli entry point group.
Creating a Plugin¶
Create a command class using params-proto dataclass
Register in pyproject.toml under
[project.entry-points."vuer.cli"]Install your package and the command appears in
vuer --help
Example: Creating a Custom Command¶
from params_proto import Proto, ParamsProto
class MyCommand(ParamsProto, cli=True):
"""My custom vuer command."""
host: str = Proto("localhost", help="Host to bind to")
port: int = Proto(8080, help="Port number")
def __call__(self):
print(f"Running on {self.host}:{self.port}")
Then register in your pyproject.toml:
[project.entry-points."vuer.cli"]
my-command = "my_package.commands:MyCommand"
After installing your package, the command becomes available:
vuer my-command --host 0.0.0.0 --port 3000
Available Plugins¶
Package |
Commands |
Description |
|---|---|---|
vuer |
serve, version |
Core commands |
vuer-ptc-viz |
minimap, viz-ptc-cams, viz-ptc-proxie |
Point cloud visualization |
Command Discovery¶
When you run vuer --help, the CLI discovers all installed packages that register commands under the vuer.cli entry point group. This allows the ecosystem to grow organically as new visualization tools are developed.
Configuration¶
Commands can accept configuration via:
Command-line flags:
vuer serve --port 8080Environment variables:
VUER_PORT=8080 vuer serveConfig files: params-proto supports YAML/JSON config loading
Tips¶
Use
vuer <command> --helpto see all options for a specific commandCommands inherit from
ParamsProtofor automatic CLI argument parsingPlugin commands are loaded lazily for fast startup times