Zalopay Mini-app management CLI
npm install zlp-clizlp-cli)A powerful command-line interface for managing and deploying Zalopay Mini-apps.
To use this CLI, ensure you have the following installed:
- Node.js: version 20 or higher
- npm: version 10 or higher
Install the Zalopay CLI globally via npm:
``bash`
npm install -g zlp-cli
Follow these steps to initialize and deploy your mini-app:
1. Initialize Your Project:
`bash`
zlp init
appId
Follow the prompts to provide your , build directory, and entry file. This will generate/update mini-app-config.json.
2. Login:
`bash`
zlp login
Scan the printed QR code with your Zalopay Sandbox app and approve the consent.
3. Build & Deploy:
Build your project and bump the version:
`bash`
zlp build:dev
`
Sync your resources to the CDN:
bash`
zlp sync:dev
4. Activate Version:
The Merchant Admin can activate the version for testing or production:
`bash`
zlp activate
For a comprehensive guide on the developer and admin lifecycle, please refer to the E2E Flow Documentation.
- zlp init: Initialize mini-app configuration.zlp login
- : Authenticate with your Zalopay account.zlp build:dev
- : Build for development and bump patch version.zlp sync:dev
- : Sync build resources to the Development environment.zlp activate
- : Change status of a mini-app version (Testing/Active).zlp get-app-info
- : Display information about the current mini-app.zlp create-user`: Create a new developer user for the app.
-