The Blade CLI tool is the easiest way for Liferay developers to create new Liferay modules. Blade CLI lets you

  • create projects (Gradle or Maven) that can be used with any IDE or development environment
  • create/manage Liferay Portal instances
  • deploy modules (Gradle or Maven)

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 Dev Studio CE.
  • samples: Generates a sample project.
  • server: Starts or stops server defined by your Liferay project.
  • sh: Connects to Liferay Portal, executes succeeding Gogo command, and returns output.
  • update: Updates Blade CLI to latest version.
  • version: Displays version information about Blade CLI.

For additional information on these sub-commands, run the sub-command with the --help flag (e.g., blade samples --help).

In this set of tutorials, you’ll learn how to use these commands to create and test Liferay Portal instances and 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 the...

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 Projects with Blade CLI

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

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
0 (0 Votes)
Using Front-End Code Assist Features in Dev Studio Previous