Blade CLI

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 DXP 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 DXP.
  • samples: Generates a sample project.
  • server: Starts or stops server defined by your Liferay project.
  • sh: Connects to Liferay DXP, executes succeeding Gogo command, and returns output.
  • update: Updates Blade CLI to latest version.
  • upgradeProps: Analyzes your old portal-ext.properties and your newly installed 7.x server to show you properties moved to OSGi configuration files or removed from the product.
  • 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 DXP instances and modules.

« Using Front-End Code Assist Features in Dev StudioInstalling Blade CLI »
この記事は役に立ちましたか?
0人中0人がこの記事が役に立ったと言っています