CLI Getting Started

MDB CLI Getting Started

This guide will take you step by step on how to create your project and deploy using MDB CLI.


Do you have MDB CLI installed?


Installation

In order to install MDB GO foll the steps below. You can also watch video which show step by step.

1. Navigate to nodejs.org download and install Node.js

2. Open a terminal.

Note: MDB GO currently supports following terminals:
  • Mac OS: Terminal.app, iTerm
  • Windows: cmd.exe, Powershell, ConEmu, Cygwin
  • Linux (Ubuntu, openSUSE, Arch Linux, etc): gnome-terminal (Terminal GNOME), konsole

3. Run the following command:

        
            
                    npm install -g mdb-cli
                    
        
    

4. Now log in with your MDB account, type:

        
            
                    mdb login
                    
        
    

And provide your login and password. If you don't have account yet you can create one using command:

        
            
                    mdb register
                    
        
    

Once you log in, we can continue:

Next step!

Do you want to create new project?

Do you have existing project on your computer which you would like to deploy, or would you like to create a brand new one?


Blank project or MDB starter?

Using MDB CLI you can create either an empty project or use one of predefined starters including MDB, MDB React, MDB Vue or MDB Angular.

Would you like to create new project using MDB starter or blank one?

Note: You can also create full-stack project utilizing either Node.js or PHP and databases (SQL/Mongo), click here to learn more about full-stack project with MDB CLI.


Create new project using MDB starter

Initialize

In order to initialize project and use predefined starter use the following command:

        
            
                          mdb  init
                    
        
    

You will list of available starters to choose from.

Once you choose your starter MDB CLI will initialize new project on your computer.

Now you can start building your app. Once its ready simply publish it using MDB GO:

Publish project!

Create blank project

In order to initialize empty project use the following command:

        
            
                          mdb blank init
                    
        
    

MDB CLI will initialize new project on your computer.

Now you can start building your app. Once its ready simply publish it using MDB GO:

Publish project!

Publish existing project

Once you finish building your project, use the following command do deploy it:

        
            
              mdb  publish
        
        
    

If you are publishing for the first time, CLI will ask you few initial questions like

  • Whether you want to use npm or yarn?
  • What is your project name, version, description, github address and license

Once you successfully publish your project they will be stored for a future.


What's next?

MDB GO offers you much more! You can create not only frontend apps but full-stack application utilizing databases and backend technologies.

You can also create Wordpress sites both from predefined templates or develop your own theme.

Learn more about: