Page tree
Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 11 Next »

Magnolia CLI

Introduction

Magnolia CLI is an npm package providing a CLI tool to setup and facilitate Light Development with Magnolia.

Installs the mgnl command which allows performing several key operations for Light Development. It enables creating modules, pages, and components without any special IDE or Java requirements

Advantages of Magnolia CLI

Light modules, page, area, and component templates are created automatically.

There is no need to restart the server.

Magnolia CLI Commands

-v, --versionoutput the version number
-h, --helpoutput usage information
jumpstartdownload and setup a Magnolia CMS instance for development.
startstart up a Magnolia CMS instance. To stop it, enter CTRL+C
add-availabilityadd component availability.
buildscans for "magnolia-light-module" and extract to a directory
create-block create a block.
create-componentcreate a component and optionally add availability for it.
create-light-modulecreate a light module.
create-page
create-virtual-uri
Customize-local-config
install
search
tab-completion
version
help [cmd]




                  create a page template.

          create a virtual uri mapping.

     extract "mgnl-cli-prototypes" folder and "mgnl-cli.json" file

                      install a light module from npm to the local Magnolia instance.

                       search for a light module on npm.

               install tab autocomplete feature for Bash, zsh or PowerShell

                      display mgnl and node.js versions

                   display help for [cmd]

      

   


  • No labels