From e6b31fa5bf3bb83b79fd37fa7bbef4e918bbeeb2 Mon Sep 17 00:00:00 2001 From: luk Date: Fri, 31 Jul 2026 08:38:36 +0800 Subject: [PATCH] u --- dcloud-renew/README.md | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/dcloud-renew/README.md b/dcloud-renew/README.md index bdc4200..acc89cc 100644 --- a/dcloud-renew/README.md +++ b/dcloud-renew/README.md @@ -1,11 +1,20 @@ +Preparation: + ``` npm i npx playwright install-deps npx playwright install chromium -HEADLESS=true node renew.mjs 'email' 'password' ``` -add to crontab to run automatically: +Run the script with: +`node renew.mjs 'EMAIL' 'PASSWORD'` + +you can also set environment variables directly: +`HEADLESs=true UNICLOUD_EMAIL=... UNICLOUD_PASSWORD=... node renew.mjs` + +or set via `.env` file. + +Add to crontab to run automatically: ``` # Renew DCloud uniCloud free-tier subscriptions.