The update
command is used within the PxPlus Package Manager to update installed packages. It enables users to either update a specific package to its latest version or update all packages.
update [packageauthor/packagename]@[semantic_version]
The update
command offers a dynamic way to keep packages up-to-date. Users have the flexibility to update to specific versions, the latest version, or even multiple packages simultaneously. Running the command without any parameters will update all packages to the versions specified in the packages.json
file or their latest versions if not specified.
packageauthor/packagename
.1.0.0
)*
) for the latest version^
) followed by a version for the latest minor or patch (e.g., ^2.1.0
implies any version within the 2.x.x
range)To fully grasp semantic versioning, please consult the official semantic versioning documentation.
To update a particular package to a specific version:
update johnsmith/[email protected]
To update a package to its most recent version:
update johnsmith/mypackage
or
update johnsmith/mypackage@*
To update multiple packages:
update johnsmith/[email protected] janedoe/anotherpackage@^2.0
To update all packages according to packages.json
:
update
If the update process is successful, the system will notify the user that the specified package(s) has/have been updated. In case of an issue, an appropriate error message will be showcased.
PackageNotFoundException
.VersionMismatchException
will be generated.VersionConflictException
.For a deeper understanding and nuances of the PxPlus Package Manager commands, delve into the primary documentation or utilize the help
command.