[NPMCLI-124] All mgnl commands end up with "...does not exist, try --help" Created: 23/Mar/17  Updated: 29/Jun/17  Resolved: 07/Apr/17

Status: Closed
Project: Magnolia CLI
Component/s: None
Affects Version/s: 2.1.0
Fix Version/s: None

Type: Task Priority: Neutral
Reporter: Christian Felsing Assignee: Robert Kowalski
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Fedora 25: Linux 4.9.14-200.fc25.x86_64 #1 SMP Mon Mar 13 19:26:40 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
Client is behind a proxy server
NodeJS: v6.10.1


Template:
Acceptance criteria:
Empty
Task DoR:
Empty
Date of First Response:
Sprint: Basel 89, Basel 90
Story Points: 0.5

 Description   

Install mgnl accouding to https://documentation.magnolia-cms.com/display/DOCS/Magnolia+CLI

$ npm install @magnolia/cli -g

help works as expected:

$ mgnl help

Usage: mgnl <command> [options]

Commands:

jumpstart download and setup a Magnolia CMS instance for development.
start start up a Magnolia CMS instance. To stop it, enter CTRL+C
add-availability add component availability.
build scan a node_modules folder for npm packages with the keyword "magnolia-light-module" (in package.json) and extract them to a directory of choice.
create-component create a component and optionally add availability for it.
create-light-module create a light module.
create-page create a page template.
customize-local-config extract "mgnl-cli-prototypes" folder and "mgnl-cli.json" file to customize CLI configuration.
install install a light module from npm to the local Magnolia instance.
search search a light module.
tab-completion install tab autocomplete feature for Bash, zsh or PowerShell
help [cmd] display help for [cmd]

A tool to setup and facilitate light development with Magnolia CMS

Options:

-h, --help output usage information
-V, --version output the version number

$ mgnl create-light-module
info Using configuration at /home/user/Development/node-v6.10.1-linux-x64/lib/node_modules/@magnolia/cli/lib/config/mgnl-cli.json
info Using prototypes at /home/user/Development/node-v6.10.1-linux-x64/lib/node_modules/@magnolia/cli/lib/config/mgnl-cli-prototypes

mgnl-create-light-module(1) does not exist, try --help

Any other mgnl command ends up with "mgnl-...(1) does not exist, try --help"



 Comments   
Comment by Robert Kowalski [ 31/Mar/17 ]

Hi Christian,

thanks for reaching out!

Are you sure you typed

mgnl create-light-module

?

From the error message it looks like a typo, which happens when you type

mgnl mgnl-create-light-module

I have just installed the latest version from npm and it works for me.

Can you double check that you typed the command properly and report back?

Thank you and enjoy your weekend!

Comment by Robert Kowalski [ 07/Apr/17 ]

The issue seems to be abandoned. Closing.

Generated at Mon Feb 12 04:46:45 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.