The install
command facilitates the installation of packages in the PxPlus Package Manager. It allows users to specify the exact package, version, or range of versions they wish to install.
install [packageauthor/packagename]@[semantic_version]
The install
command provides flexibility in package installation. Users can install specific versions, the latest version, a range of versions based on semantic versioning, or multiple packages at once. If the command is run without any arguments, it will install all packages listed in the packages.json
file.
packageauthor/packagename
.1.0.0
)*
) for the latest version^
) followed by a version for the latest minor or patch (e.g., ^2.1.0
indicates any version in the 2.x.x
range)For a comprehensive understanding of semantic versioning, refer to the official semantic versioning documentation.
To install a specific package version:
install johnsmith/[email protected]
To install the latest version of a package:
install johnsmith/mypackage
or
install johnsmith/mypackage@*
To install multiple packages:
install johnsmith/[email protected] janedoe/anotherpackage@^2.0
To install all packages from packages.json
:
install
If the installation is successful, the system will notify the user that the desired package(s) has/have been installed. If there's an issue, a relevant error message will be displayed.
PackageNotFoundException
.VersionMismatchException
.For further understanding and nuances of the PxPlus Package Manager commands, refer to the documentation or use the help
command.