Giter Site home page Giter Site logo

ar-cfmigrate's Introduction

ar-cfmigrate

CloudFlare to ArvanCloud CDN Migration Tool

Usage

usage: main.py [-h] -arkey --arvan-api-key -cfkey --cloudflare-api-key [-v]

python main.py -arkey 'Apikey xxxxx' -cfkey 'xxxxx' -v


Installation

pip install -r requirements.txt

Brief

A tool to migrate a Domain(DNS-CDN-...) configs from Cloudflare panel to Arvancloud (as much as possible)

Input

User Arvancloud API Token User Cloudflare API Token

Usage

# DOCKER 
git clone [email protected]:arvancloud/ar-cfmigrate.git && cd ar-cfmigrate 
docker build -t ar-cfmigrate .
docker run -it ar-cfmigrate

# NODE
git clone [email protected]:arvancloud/ar-cfmigrate.git && cd ar-cfmigrate/src && npm i
./cli.js

Example

? enter your arvan API key › # Enter your Arvan api-key

? select cloudflare key type [api-key or api-token] › # Enter cloudflare key type

? enter your token › # Enter cloudflare token

# select one of your zones to migrate!
? Select target zone › - Use arrow-keys. Return to submit.
❯   example.com
    example.ir
  ↓ example.me

✔ Loading zones
✔ Select target zone › example.com
✔ Create domain example.com in arvan

✔ Loading cloudflare DNS records

✔ Add A Record api.example.com [1.1.1.1]
✔ Add A Record panel.example.com [2.2.2.2]
✔ Add A Record staging.example.com [3.3.3.3]
✔ Add A Record example.com [185.120.221.247]
✔ Add CNAME Record api-staging.example.com [staging.example.com]
✔ Add CNAME Record tracking.example.com [api.elasticemail.com]
✔ Add MX Record example.com [mx3.zoho.com]
✔ Add MX Record example.com [mx2.zoho.com]
✔ Add MX Record example.com [mx.zoho.com]
✔ Add TXT Record api._domainkey.example.com [k=rsa;t=s;p=MIGfM...jtwIDAQAB]
✔ Add TXT Record _dmarc.example.com [v=DMARC1;p=none]
✔ Add TXT Record emails._domainkey.example.com [v=DKIM1; k=rsa; p=MIGfMA0GC...QlZ3QIDAQAB]
✔ Add TXT Record example.com [zoho-verification=zb23382325.zmverify.zoho.com]

ar-cfmigrate's People

Contributors

3aaber avatar isaacnia avatar mhkarami97 avatar rasoolcatc avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.