This guide walks you through the end-to-end workflow for creating and releasing a Mini Program on mPaaS (Mobile Platform as a Service): from console setup and IDE development to uploading and publishing your first release.
The workflow consists of four stages:
Set virtual domain name in console
Log in to the mPaaS console, open the target mPaaS app, and click Mini Program > Release Mini Program in the left navigation pane.
On the Manage configuration tab, find the Manage domain area and enter your virtual domain name. Use a second-level domain managed by your organization.
Click Save.
Create a Mini Program in console
In the mPaaS console, click Mini Program > Release Mini Program in the left navigation pane.
On the Manage mini program packages page, click Create Mini Program App.
In the Create mini program dialog, enter a mini program ID and name, then click OK. The new app appears in the mini program package list on the left. The mini program ID is a 16-digit number, for example
2020080120200801.Click Add to upload your mini program code package.
Develop the Mini Program with the IDE
IDE development involves four steps:
Create a Mini Program project
Download the Mini Program development tool (IDE).
Open the IDE, select Mini Program from the left menu, and click the plus icon to add a new project.
In the Select target platform step, choose mPaaS and click Next.
In the Select template step, choose the mPaaS sample template and click Next.
Enter a project name, specify the project path, and click Complete.
Download the configuration file
Each time you create a new environment, download the IDE configuration file for the corresponding Mini Program from the mPaaS console and upload it to the IDE.
-
Log in to the mPaaS console, go to Mini Program > Release Mini Program > Manage configuration, and click Download configuration file in the Manage IDE configuration area.
NoteThe IDE configuration file is separate from the mPaaS application configuration file.
-
In the Download configuration file dialog, enter the Dynamic password — this is the password you will use to Log in to the Mini Program IDE), then click OK to download the file. Keep this password — you will need it to log in to the IDE.
NoteThe downloaded configuration file is named
config.jsonby default.
Log in to the Mini Program IDE
In the Mini Program IDE, click Log in in the upper-right corner.
In the New login environment dialog, enter
mPaaSminiprogramas the environment name, upload theconfig.jsonfile downloaded from the mPaaS console, and click OK.-
Enter your account credentials to log in:
Account: your mPaaS console username.
Password: the dynamic password you set when downloading the IDE configuration file.
Develop the Mini Program
After logging in, click Associated mini program and select the Mini Program you created in the mPaaS console from the drop-down list.
-
Click the dependency management icon in the left pane and add the
mini-ali-uidependency.
-
Click the toolbox icon in the left pane to configure the Mini Program settings.

If the IDE detects configuration errors — for example, a main entrance configuration error — it lists the affected items based on your project code. Click Auto modify and submit to fix them.
Compile the Mini Program code. Alternatively, download the demo and upload it directly to the mPaaS console for a quick release without writing any code.
Release the Mini Program
-
In the Mini Program IDE, click Upload in the upper-right corner to upload the mini program package to the mPaaS console.
The IDE displays a confirmation message when the upload completes. The uploaded package enters a pending-release state and does not go live automatically.
Log in to the mPaaS console, open the target mPaaS app, and click Mini Program > Release Mini Program in the left navigation pane. On the Manage official package tab, find the uploaded package with a pending status.
Click Create release. On the release task creation page, set the release type to Official for a full production release, then click OK.
The Mini Program is now live.
Code sample
Download the mPaaS Mini Program demo and upload it directly to the mPaaS console to release a working Mini Program without writing any code first.
Before uploading the demo .zip file, rename both the .zip file and the file inside it to the 16-digit ID of your Mini Program.