# Continuous Delivery Workflow

Microgen come with handy solution for Continuous Delivery. On the Pro Plan & up, microgen had 3 versions which are development, staging, and production. Every environment live on each own cluster and it has its own databases.&#x20;

![](/files/-MRCiBBqyt7NQ_MkRoTd)

## Development Environment

On development environment, we can do anything such as creating schema, content entries, creating mgFunction, etc. Here are the brief description how to deal with that.

### Taking Schema Version

After making change on the schema, we can simply take version from the toolbar menu

![](/files/-MhNLR-4Pwi9qADWV2UG)

we can give name and description to our version change. It will be used later on Deployment.

### Setting up Development Environment Variable

We can either set the environment variable from settings - config var menu, or directly click the "RUN" button like this.

![](/files/-MhNMFl9mdQ_U-FcSIW2)

to edit more env variable, we can click the "open more config" link. This environment variable will only live on this environment.

### Deploying Schema on Development Environment

To deploy the schema on development environment, we can simply click the "RUN" button on the right toolbar, and go to "development" tab, then click the "Deploy" button.

![](/files/-MhNMiPOCB5wI-rlXEq7)

Don't forget to setup the env variable first, or open more config. We can also specify the schema version we would like to deploy on development environment from the "versioning" menu, by checking out on desired version.

### Testing MgFunction before Deploy

more doc coming soon!

### Deploying MgFunction on Development Environment

more doc coming soon!

## Staging Environment

On Staging environment we can only choose the version of schema to be deployed, setting global environment variable for staging, and choose MgFunction version to be deployed. We can't create schema, create mgFunction, etc here. But we can still do something like content entries, monitoring checking, creating cache etc. Here are the brief description how to deal with that.

### Setting up Staging Environment Variable

more doc coming soon!

### Deploying Schema on Staging Environment

more doc coming soon!

### Deploying MgFunction on Staging Environment

more doc coming soon!

## Production Environment

On Production environment we can only promote the latest deployed Schema and latest deployed mgFunction from staging environment. We can't create schema, create mgFunction, etc here. But we can still do something like content entries, monitoring checking, creating cache etc. Here are the brief description how to deal with that.

### Setting up Production Environment Variable

more doc coming soon!

### Promoting Schema on Production Environment

more doc coming soon!

### Promoting MgFunction on Production Environment

more doc coming soon!


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.microgen.id/mejik-microgen/continuous-delivery-workflow.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
