Updating Blade CLI

If your Blade CLI version is outdated, you can run the following command to automatically download and install the latest version of Blade CLI:

blade update

For Windows users, the blade update command does not work because Windows cannot update a file that is currently in use. To bypass this issue, you can use JPM to update your version of Blade CLI:

jpm install -f https://releases.liferay.com/tools/blade-cli/latest/blade.jar

Blade CLI is updated frequently, so it’s recommended to update your Blade CLI environment for new features. You can check the released versions of Blade CLI at https://releases.liferay.com/tools/blade-cli/. You can check your current installed version by running blade version.

Although Blade CLI is frequently released, if you want bleeding edge features not yet available, you can install the latest snapshot version:

blade update -s

This pulls the latest snapshot version of Blade CLI and installs it to your local machine. Running blade version after installing a snapshot displays output similar to this:

blade version 3.3.1.SNAPSHOT201811301746

Be careful; snapshot versions are unstable and should only be used for experimental purposes.

Awesome! You’ve successfully learned how to update Blade CLI.

« Managing Your Liferay Server with Blade CLIConverting Plugins SDK Projects with Blade CLI »
この記事は役に立ちましたか?
1人中1人がこの記事が役に立ったと言っています