-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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 mean-cli
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]
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.
MEAN comes pre-installed with a basic package that works as a starting point for your app. You can list all currently installed packages by running following command in your project directory.
$ mean list
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]
To create a user simply register at http://localhost:3000/#!/auth/register
Once a user is created you can assign a role to him - the default roles that come with mean are authenticated and admin.
To check the current roles a user might have run -
mean user email
You should get a result that looks like this...
- Getting Started Guides
- Deployment
- Testing
- System Deep Dives
Aggregation- Packages
- Database
- Menus
- Circles (roles/permissions) High Level Overview
- Circles code examples
- User Auth withJWT
- Contributing