One-off scripts for things like data migrations
-
Set up environment variables in
.env
, copying the distribution file and filling out empty ones.cp .env.dist .env
-
Get the private admin API credentials, and place them in this document. To alernate between environments, you can change the filename used in
.env
for the credential. -
Install dependencies
npm install
-
Run the script you want
npm start scripts/helloWorld npm start scripts/moveUsersToActiveCampaign