VSR CLI Overview
The vsr (vLLM Semantic Router) CLI is a unified command-line tool designed to simplify the installation, configuration, deployment, and management of the Semantic Router.
Key Features​
- Easy Installation: Guided installation and setup process.
- Configuration Management: View, edit, validate, and modify configuration files with ease.
- Deployment: Deploy the router locally, via Docker Compose, or to Kubernetes with a single command.
- Status & Monitoring: Check service health and view logs.
- Testing: interactive prompt testing to verify routing logic.
Installation​
From Binary​
Download the latest release for your platform and add it to your PATH.
From Source​
make install-cli
Quick Start​
-
Initialize a new configuration:
vsr initThis creates a
config/config.yamlfile with default settings. -
Edit the configuration:
vsr config editOpens the configuration file in your default editor.
-
Validate the configuration:
vsr config validateEnsures your configuration is syntactically and semantically correct.
-
Deploy the router:
vsr deploy dockerStarts the router using Docker Compose.
-
Check status:
vsr status -
Test a prompt:
vsr test-prompt "What is the derivative of x^2?"