Very basic commands to verify and setup DNS records in Cloudflare to match an Office 365 email domain
$ npm install
$ export CF_USERNAME="yourcloudflare@email.com"
$ export CF_API_KEY="yourApiKey"
$ npm run <action> -- <domain> [extra]
For all actions, you can refer to the Office 365 DNS records
$ npm run verify -- <domain> <mscode>
The mscode is the value given during the "Verify" phase when adding a new domain on office365:
$ npm run setup -- <domain>
This will set up 2 SRV, 5 CNAME, 1 MX and 1 TXT entry
At the moment, this is used internally at Red Ape Solutions.
Therefore there are probably many cases we are not taking into consideration.
Feel free to submit issues or even better, pull requests
When committing, please use npm run commit
