Skip to content
liorkesos edited this page Oct 19, 2014 · 6 revisions

CLI Overview

The MEAN CLI is a simple Command Line Interface for installing and managing MEAN applications. As a core package of the mean.io project, it provides a number of useful tools to make MEAN development easier, such as: scaffolding, module creation and admin, status checks, and user role admin.

The MEAN CLI is available via npm as meanio. See the installation section for details.

Installation The MEAN CLI should be installed as a global npm package.

$ [sudo] npm install -g meanio

Help

Help is readily available with the CLI. Any of the following will provide a list of all available mean commands. $ mean $ mean --help $ mean help mean help can also be used in conjunction with any command to get more information about that particular functionality. For example, try mean help init to see the options for init

`$ mean help [command]`

Scaffolding a MEAN Project

To create a new MEAN app, run mean init. Name for the application is optional. If no name is provided, "mean" is used. The MEAN project will be cloned from GitHub into a directory of the application name. $ mean init [name] $ cd [name] && npm install Note: git must be installed for this command to work properly.

Creating your own custom package

To create you own mean package, Name for the package is required. The package will be created using the basic package file structure and will be found in /packages/custom/yourpackage $ mean package [packageName]

Clone this wiki locally