Skip to content

redapesolutions/cloudflare-office365-setup

Repository files navigation

Cloudflare Office 365 setup CLI

Very basic commands to verify and setup DNS records in Cloudflare to match an Office 365 email domain

Installation

$ npm install

Usage

  $ export CF_USERNAME="yourcloudflare@email.com"
  $ export CF_API_KEY="yourApiKey"
  $ npm run <action> -- <domain> [extra]

Actions

For all actions, you can refer to the Office 365 DNS records

verify

$ npm run verify -- <domain> <mscode>

The mscode is the value given during the "Verify" phase when adding a new domain on office365:

verify code on office365

setup

$ npm run setup -- <domain>

This will set up 2 SRV, 5 CNAME, 1 MX and 1 TXT entry

Contribute

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

About

Command to quickly create DNS records for Office 365 email domains on cloudflare

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published