Usage Examples 🚀

Explore these examples to get a better understanding of how to use PxPlusPackageManager (pxpm) in different scenarios.

Example 1: Basic Package Installation

Prerequisites:

  • Ensure that pxpm is already installed on your system.

Procedure:

  1. Open your terminal.

  2. Run the following command to install a package:

    pxpm install example-package
  3. Follow any on-screen prompts for confirmation.

  4. Once the installation is complete, you can start using the package.

Example 2: Updating Packages

Prerequisites:

  • Existing packages installed through pxpm.

Procedure:

  1. Open your terminal.

  2. Run the following command to update all installed packages:

    pxpm update
  3. Confirm any prompts for updating individual packages.

  4. After the update process, your packages will be up-to-date.

Example 3: Updating a Specific Package to Another Version

Prerequisites:

  • Existing installation of pxpm.
  • The target package already installed.

Procedure:

  1. Open your terminal.

  2. Run the following command to update a specific package to another version:

    pxpm update example-package@^2

    Replace example-package with the name of your target package and ^2 with the desired version range or specific version.

  3. Confirm any prompts for updating the package.

  4. After the update process, the specified package will be updated to the desired version.

Example 4: Removing a Package

Prerequisites:

  • A package installed through pxpm.

Procedure:

  1. Open your terminal.

  2. Run the following command to remove a package:

    pxpm remove example-package
  3. Confirm the removal when prompted.

  4. The specified package will be uninstalled from your system.