| Crates.io | vx-cli |
| lib.rs | vx-cli |
| version | 0.4.0 |
| created_at | 2025-06-15 04:34:01.29933+00 |
| updated_at | 2025-06-19 13:57:43.708346+00 |
| description | CLI interface for vx tool manager |
| homepage | https://github.com/loonghao/vx |
| repository | https://github.com/loonghao/vx |
| max_upload_size | |
| id | 1712899 |
| size | 240,017 |
Beautiful Command-Line Interface for the vx Universal Tool Manager
Lightning-fast CLI with beautiful progress bars and intelligent tool management
vx-cli provides the beautiful command-line interface for vx, a universal development tool manager. It offers a unified interface for managing, installing, and executing development tools across different languages and ecosystems, powered by the state-of-the-art vx-installer engine.
cargo install vx-cli
git clone https://github.com/loonghao/vx
cd vx
cargo install --path crates/vx-cli
# 🚀 Execute tools transparently with auto-installation and progress bars
vx node --version # Beautiful progress if Node.js needs installation
vx uv pip install requests # Rich progress tracking for downloads
vx go build # Automatic Go installation with checksum verification
# 📦 Install specific versions with visual feedback
vx install node@18.17.0 # Progress bars with ETA and transfer rates
vx install uv@latest # Secure downloads with automatic verification
# 📊 List available tools with rich formatting
vx list # Colorful output with status indicators
vx list --installed # Show only installed tools with versions
# 🎯 Create virtual environment with beautiful setup
vx venv create myproject --tools node@18.17.0,uv@latest
# Initialize project configuration
vx init
# Edit .vx.toml
echo '[tools]
node = "18.17.0"
uv = "latest"' > .vx.toml
# Sync project tools
vx sync
vx-cli is powered by the vx-installer engine, providing a state-of-the-art installation experience:
# When installing tools, you'll see beautiful progress bars like:
# 🚀 Downloading Node.js v18.17.0...
# ⬇️ [████████████████████████████████] 45.2MB/45.2MB (2.3MB/s, 0s remaining)
# 📦 Extracting archive...
# ✅ Node.js v18.17.0 installed successfully!
vx install node@18.17.0
# All downloads include automatic security features:
# - HTTPS-only downloads
# - Automatic checksum verification
# - Secure archive extraction
# - Permission validation
vx install go@1.21.0 # Automatically verified for integrity
# vx-cli handles multiple archive formats seamlessly:
# - ZIP archives (Windows tools)
# - TAR.GZ archives (Unix tools)
# - TAR.XZ archives (compressed tools)
# - Raw binaries (single executables)
vx install uv@latest # Automatically detects and handles format
# Direct tool execution (transparent proxy)
vx <tool> [args...]
# Examples
vx node --version
vx npm install express
vx uv pip install requests
vx go build ./...
vx cargo test
# Install tools
vx install <tool>[@version]
vx install node@18.17.0 uv@latest
# List tools
vx list # All available tools
vx list --installed # Only installed tools
vx list node # Specific tool versions
# Update tools
vx update # Update all tools
vx update node # Update specific tool
# Remove tools
vx remove node@18.17.0 # Remove specific version
vx remove node --all # Remove all versions
# Search tools
vx search python # Search for tools
vx search --category python
# Create environments
vx venv create myproject
vx venv create myproject --tools node@18.17.0,uv@latest
# Use environments
vx venv use myproject
vx venv run myproject node --version
# Manage environments
vx venv list # List all environments
vx venv remove myproject # Remove environment
# Initialize project
vx init # Interactive setup
vx init --template node # Use template
# Sync project tools
vx sync # Install project tools
vx sync --check # Check without installing
# Configuration
vx config # Show current config
vx config edit # Edit global config
vx config edit --local # Edit project config
# Statistics
vx stats # Show usage statistics
vx stats --detailed # Detailed statistics
# Cleanup
vx cleanup # Clean orphaned files
vx cleanup --dry-run # Preview cleanup
# Global tool management
vx global list # List global tools
vx global cleanup # Clean unused tools
Location: ~/.vx/config/global.toml
[auto_install]
enabled = true
timeout = 300
confirm_before_install = false
[settings]
cache_duration = "7d"
parallel_downloads = 4
use_system_path = false
[ui]
show_progress = true
use_colors = true
Location: .vx.toml in project root
[tools]
node = "18.17.0"
uv = "latest"
go = "^1.21.0"
[settings]
auto_install = true
cache_duration = "7d"
[scripts]
dev = "npm run dev"
build = "npm run build"
test = "npm test"
# Add to ~/.bashrc or ~/.zshrc
eval "$(vx shell-init)"
source <(vx completion bash) # or zsh
# Add to ~/.config/fish/config.fish
vx shell-init | source
vx completion fish | source
# Add to PowerShell profile
Invoke-Expression (vx shell-init)
vx completion powershell | Out-String | Invoke-Expression
vx-cli is built on top of a modern, modular architecture:
User Command → vx-cli → vx-core → vx-installer → Tool Installation
↓
Progress Tracking & Security
cargo build
cargo test
cargo run -- --help
# Enable verbose logging
RUST_LOG=debug cargo run -- <command>
# Or use the verbose flag
cargo run -- --verbose <command>
vx-cli provides detailed error messages and suggestions:
$ vx nonexistent-tool
Error: Tool 'nonexistent-tool' not found
Suggestions:
- Run 'vx list' to see available tools
- Run 'vx search nonexistent' to search for similar tools
- Check if the tool name is spelled correctly
| Operation | Time | Memory | Notes |
|---|---|---|---|
| Tool execution | <100ms | 8MB | Cached tools |
| First-time install | 2-5s | 12MB | With progress bars |
| Version switching | <50ms | 4MB | Symlink-based |
| Configuration load | <10ms | 2MB | TOML parsing |
vx list to see available toolsvx cleanup to remove orphaned versions# Enable debug logging
vx --verbose <command>
# Check configuration
vx config --sources
# Verify installation
vx stats
This project is licensed under the MIT License - see the LICENSE file for details.
Contributions are welcome! Please see the contributing guidelines for more information.
vx-installer - 🆕 Universal installation engine with progress trackingvx-core - Core functionality and utilitiesvx-config - Configuration management systemvx-plugin - Plugin system and trait definitionsvx-tool-node - Node.js plugin with NPX supportvx-tool-uv - UV Python plugin with UVX supportvx-pm-npm - NPM package manager pluginExperience the future of development tool management