CLI Configuration

MDB CLI Configuration

This page contains configurations options for adding new domains, setting up git repository and more.

Custom domain

Add custom domain to your project

MDB GO allows you to add a custom domain to your project. In other words, if you are owner of yourdomain.com you can use this domain for your MDB GO project.

1. Login to your admin panel at mdbgo.com, navigate to projects and click at MANAGE button next to the project.

edit domain

Click EDIT button. This will open an edit modal, simply enter a new domain name and click SAVE.

You can also set the domain name by running the following command inside the MDB project:

        
            
              mdb config domain <yourdomain>
            
        
    

(i.e. mdb config domain mydomain.com)

2. Set the correct DNS record depending on the type of domain you are using:

  • custom domain with SSL - set the A record pointing to 193.70.113.197
  • custom subdomain with SSL - set the CNAME pointing to sni.mdbgo.com
  • custom domain without SSL - set the A record pointing to 93.105.88.216

Note: Configuration of the DNS records vary depending on hosting provider. In order to edit A record you have to sign in to your hosting provider where you bought domain and search for DNS configuration. Watch the video to see sample configuration on OVH.
Warning! If you already have one or more A records referring your domain name, please delete them first because otherwise, it won't work properly. Be careful though, do not change any A records that do not refer your exact domain name because you may break some other things. If you are not sure what to do, please contact our Support.

Video tutorial:


GIT repository

Add git repository to your project

MDB GO allows you to add a git repository to your projects. In order to do so simply login to your admin panel at mdbgo.com, navigate to projects and click at MANAGE button next to the project.

If your project doesn't have repository you will see X next to "Repository" field.

repository

In case your project already have a repository you will see a link to it.

Click CREATE button. This will create a git repository and submit your currently deployed code into a new repository.

Now you can navigate to your git project, review history, manage access and more.

From now on whenever you run mdb get command to download your MDB GO project to your local computer it will clone the project from GIT repository (instead of downloading it from FTP)

Video tutorial: