xupg-rs


xupg-rs

xupg-rs is a unified CLI tool for managing and updating versions of PHP, MySQL, Node.js, and more. Whether you use standalone tools or environments like XAMPP, Laragon, or Node.js, xupg-rs helps you stay organized by simplifying version management.


Features


Installation

Option 1: Install via cargo from Crates.io

(Requires Rust and Cargo installed on your machine.)

cargo install xupg-rs

Verify the installation:

xupg --version

Option 2: Build and Install from Source

If you want to build the project from the source:

  1. Clone the repository:

    git clone https://github.com/codad5/xupg-rs.git
    cd xupg-rs
    
  2. Build and install the project with Cargo:

    cargo install --path .
    

    This will build the binary and place it in your Cargo bin directory (~/.cargo/bin by default).

  3. Verify the installation:

    xupg --version
    

    If Cargo’s bin directory isn’t in your PATH, you may need to add it:

    export PATH="$HOME/.cargo/bin:$PATH"
    

Usage

Here are some common commands for managing tools using xupg-rs.

1. List Available Versions

xupg list -p

Example:

xupg list -p -o

This lists online-available PHP versions.

xupg list -p

This lists locally-installed PHP versions.


2. Install a Specific Tool Version

xupg install -p <version> -pa <path>

Example:

xupg install -p 8.1.0

This installs PHP version 8.1.0 to the default path.


3. Set PHP Version for XAMPP

xupg xampp php -s <version> -p <path>

Example:

xupg xampp php -s 8.0.0 -p c:/zampp/

This sets PHP version 8.0.0 as the default for XAMPP installed at c:/zampp/.


4. Install and Set PHP for XAMPP Automatically

To install PHP 7.4.0 directly into XAMPP’s PHP directory:

xupg xampp php -s 7.4.0

This would install PHP 7.4.0 and set it as the default PHP version for XAMPP.



Dependencies


Contributing

  1. Fork the repository on GitHub.
  2. Create a new branch:
    git checkout -b feature-branch
    
  3. Make your changes and commit:
    git commit -m "Add new feature"
    
  4. Push your branch:
    git push origin feature-branch
    
  5. Open a Pull Request on GitHub.

License

This project is licensed under the MIT License. See the LICENSE file for more information.


Contact


Future Improvements


With xupg-rs, managing versions across environments becomes straightforward and efficient. Install it today and simplify your workflow! 🚀