Command Line Interface
Installation
Using Shell Script (macOS and Linux)
curl -L https://github.com/openSVM/lessvm/releases/latest/download/lessvm-installer.sh | shUsing PowerShell (Windows)
irm https://github.com/openSVM/lessvm/releases/latest/download/lessvm-installer.ps1 | iexUsing Homebrew (macOS and Linux)
brew tap openSVM/lessvm
brew install lessvmManual Download
Download the appropriate binary for your platform from the releases page.
macOS
# For Intel Macs
curl -L https://github.com/openSVM/lessvm/releases/latest/download/lessvm-x86_64-apple-darwin.tar.xz | tar xJ
sudo mv lessvm /usr/local/bin/
# For Apple Silicon (M1/M2) Macs
curl -L https://github.com/openSVM/lessvm/releases/latest/download/lessvm-aarch64-apple-darwin.tar.xz | tar xJ
sudo mv lessvm /usr/local/bin/Linux
# For x86_64 architecture
curl -L https://github.com/openSVM/lessvm/releases/latest/download/lessvm-x86_64-unknown-linux-gnu.tar.xz | tar xJ
sudo mv lessvm /usr/local/bin/
# For ARM64 architecture
curl -L https://github.com/openSVM/lessvm/releases/latest/download/lessvm-aarch64-unknown-linux-gnu.tar.xz | tar xJ
sudo mv lessvm /usr/local/bin/From Source
cargo install lessvmUsage
lessvm [OPTIONS] Global Options
- -v, --verbose: Enable verbose logging
- -h, --help: Show help information
- -V, --version: Show version information
Commands
Create a New Project
lessvm new  [--template ] Creates a new lessVM project with the specified name. Optionally specify a template (default: basic).
Build Project
lessvm build [--path ] Builds the lessVM application, compiling and optimizing the code for deployment.
Deploy to Solana
lessvm deploy [--path ] [--cluster ]  Deploys the built application to the specified Solana cluster (default: devnet).
Check Status
lessvm status [--path ] Checks the deployment status of the application.
Update Deployment
lessvm update [--path ] [--hot-reload] Updates the deployed application. Use --hot-reload for hot reloading when possible.
View Logs
lessvm logs [--path ] [--follow] Views application logs. Use --follow to stream logs in real-time.