Upload code using the IDE
Use a visual interface to package and upload your code with Mini Program Studio (the IDE). This creates a new mini program version in your workspace for release. Choose this method if you develop within the IDE or prefer an intuitive and user-friendly interface.
Note: If you prefer to upload your code with a terminal command for CI/CD integration, follow the instructions in Upload code via the CLI.
Before you begin
Ensure the following things:
- Mini program type: The target mini program's type is DSL.
- Required access: You must be either:
- Workspace admin in the workspace where the mini program was created.
- Admin or developer for the target mini program.
- Code: Your mini program code is fully developed, debugged, and ready for release.
- Tool: Install Mini Program Studio on your computer.
- Version number: Identify the new version number for your mini program. For details, see Version numbering rules.
Procedure
To upload code using the IDE, take the following steps:
- Log in to the IDE with your Mini Program Platform account and open your mini program project.
- Click Upload Version in the upper-right corner.
Tip: If you do not see this button, it might be hidden due to a small screen. Click >> (the menu expansion icon) and select Upload Version from the dropdown list.
- In the dialog that appears, review or change the version number.
- Review the suggested version number in the Version to Upload field.
- If you need to change the version number, click the pencil icon and enter your preferred value.
- Click Upload Version to confirm the upload. The upload might take a few seconds.
- A confirmation message appears.
What happens next
The new version will appear in your workspace. To view it:
- Log in to your workspace and open the details page of the target mini program.
- Click the Versions tab.
- The newly uploaded version is listed at the top.
The platform automatically pre-selects the primary target app (defined by the super app) and its production environment for the upcoming release. To complete the release, follow the instructions in Release a mini program.