/ scripts / dev / account.js
account.js
1  #!/usr/bin/env node
2  const updateDotEnv = require("update-dotenv")
3  
4  const arg = process.argv.slice(2)[0]
5  
6  updateDotEnv({
7    DISABLE_ACCOUNT_PORTAL: arg === "enable" ? "" : "1",
8  }).then(() => console.log("Updated server!"))