# Build Models

### Building Models Guide

Before starting to read this guide, it is recommended for you to read the[ Notebook Section](https://computationaldocs.zeblok.com/zeblok-computational-1/ai-api/notebooks) of the Ai-API Concept.

After creating a newly trained model, comes the building stage.

For building process, the steps are as following:

* Open the integrated terminal that comes along with the notebook.

![Figure 1: Click on New Launcher](https://4027508532-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MecgpHyRD3Y801omxL9%2F-MfWJkAY6--OCBhIWwMo%2F-MfWMGJAB325Cp64dc16%2Fimage.png?alt=media\&token=8b581b45-fc37-4e31-97f4-f6210fe1ce50)

![Figure 2: Integrated Terminal](https://4027508532-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MecgpHyRD3Y801omxL9%2F-MfWJkAY6--OCBhIWwMo%2F-MfWMZgjoHm-MK3k6l_r%2Fimage.png?alt=media\&token=18e3014b-a872-4846-80fa-3864b45701bd)

* Update the Cli ( Command Line Interface) for smooth process running.

```
npm i -g zbl-cli
```

![Figure 3: CLI Update](https://4027508532-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MecgpHyRD3Y801omxL9%2F-MfWJkAY6--OCBhIWwMo%2F-MfWRjMuXXpNpBhkSEpF%2Fimage.png?alt=media\&token=79762d16-a058-4342-9a30-992e9579cca3)

* Configure your zeblok cli

```
zeblok configure
```

![Figure: Zeblok Configure](https://4027508532-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MecgpHyRD3Y801omxL9%2F-MgQZg7pk_bmiC79qcok%2F-MgQa2o3D-4_8bAj5I-9%2Fimage.png?alt=media\&token=d01e3a1f-4395-4162-b4f6-7691aae1b7d9)

* Run the command **zeblok auth** and enter your username and password&#x20;

```
zeblok auth
```

![Figure 4: Authentication Command](https://4027508532-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MecgpHyRD3Y801omxL9%2F-MfWJkAY6--OCBhIWwMo%2F-MfWN3xODmMbP72Yqyjb%2Fimage.png?alt=media\&token=324626a5-5347-4246-9218-ddb29749ee0d)

* After successful authentication, run the command **zeblok runtime** which fetch the latest created by you and give a list of the models from which you can select the model you would like to deploy.

```
zeblok runtime
```

* Select the model and hit enter. The terminal will package your model and upload it to the database. This might take a minute or two.

![Figure 5: Model Selection (Runtime Command)](https://4027508532-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MecgpHyRD3Y801omxL9%2F-MfWJkAY6--OCBhIWwMo%2F-MfWPdAiplA8X05Olsf-%2Fimage.png?alt=media\&token=63376050-3bac-4e8b-90eb-f3f09e9723f2)
