Magnolia CLI

Magnolia CLI is an npm package providing a Command Line Interface (CLI) tool to set up and facilitate light development in Magnolia CMS.

Package name

@magnolia/cli

Repository link

Latest version

Magnolia CLI latest version tag

Changelog link

Installing

For installation information, see Installing CLI.

Using

You can use Magnolia CLI and its plugins to:

  • Download a project with a Magnolia webapp.

  • Quickly create a light module skeleton, with the folders and files that form a Magnolia light module.

  • Generate light module items.

  • Start a Magnolia webapp.

Versions

We currently support these major versions of CLI.

  • Magnolia CLI v5, a plugin-based CLI, designed for developers seeking modularity and the ability to extend functionalities through custom CLI commands.

    If you are new to Magnolia CLI, use CLI v5.
  • Magnolia CLI v4, a command-based version.

    Includes the legacy Magnolia 5 UI prototypes. They are marked with -m5. You can generate the 5 UI-based definitions by using the -P or --prototype command flag and specifying one of the m5 prototypes available.

    You must use CLI version 4.0.12 or later to install Magnolia 6.3.

    CLI v4 support status

    CLI v4 is in the Maintenance mode, where only security and critical issues will be addressed. Since April 16, 2025, CLI v4 will receive no further updates.

    After this date, you should use CLI v5.

Feedback

DX Core

×

Location

This widget lets you know where you are on the docs site.

You are currently perusing through the Magnolia CLI docs.

Main doc sections

DX Core Headless PaaS Legacy Cloud Incubator modules