UNPKG

cvm-cli

Version:

A unified CLI tool for managing PHP, Node.js, and Python versions with virtual environment and dependency management support.

83 lines (61 loc) 2.18 kB
# CVM - Cross-platform Version Manager A unified CLI tool for managing PHP, Node.js, and Python versions with virtual environment and dependency management support. ## Features - **Multi-language support**: PHP, Node.js, Python - **Version management**: Install, switch, and manage multiple versions - **Virtual environments**: Isolated environments for each project - **Dependency management**: Handle packages and dependencies - **Cross-platform**: Works on Linux, macOS, and Windows ## Commands ### Version Management - `cvm install <language> <version>` - Install a specific version - `cvm use <language> <version>` - Switch to a specific version - `cvm list <language>` - List installed versions - `cvm available <language>` - List available versions for download - `cvm uninstall <language> <version>` - Remove a version ### Environment Management - `cvm env create <name>` - Create a new environment - `cvm env activate <name>` - Activate an environment - `cvm env deactivate` - Deactivate current environment - `cvm env list` - List all environments ### Language-specific Commands - `cpvm` - PHP version manager - `cnvm` - Node.js version manager - `cpyvm` - Python version manager - `cenv` - Environment manager - `cpm` - Cross-Platform Project Manager ### Project Creation Commands - `cpm make <template> <project-name>` - Create a new project from template - `cpm list` - List all available project templates - `cpm search <keyword>` - Search for templates by keyword - `cpm info <template>` - Show detailed template information - `cpm interactive` - Create project using interactive mode ## Installation ### Via npm (Recommended) ```bash # Install globally npm install -g cvm-cli # Or install locally in your project npm install cvm ``` ### From source ```bash # Clone the repository git clone https://github.com/codizium/cvm.git cd cvm # Install dependencies npm install # Link globally for development npm link ``` ## Usage Examples ```bash # Install Node.js version 18 cvm install node 18.0.0 # Switch to Python 3.9 cvm use python 3.9.0 # Create a new environment cvm env create myproject # Activate environment cvm env activate myproject ```