The Blade CLI is the easiest way for Liferay developers to create new Liferay modules. Although the Plugins SDK is also supported, Blade CLI lets you create projects that can be used with any IDE or development environment. Blade CLI is a command line tool bootstrapped on to a Gradle based environment that is used to build Liferay 7.0 modules. This tool set provides a host of sub-commands that help Liferay developers create and deploy modules to a Liferay instance. The following sub-commands are callable in the Blade CLI environment:

  • convert: Converts a Plugins SDK plugin project to a Gradle Workspace project.
  • create: Creates a new Liferay module project from available templates.
  • deploy: Builds and deploys bundles to the Liferay module framework.
  • gw: Executes Gradle command using the Gradle Wrapper, if detected.
  • help: Gives help on a specific command.
  • init: Initializes a new Liferay Workspace.
  • install: Installs a bundle into Liferay’s module framework.
  • open: Opens or imports a file or project in Liferay IDE.
  • samples: Generates a sample project.
  • server: Starts or stops server defined by your Liferay project.
  • sh: Connects to Liferay and executes Gogo command and returns output.
  • update: Updates Blade CLI to latest version.
  • version: Displays version information about Blade CLI.

In this set of tutorials, you’ll learn how to use these commands to create and test Liferay modules.

Installing Blade CLI

You can install Blade CLI using the Liferay Project SDK installer. This installs JPM and Blade CLI into your user home folder and optionally initializes a Liferay Workspace folder. Note: In the...

Read More

Installing Blade CLI with Proxy Requirements

If you have proxy server requirements and want to use Blade CLI, you must configure your http(s) proxy for it using JPM. Before beginning, make sure you’ve installed JPM and Blade CLI using a...

Read More

Creating a Liferay Workspace with Blade CLI

In this tutorial, you’ll learn how to generate a Liferay Workspace using Blade CLI. The Blade CLI tool you installed in the Installing Blade CLI section provides many different commands to help...

Read More

Creating Projects with Blade CLI

When you use Blade CLI to create a project, your project’s folder structure, build script (e.g., build.gradle), Java classes, and other resources (such as JSPs) are created based on the chosen...

Read More

Deploying Modules with Blade CLI

Deploying modules to a Liferay server using Blade CLI is easy. To use the Blade deploy command, you must first have built a module to deploy. See the Creating Projects with Blade CLI tutorials for...

Read More

Managing Your Liferay Server with Blade CLI

In this tutorial, you’ll learn how to manage a Liferay server using Blade CLI. For example, Blade CLI lets you install, start, stop, inspect, and modify a Liferay server. Make sure you’re in a...

Read More

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...

Read More
+1 (1 Vote)
Using Front-End Code Assist Features in IDE Previous